Class TomcatValveContainer
- java.lang.Object
-
- org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer
-
public class TomcatValveContainer extends Object
This class is used for registeringCarbonTomcatValveinstances & 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 Summary
Constructors Constructor Description TomcatValveContainer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddValves(int index, List<CarbonTomcatValve> valves)Set the index of the valve based on it priority when invoking it.static voidaddValves(List<CarbonTomcatValve> valves)Add CarbonTomcatValves.static voidinvokeValves(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 theCarbonTomcatValvesstatic booleanisValveExists(CarbonTomcatValve carbonTomcatValve)Check before for a valve whether it exists or not.
-
-
-
Method Detail
-
invokeValves
public 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 theCarbonTomcatValves- Parameters:
request- The HTTP Requestresponse- The HTTP Response
-
addValves
public static void addValves(List<CarbonTomcatValve> valves)
Add CarbonTomcatValves. This is generally called by the Carbon webapp-mgt component- Parameters:
valves- The valves to be added
-
addValves
public static void addValves(int index, List<CarbonTomcatValve> valves)Set the index of the valve based on it priority when invoking it.- Parameters:
index- the index where the valve need to be added in the listvalves- valves to be added
-
isValveExists
public static boolean isValveExists(CarbonTomcatValve carbonTomcatValve)
Check before for a valve whether it exists or not.- Parameters:
carbonTomcatValve- the valve to be checked- Returns:
- if valve exists
-
-
-