|
||||||||||
| 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>
public abstract class RestletHelper<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 | |
|---|---|
RestletHelper(T helped)
Constructor. |
|
| Method Summary | |
|---|---|
Map<String,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. |
Logger |
getLogger()
Returns the helped Restlet logger. |
MetadataService |
getMetadataService()
Returns the metadata service. |
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 RestletHelper(T helped)
helped - The helped Restlet.| Method Detail |
|---|
public Map<String,Object> getAttributes()
public Context getContext()
public T getHelped()
public Series<Parameter> getHelpedParameters()
public Logger getLogger()
public MetadataService getMetadataService()
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 Exception
Exception
public abstract void stop()
throws Exception
Exception
public abstract void update()
throws Exception
stop() followed by a
start().
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||