Package org.restlet.engine.application
Class ApplicationHelper
- java.lang.Object
-
- org.restlet.engine.Helper
-
- org.restlet.engine.RestletHelper<T>
-
- org.restlet.engine.CompositeHelper<org.restlet.Application>
-
- org.restlet.engine.application.ApplicationHelper
-
public class ApplicationHelper extends CompositeHelper<org.restlet.Application>
Application implementation.- Author:
- Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description ApplicationHelper(org.restlet.Application application)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(org.restlet.Request request, org.restlet.Response response)In addition to the default behavior, it saves the current application instance into the current thread.voidsetContext(org.restlet.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, setOutboundNext
-
Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
-
-
-
-
Method Detail
-
handle
public void handle(org.restlet.Request request, org.restlet.Response response)In addition to the default behavior, it saves the current application instance into the current thread.- Overrides:
handlein classCompositeHelper<org.restlet.Application>- Parameters:
request- The request to handle.response- The response to update.
-
setContext
public void setContext(org.restlet.Context context)
Sets the context.- Parameters:
context- The context.
-
start
public void start() throws java.lang.ExceptionStart hook.- Specified by:
startin classRestletHelper<org.restlet.Application>- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.ExceptionDescription copied from class:RestletHelperStop callback.- Specified by:
stopin classRestletHelper<org.restlet.Application>- Throws:
java.lang.Exception
-
update
public void update() throws java.lang.ExceptionDescription copied from class:RestletHelperUpdate callback with less impact than aRestletHelper.stop()followed by aRestletHelper.start().- Specified by:
updatein classRestletHelper<org.restlet.Application>- Throws:
java.lang.Exception
-
-