Package org.restlet.engine.application
Class ApplicationHelper
Application implementation.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIn addition to the default behavior, it saves the current application instance into the current thread.voidsetContext(Context context) Sets the context.voidstart()Start hook.voidstop()Stop callback.voidupdate()Update callback with less impact than aRestletHelper.stop()followed by aRestletHelper.start().Methods inherited from class org.restlet.engine.CompositeHelper
addInboundFilter, addOutboundFilter, clear, getFirstInboundFilter, getFirstOutboundFilter, getInboundNext, getLastInboundFilter, getLastOutboundFilter, getOutboundNext, setFirstInboundFilter, setFirstOutboundFilter, setInboundNext, setLastInboundFilter, setLastOutboundFilter, setOutboundNextMethods inherited from class org.restlet.engine.RestletHelper
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
-
Constructor Details
-
ApplicationHelper
Constructor.- Parameters:
application- The application to help.
-
-
Method Details
-
handle
In addition to the default behavior, it saves the current application instance into the current thread.- Overrides:
handlein classCompositeHelper<Application>- Parameters:
request- The request to handle.response- The response to update.
-
setContext
Sets the context.- Parameters:
context- The context.
-
start
Start hook.- Specified by:
startin classRestletHelper<Application>- Throws:
Exception
-
stop
Description copied from class:RestletHelperStop callback.- Specified by:
stopin classRestletHelper<Application>- Throws:
Exception
-
update
Description copied from class:RestletHelperUpdate callback with less impact than aRestletHelper.stop()followed by aRestletHelper.start().- Specified by:
updatein classRestletHelper<Application>- Throws:
Exception
-