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 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.void
setContext(org.restlet.Context context)
Sets the context.void
start()
Start hook.void
stop()
Stop callback.void
update()
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:
handle
in 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.Exception
Start hook.- Specified by:
start
in classRestletHelper<org.restlet.Application>
- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.Exception
Description copied from class:RestletHelper
Stop callback.- Specified by:
stop
in classRestletHelper<org.restlet.Application>
- Throws:
java.lang.Exception
-
update
public void update() throws java.lang.Exception
Description copied from class:RestletHelper
Update callback with less impact than aRestletHelper.stop()
followed by aRestletHelper.start()
.- Specified by:
update
in classRestletHelper<org.restlet.Application>
- Throws:
java.lang.Exception
-
-