Class HandlerChainFactory


  • public class HandlerChainFactory
    extends Object
    Factory for creating request/response handler chains.
    • Constructor Detail

      • HandlerChainFactory

        public HandlerChainFactory()
    • Method Detail

      • newRequestHandlerChain

        public List<RequestHandler2> newRequestHandlerChain​(String resource)
        For backward compatibility, constructs a new request handler chain adapted to RequestHandler2 by analyzing the specified classpath resource.
        Parameters:
        resource - The resource to load from the classpath containing the list of request handlers to instantiate.
        Returns:
        A list of request handlers based on the handlers referenced in the specified resource.
      • newRequestHandler2Chain

        public List<RequestHandler2> newRequestHandler2Chain​(String resource)
        Constructs a new request handler (v2) chain by analyzing the specified classpath resource.
        Parameters:
        resource - The resource to load from the classpath containing the list of request handlers to instantiate.
        Returns:
        A list of request handlers based on the handlers referenced in the specified resource.