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 void
backgroundProcess()
Execute a periodic task, such as reloading, etc.void
event(Request request, Response response, CometEvent event)
Process a Comet event.String
getInfo()
Return descriptive information about this Valve implementation.Valve
getNext()
Return the next Valve in the pipeline containing this Valve, if any.void
invoke(Request request, Response response)
Delegates to the invoke() and postInvoke() methods of the wrapped GlassFish-style valve.void
setNext(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:Valve
Return descriptive information about this Valve implementation.
-
getNext
public Valve getNext()
Description copied from interface:Valve
Return the next Valve in the pipeline containing this Valve, if any.
-
setNext
public void setNext(Valve valve)
Description copied from interface:Valve
Set the next Valve in the pipeline containing this Valve.
-
backgroundProcess
public void backgroundProcess()
Description copied from interface:Valve
Execute 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:
backgroundProcess
in 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:
invoke
in 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:Valve
Process a Comet event.- Specified by:
event
in 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
-
-