org.restlet.engine.component
Class ComponentServerDispatcher

java.lang.Object
  extended by org.restlet.Restlet
      extended by org.restlet.routing.Filter
          extended by org.restlet.engine.TemplateDispatcher
              extended by 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

Field Summary
 
Fields inherited from class org.restlet.routing.Filter
CONTINUE, SKIP, STOP
 
Constructor Summary
ComponentServerDispatcher(ComponentContext componentContext)
          Constructor.
 
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)
           
 
Methods inherited from class org.restlet.engine.TemplateDispatcher
afterHandle
 
Methods inherited from class org.restlet.routing.Filter
getNext, handle, hasNext, setNext, setNext, start, stop
 
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
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentServerDispatcher

public ComponentServerDispatcher(ComponentContext componentContext)
Constructor.

Parameters:
componentContext - The component context.
Method Detail

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.

doHandle

protected int doHandle(Request request,
                       Response response)
Overrides:
doHandle in class Filter


Copyright © 2005-2013 Restlet.