Package org.glassfish.web.valve
Class TomcatValveAdapter
- java.lang.Object
-
- org.glassfish.web.valve.TomcatValveAdapter
-
-
Constructor Summary
Constructors Constructor Description TomcatValveAdapter(GlassFishValve gfValve)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbackgroundProcess()Execute a periodic task, such as reloading, etc.voidevent(Request request, Response response, CometEvent event)Process a Comet event.StringgetInfo()Return descriptive information about this Valve implementation.ValvegetNext()Return the next Valve in the pipeline containing this Valve, if any.voidinvoke(Request request, Response response)Delegates to the invoke() and postInvoke() methods of the wrapped GlassFish-style valve.voidsetNext(Valve valve)Set the next Valve in the pipeline containing this Valve.
-
-
-
Constructor Detail
-
TomcatValveAdapter
public TomcatValveAdapter(GlassFishValve gfValve)
Constructor.- Parameters:
gfValve- The GlassFish-style valve to wrap
-
-
Method Detail
-
getInfo
public String getInfo()
Description copied from interface:ValveReturn descriptive information about this Valve implementation.
-
getNext
public Valve getNext()
Description copied from interface:ValveReturn the next Valve in the pipeline containing this Valve, if any.
-
setNext
public void setNext(Valve valve)
Description copied from interface:ValveSet the next Valve in the pipeline containing this Valve.
-
backgroundProcess
public void backgroundProcess()
Description copied from interface:ValveExecute a periodic task, such as reloading, etc. This method will be invoked inside the classloading context of this container. Unexpected throwables will be caught and logged.- Specified by:
backgroundProcessin interfaceValve
-
invoke
public void invoke(Request request, Response response) throws IOException, jakarta.servlet.ServletException
Delegates to the invoke() and postInvoke() methods of the wrapped GlassFish-style valve.- Specified by:
invokein interfaceValve- Parameters:
request- The servlet request to be processedresponse- The servlet response to be created- 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
-
event
public void event(Request request, Response response, CometEvent event) throws IOException, jakarta.servlet.ServletException
Description copied from interface:ValveProcess a Comet event.- Specified by:
eventin interfaceValve- Parameters:
request- The servlet request to be processedresponse- The servlet response to be created- 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
-
-