public class ComponentHelper extends CompositeHelper<Component>
Constructor and Description |
---|
ComponentHelper(Component component)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ClientRouter |
getClientRouter()
Returns the internal client router.
|
ServerRouter |
getServerRouter()
Returns the internal host router.
|
void |
setServerRouter(ServerRouter serverRouter)
Sets the internal server router.
|
void |
start()
Start callback.
|
void |
stop()
Stop callback.
|
void |
update()
Set the new server router that will compute the new routes when the first
request will be received (automatic start).
|
addInboundFilter, addOutboundFilter, clear, getFirstInboundFilter, getFirstOutboundFilter, getInboundNext, getLastInboundFilter, getLastOutboundFilter, getOutboundNext, handle, setFirstInboundFilter, setFirstOutboundFilter, setInboundNext, setLastInboundFilter, setLastOutboundFilter, setOutboundNext
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public ComponentHelper(Component component)
component
- The helper component.public ClientRouter getClientRouter()
public ServerRouter getServerRouter()
public void setServerRouter(ServerRouter serverRouter)
serverRouter
- The internal host router.public void start() throws java.lang.Exception
RestletHelper
start
in class RestletHelper<Component>
java.lang.Exception
public void stop() throws java.lang.Exception
RestletHelper
stop
in class RestletHelper<Component>
java.lang.Exception
public void update() throws java.lang.Exception
update
in class RestletHelper<Component>
java.lang.Exception
Copyright © 2005-2024 Restlet.