public abstract class RestletHelper<T extends Restlet> extends Helper
| Constructor and Description |
|---|
RestletHelper(T helped)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()
|
public RestletHelper(T helped)
helped - The helped Restlet.public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public Context getContext()
public T getHelped()
public Series<Parameter> getHelpedParameters()
public java.util.logging.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 java.lang.Exception
java.lang.Exceptionpublic abstract void stop()
throws java.lang.Exception
java.lang.Exceptionpublic abstract void update()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005-2018 Restlet.