Class TomcatValveContainer


  • public class TomcatValveContainer
    extends Object
    This class is used for registering 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 Detail

        • TomcatValveContainer

          public TomcatValveContainer()
      • 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 the CarbonTomcatValves
          Parameters:
          request - The HTTP Request
          response - 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 list
          valves - 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