Package org.restlet.engine
Class RestletHelper<T extends Restlet>
java.lang.Object
org.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
- Direct Known Subclasses:
CompositeHelper,ConnectorHelper
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.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the map of attributes exchanged between the API and the Engine via this helper.Returns the helped Restlet context.Returns the helped Restlet.Returns the helped Restlet parameters.Returns the helped Restlet logger.Returns the metadata service.voidHandles a call.voidSets the helped Restlet.abstract voidstart()Start callback.abstract voidstop()Stop callback.abstract voidupdate()
-
Constructor Details
-
RestletHelper
Constructor.- Parameters:
helped- The helped Restlet.
-
-
Method Details
-
getAttributes
Returns the map of attributes exchanged between the API and the Engine via this helper.- Returns:
- The map of attributes.
-
getContext
Returns the helped Restlet context.- Returns:
- The helped Restlet context.
-
getHelped
Returns the helped Restlet.- Returns:
- The helped Restlet.
-
getHelpedParameters
Returns the helped Restlet parameters.- Returns:
- The helped Restlet parameters.
-
getLogger
Returns the helped Restlet logger.- Returns:
- The helped Restlet logger.
-
getMetadataService
Returns the metadata service. If the parent application doesn't exist, a new instance is created.- Returns:
- The metadata service.
-
handle
Handles a call.- Parameters:
request- The request to handle.response- The response to update.
-
setHelped
Sets the helped Restlet.- Parameters:
helpedRestlet- The helped Restlet.
-
start
Start callback.- Throws:
Exception
-
stop
Stop callback.- Throws:
Exception
-
update
- Throws:
Exception
-