Package org.glassfish.web.valve
Class GlassFishValveAdapter
- java.lang.Object
-
- org.glassfish.web.valve.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
-
-
Field Summary
-
Fields inherited from interface org.glassfish.web.valve.GlassFishValve
END_PIPELINE, INVOKE_NEXT
-
-
Constructor Summary
Constructors Constructor Description GlassFishValveAdapter(Valve gfValve)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInfo()Return descriptive information about this Valve implementation.intinvoke(Request request, Response response)Delegates to the invoke() of the wrapped GlassFish-style valve.voidpostInvoke(Request request, Response response)Delegates to the postInvoke() of the wrapped GlassFish-style valve.
-
-
-
Method Detail
-
getInfo
public String getInfo()
Description copied from interface:GlassFishValveReturn descriptive information about this Valve implementation.- Specified by:
getInfoin interfaceGlassFishValve
-
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:
invokein interfaceGlassFishValve- Parameters:
request- The servlet request to be processedresponse- The servlet response to be created- Returns:
INVOKE_NEXTorEND_PIPELINE- Throws:
IOException- if an input/output error occurs, or is thrown by a subsequently invoked Valve, Filter, or Servletjakarta.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:
postInvokein interfaceGlassFishValve- Parameters:
request- The servlet request to be processedresponse- The servlet response to be created- Throws:
IOException- if an input/output error occursjakarta.servlet.ServletException- if a servlet error occurs
-
-