org.restlet.engine.component
Class ComponentServerDispatcher
java.lang.Object
org.restlet.Restlet
org.restlet.routing.Filter
org.restlet.engine.util.TemplateDispatcher
org.restlet.engine.component.ComponentServerDispatcher
- All Implemented Interfaces:
- Uniform
public class ComponentServerDispatcher
- extends TemplateDispatcher
Component server dispatcher.
Concurrency note: instances of this class or its subclasses can be invoked by
several threads at the same time and therefore must be thread-safe. You
should be especially careful when storing state as member variables.
- Author:
- Jerome Louvel
|
Method Summary |
int |
beforeHandle(Request request,
Response response)
Handles the call after resolving any URI template on the request's target
resource reference. |
protected int |
doHandle(Request request,
Response response)
Handles the call by distributing it to the next Restlet. |
| Methods inherited from class org.restlet.Restlet |
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner |
ComponentServerDispatcher
public ComponentServerDispatcher(ComponentContext componentContext)
- Constructor.
- Parameters:
componentContext - The component context.
beforeHandle
public int beforeHandle(Request request,
Response response)
- Description copied from class:
TemplateDispatcher
- Handles the call after resolving any URI template on the request's target
resource reference.
- Overrides:
beforeHandle in class TemplateDispatcher
- Parameters:
request - The request to handle.response - The response to update.
- Returns:
- The continuation status. Either
Filter.CONTINUE or
Filter.SKIP or Filter.STOP.
doHandle
protected int doHandle(Request request,
Response response)
- Description copied from class:
Filter
- Handles the call by distributing it to the next Restlet. If no Restlet is
attached, then a
Status.SERVER_ERROR_INTERNAL status is returned.
Returns Filter.CONTINUE by default.
- Overrides:
doHandle in class Filter
- Parameters:
request - The request to handle.response - The response to update.
- Returns:
- The continuation status. Either
Filter.CONTINUE or
Filter.STOP.
Copyright © 2005-2014 Restlet.