public class TomcatValveContainer extends Object
CarbonTomcatValve instances & invoking them.
These valves correspond to Tomcat Valves.
Generally, when a request comes in, the Tomcat valves will notify all the registered
CarbonTomcatValves
To read more on Tomcat 5.5 valves, see
| Constructor and Description |
|---|
TomcatValveContainer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addValves(int index,
List<CarbonTomcatValve> valves)
Set the index of the valve based on it priority when invoking it.
|
static void |
addValves(List<CarbonTomcatValve> valves)
Add CarbonTomcatValves.
|
static void |
invokeValves(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
CompositeValve compositeValve)
This is the method used by the Tomcat valves to notify the
CarbonTomcatValves |
static boolean |
isValveExists(CarbonTomcatValve carbonTomcatValve)
Check before for a valve whether it exists or not.
|
public static void invokeValves(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
CompositeValve compositeValve)
CarbonTomcatValvesrequest - The HTTP Requestresponse - The HTTP Responsepublic static void addValves(List<CarbonTomcatValve> valves)
valves - The valves to be addedpublic static void addValves(int index,
List<CarbonTomcatValve> valves)
index - the index where the valve need to be added in the listvalves - valves to be addedpublic static boolean isValveExists(CarbonTomcatValve carbonTomcatValve)
carbonTomcatValve - the valve to be checkedCopyright © 2015 WSO2 Inc. All rights reserved.