Class ChainHandlerHeaplet

  • All Implemented Interfaces:
    Heaplet

    public class ChainHandlerHeaplet
    extends GenericHeaplet
    A chain of zero or more filters and one handler. The chain is responsible for dispatching the request to each filter in the chain, and finally the handler.

    When a chain dispatches a request to a filter, it creates a "subchain" (a subset of this chain, which contains the remaining downstream filters and handler), and passes it as a parameter to the filter. For this reason, a filter should make no assumptions or correlations using the chain it is supplied with when invoked.

    A filter may elect to terminate dispatching of the request to the rest of the chain by not calling chain.handle(Context, Request) and generate its own response or dispatch to a completely different handler.

    See Also:
    Filter
    • Constructor Detail

      • ChainHandlerHeaplet

        public ChainHandlerHeaplet()
    • Method Detail