Class ChildClientDispatcher

  • All Implemented Interfaces:
    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.
    • Field Detail

      • childContext

        private ChildContext childContext
        The child context.
    • Constructor Detail

      • ChildClientDispatcher

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

      • doHandle

        public int 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 Filter
        Parameters:
        request - The request to handle.
        response - The response to update.
        Returns:
        The continuation status. Either Filter.CONTINUE or Filter.STOP.
      • getChildContext

        private ChildContext getChildContext()
        Returns the child context.
        Returns:
        The child context.
      • parentHandle

        private void parentHandle​(Request request,
                                  Response response)
        Asks to the parent component to handle the call.
        Parameters:
        request - The request to handle.
        response - The response to update.