|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.util.Helper<T>
public abstract class Helper<T extends Restlet>
Delegate used by API classes to get support from the implementation classes. Note that this is an SPI class that is not intended for public usage.
Constructor Summary | |
---|---|
Helper(T helped)
Constructor. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the map of attributes exchanged between the API and the Engine via this helper. |
Context |
getContext()
Returns the helped Restlet context. |
T |
getHelped()
Returns the helped Restlet. |
Series<Parameter> |
getHelpedParameters()
Returns the helped Restlet parameters. |
java.util.logging.Logger |
getLogger()
Returns the helped Restlet logger. |
void |
handle(Request request,
Response response)
Handles a call. |
void |
setHelped(T helpedRestlet)
Sets the helped Restlet. |
abstract void |
start()
Start callback. |
abstract void |
stop()
Stop callback. |
abstract void |
update()
Update callback with less impact than a stop() followed by a
start() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Helper(T helped)
helped
- The helped Restlet.Method Detail |
---|
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public Context getContext()
public T getHelped()
public java.util.logging.Logger getLogger()
public Series<Parameter> getHelpedParameters()
public void handle(Request request, Response response)
request
- The request to handle.response
- The response to update.public void setHelped(T helpedRestlet)
helpedRestlet
- The helped Restlet.public abstract void start() throws java.lang.Exception
java.lang.Exception
public abstract void stop() throws java.lang.Exception
java.lang.Exception
public abstract void update() throws java.lang.Exception
stop()
followed by a
start()
.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |