Class GlassFishValveAdapter

  • All Implemented Interfaces:
    GlassFishValve

    public class GlassFishValveAdapter
    extends Object
    implements GlassFishValve
    Adapter valve for wrapping a GlassFish-style valve that was compiled against the "old" org.apache.catalina.Valve interface from GlassFish releases prior to V3 (which has been renamed to org.glassfish.web.valve.GlassFishValve in GlassFish V3).
    Author:
    jluehe
    • Constructor Detail

      • GlassFishValveAdapter

        public GlassFishValveAdapter​(Valve gfValve)
                              throws Exception
        Constructor.
        Parameters:
        gfValve - The GlassFish valve to which to delegate
        Throws:
        Exception
    • Method Detail

      • invoke

        public int invoke​(Request request,
                          Response response)
                   throws IOException,
                          jakarta.servlet.ServletException
        Delegates to the invoke() of the wrapped GlassFish-style valve.
        Specified by:
        invoke in interface GlassFishValve
        Parameters:
        request - The servlet request to be processed
        response - The servlet response to be created
        Returns:
        INVOKE_NEXT or END_PIPELINE
        Throws:
        IOException - if an input/output error occurs, or is thrown by a subsequently invoked Valve, Filter, or Servlet
        jakarta.servlet.ServletException - if a servlet error occurs, or is thrown by a subsequently invoked Valve, Filter, or Servlet
      • postInvoke

        public void postInvoke​(Request request,
                               Response response)
                        throws IOException,
                               jakarta.servlet.ServletException
        Delegates to the postInvoke() of the wrapped GlassFish-style valve.
        Specified by:
        postInvoke in interface GlassFishValve
        Parameters:
        request - The servlet request to be processed
        response - The servlet response to be created
        Throws:
        IOException - if an input/output error occurs
        jakarta.servlet.ServletException - if a servlet error occurs