com.noelios.restlet.component
Class ChildClientDispatcher

java.lang.Object
  extended by org.restlet.Uniform
      extended by com.noelios.restlet.TemplateDispatcher
          extended by com.noelios.restlet.component.ChildClientDispatcher

public class ChildClientDispatcher
extends TemplateDispatcher

Client dispatcher for a component child. 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
ChildClientDispatcher(ChildContext childContext)
          Constructor.
 
Method Summary
 void doHandle(Request request, Response response)
          Transmits the call to the parent component except if the call is internal as denoted by the Protocol.RIAP protocol and targets this child application.
 
Methods inherited from class com.noelios.restlet.TemplateDispatcher
getContext, getLogger, handle
 
Methods inherited from class org.restlet.Uniform
delete, delete, get, get, handle, head, head, options, options, post, post, put, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildClientDispatcher

public ChildClientDispatcher(ChildContext childContext)
Constructor.

Parameters:
childContext - The child context.
Method Detail

doHandle

public void doHandle(Request request,
                     Response response)
Transmits the call to the parent component except if the call is internal as denoted by the Protocol.RIAP protocol and targets this child application.

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


Copyright © 2005-2008 Noelios Technologies.