Class ChildClientDispatcher

  • All Implemented Interfaces:
    org.restlet.Uniform

    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
    • Field Summary

      • Fields inherited from class org.restlet.routing.Filter

        CONTINUE, SKIP, STOP
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doHandle​(org.restlet.Request request, org.restlet.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 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

      • ChildClientDispatcher

        public ChildClientDispatcher​(ChildContext childContext)
        Constructor.
        Parameters:
        childContext - The child context.
    • Method Detail

      • doHandle

        public int doHandle​(org.restlet.Request request,
                            org.restlet.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 org.restlet.routing.Filter
        Parameters:
        request - The request to handle.
        response - The response to update.
        Returns:
        The continuation status. Either Filter.CONTINUE or Filter.STOP.