Class WebPipeline

  • All Implemented Interfaces:
    Contained, Lifecycle, Pipeline

    public class WebPipeline
    extends StandardPipeline
    Pipeline whose invoke logic checks if a given request path represents an ad-hoc path: If so, this pipeline delegates the request to the ad-hoc pipeline of its associated web module. Otherwise, this pipeline processes the request.
    • Constructor Detail

      • WebPipeline

        public WebPipeline​(Container container)
        creates an instance of WebPipeline
        Parameters:
        container -
    • Method Detail

      • invoke

        public void invoke​(Request request,
                           Response response)
                    throws IOException,
                           jakarta.servlet.ServletException
        Processes the specified request, and produces the appropriate response, by invoking the first valve (if any) of this pipeline, or the pipeline's basic valve. If the request path to process identifies an ad-hoc path, the web module's ad-hoc pipeline is invoked.
        Specified by:
        invoke in interface Pipeline
        Overrides:
        invoke in class StandardPipeline
        Parameters:
        request - The request to process
        response - The response to return
        Throws:
        IOException - if an input/output error occurs
        jakarta.servlet.ServletException - if a servlet exception is thrown