|
||||||||||
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.ChainHelper
com.noelios.restlet.component.ComponentHelper
public class ComponentHelper
Component helper.
Constructor Summary | |
---|---|
ComponentHelper(Component component)
Constructor. |
Method Summary | |
---|---|
Context |
createContext(String loggerName)
Creates a new context. |
protected StatusFilter |
createStatusFilter(Component component)
Creates a new status filter. |
ClientRouter |
getClientRouter()
Returns the internal client router. |
protected Component |
getComponent()
Returns the helped component. |
ServerRouter |
getServerRouter()
Returns the internal host router. |
void |
handle(Request request,
Response response)
Handles a call. |
void |
start()
Start callback. |
void |
stop()
Stop callback. |
Methods inherited from class com.noelios.restlet.ChainHelper |
---|
addFilter, createLogFilter, getFirst, getParentContext, setFirst |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentHelper(Component component)
component
- The helper component.Method Detail |
---|
public Context createContext(String loggerName)
createContext
in class Helper
loggerName
- The JDK's logger name to use for contextual logging.
public ClientRouter getClientRouter()
protected Component getComponent()
public ServerRouter getServerRouter()
public void handle(Request request, Response response)
handle
in class Helper
request
- The request to handle.response
- The response to update.public void start() throws Exception
start
in class Helper
Exception
protected StatusFilter createStatusFilter(Component component)
component
- The parent component.
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 |