|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.CompositeHelper<Application>
org.restlet.engine.application.ApplicationHelper
public class ApplicationHelper
Application implementation.
| Constructor Summary | |
|---|---|
ApplicationHelper(Application application)
Constructor. |
|
| Method Summary | |
|---|---|
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(). |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationHelper(Application application)
application - The application to help.| Method Detail |
|---|
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 Exception
start in class RestletHelper<Application>Exception
public void stop()
throws Exception
RestletHelper
stop in class RestletHelper<Application>Exception
public void update()
throws Exception
RestletHelperRestletHelper.stop() followed by a
RestletHelper.start().
update in class RestletHelper<Application>Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||