Class ValveBase

    • Field Detail

      • asyncSupported

        protected boolean asyncSupported
        Does this valve support Servlet 3+ async requests?
      • container

        protected Container container
        The Container whose pipeline this Valve is a component of.
      • containerLog

        protected Log containerLog
        Container log
      • next

        protected Valve next
        The next Valve in the pipeline this Valve is a component of.
    • Constructor Detail

      • ValveBase

        public ValveBase()
      • ValveBase

        public ValveBase​(boolean asyncSupported)
    • Method Detail

      • getContainer

        public Container getContainer()
        Return the Container with which this Valve is associated, if any.
        Specified by:
        getContainer in interface Contained
        Returns:
        The Container with which this instance is associated or null if not associated with a Container
      • setContainer

        public void setContainer​(Container container)
        Set the Container with which this Valve is associated, if any.
        Specified by:
        setContainer in interface Contained
        Parameters:
        container - The new associated container
      • isAsyncSupported

        public boolean isAsyncSupported()
        Specified by:
        isAsyncSupported in interface Valve
      • setAsyncSupported

        public void setAsyncSupported​(boolean asyncSupported)
      • getNext

        public Valve getNext()
        Return the next Valve in this pipeline, or null if this is the last Valve in the pipeline.
        Specified by:
        getNext in interface Valve
        Returns:
        the next Valve in the pipeline containing this Valve, if any.
      • setNext

        public void setNext​(Valve valve)
        Set the Valve that follows this one in the pipeline it is part of.
        Specified by:
        setNext in interface Valve
        Parameters:
        valve - The new next valve
      • backgroundProcess

        public void backgroundProcess()
        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 interface Valve
      • toString

        public java.lang.String toString()
        Return a String rendering of this object.
        Overrides:
        toString in class java.lang.Object
      • getObjectNameKeyProperties

        public java.lang.String getObjectNameKeyProperties()
        Description copied from class: LifecycleMBeanBase
        Allow sub-classes to specify the key properties component of the ObjectName that will be used to register this component.
        Specified by:
        getObjectNameKeyProperties in class LifecycleMBeanBase
        Returns:
        The string representation of the key properties component of the desired ObjectName
      • getDomainInternal

        public java.lang.String getDomainInternal()
        Description copied from class: LifecycleMBeanBase
        Method implemented by sub-classes to identify the domain in which MBeans should be registered.
        Specified by:
        getDomainInternal in class LifecycleMBeanBase
        Returns:
        The name of the domain to use to register MBeans.