public class ApplicationHelper extends CompositeHelper<Application>
Constructor and Description |
---|
ApplicationHelper(Application application)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(Request request,
Response response)
In addition to the default behavior, it saves the current application
instance into the current thread.
|
void |
setContext(Context context)
Sets the context.
|
void |
start()
Start hook.
|
void |
stop()
Stop callback.
|
void |
update()
Update callback with less impact than a
RestletHelper.stop() followed by a
RestletHelper.start() . |
addInboundFilter, addOutboundFilter, clear, getFirstInboundFilter, getFirstOutboundFilter, getInboundNext, getLastInboundFilter, getLastOutboundFilter, getOutboundNext, setFirstInboundFilter, setFirstOutboundFilter, setInboundNext, setLastInboundFilter, setLastOutboundFilter, setOutboundNext
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public ApplicationHelper(Application application)
application
- The application to help.public void handle(Request request, Response response)
handle
in class CompositeHelper<Application>
request
- The request to handle.response
- The response to update.public void setContext(Context context)
context
- The context.public void start() throws java.lang.Exception
start
in class RestletHelper<Application>
java.lang.Exception
public void stop() throws java.lang.Exception
RestletHelper
stop
in class RestletHelper<Application>
java.lang.Exception
public void update() throws java.lang.Exception
RestletHelper
RestletHelper.stop()
followed by a
RestletHelper.start()
.update
in class RestletHelper<Application>
java.lang.Exception
Copyright © 2005-2020 Restlet.