org.restlet.engine.application
Class ApplicationHelper

java.lang.Object
  extended by org.restlet.engine.Helper
      extended by org.restlet.engine.RestletHelper<T>
          extended by org.restlet.engine.CompositeHelper<Application>
              extended by org.restlet.engine.application.ApplicationHelper

public class ApplicationHelper
extends CompositeHelper<Application>

Application implementation.

Author:
Jerome Louvel

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

ApplicationHelper

public ApplicationHelper(Application application)
Constructor.

Parameters:
application - The application to help.
Method Detail

handle

public void handle(Request request,
                   Response response)
In addition to the default behavior, it saves the current application instance into the current thread.

Overrides:
handle in class CompositeHelper<Application>
Parameters:
request - The request to handle.
response - The response to update.

setContext

public void setContext(Context context)
Sets the context.

Parameters:
context - The context.

start

public void start()
           throws Exception
Start hook.

Specified by:
start in class RestletHelper<Application>
Throws:
Exception

stop

public void stop()
          throws Exception
Description copied from class: RestletHelper
Stop callback.

Specified by:
stop in class RestletHelper<Application>
Throws:
Exception

update

public void update()
            throws Exception
Description copied from class: RestletHelper
Update callback with less impact than a RestletHelper.stop() followed by a RestletHelper.start().

Specified by:
update in class RestletHelper<Application>
Throws:
Exception


Copyright © 2005-2013 Restlet.