org.restlet.engine.component
Class ComponentClientDispatcher

java.lang.Object
  extended by org.restlet.Restlet
      extended by org.restlet.Connector
          extended by org.restlet.Client
              extended by org.restlet.engine.TemplateDispatcher
                  extended by org.restlet.engine.component.ComponentClientDispatcher
All Implemented Interfaces:
Uniform

public class ComponentClientDispatcher
extends TemplateDispatcher

Component client 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

Constructor Summary
ComponentClientDispatcher(ComponentContext componentContext)
          Constructor.
 
Method Summary
protected  void doHandle(Request request, Response response)
          Actually handles the call.
 
Methods inherited from class org.restlet.engine.TemplateDispatcher
getContext, handle, setContext
 
Methods inherited from class org.restlet.Client
getConnectTimeout, handle, handle, handle, isAvailable, setConnectTimeout, start, stop
 
Methods inherited from class org.restlet.Connector
getProtocols, setProtocols
 
Methods inherited from class org.restlet.Restlet
finalize, getApplication, getAuthor, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setDescription, setName, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentClientDispatcher

public ComponentClientDispatcher(ComponentContext componentContext)
Constructor.

Parameters:
componentContext - The component context.
Method Detail

doHandle

protected void doHandle(Request request,
                        Response response)
Description copied from class: TemplateDispatcher
Actually handles the call. Since this method only sets the request's original reference (Request.getOriginalRef() with the the targeted one, it must be overridden by subclasses.

Overrides:
doHandle in class TemplateDispatcher
Parameters:
request - The request to handle.
response - The response to update.


Copyright © 2005-2011 Noelios Technologies.