|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.util.Helper
com.noelios.restlet.application.ApplicationHelper
public class ApplicationHelper
Application implementation.
Constructor Summary | |
---|---|
ApplicationHelper(Application application,
Context parentContext)
Constructor. |
Method Summary | |
---|---|
Context |
createContext(String loggerName)
Creates a new context. |
protected Filter |
createDecoderFilter(Application application)
Creates a new decoder filter. |
protected Filter |
createLogFilter(Context context,
LogService logService)
Creates a new log filter. |
protected Filter |
createStatusFilter(Application application)
Creates a new status filter. |
protected Filter |
createTunnelFilter(Application application)
Creates a new tunnel filter. |
Application |
getApplication()
Returns the application to help. |
Context |
getParentContext()
Returns the parent context, typically the component's context. |
void |
handle(Request request,
Response response)
Allows filtering before processing by the next Restlet. |
void |
start()
Start hook. |
void |
stop()
Stop callback. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationHelper(Application application, Context parentContext)
application
- The application to help.parentContext
- The parent context, typically the component's context.Method Detail |
---|
public Context createContext(String loggerName)
createContext
in class Helper
loggerName
- The JDK's logger name to use for contextual logging.
public void handle(Request request, Response response)
handle
in class Helper
request
- The request to handle.response
- The response to update.public Application getApplication()
public Context getParentContext()
public void start() throws Exception
start
in class Helper
Exception
protected Filter createLogFilter(Context context, LogService logService)
context
- The context.logService
- The log service descriptor.
protected Filter createDecoderFilter(Application application)
application
- The parent application.
protected Filter createStatusFilter(Application application)
application
- The parent application.
protected Filter createTunnelFilter(Application application)
application
- The parent application.
public void stop() throws Exception
stop
in class Helper
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |