Class LogbackValve

    • Constructor Detail

      • LogbackValve

        public LogbackValve()
    • Method Detail

      • isStarted

        public boolean isStarted()
      • startInternal

        public void startInternal()
                           throws org.apache.catalina.LifecycleException
        Overrides:
        startInternal in class org.apache.catalina.valves.ValveBase
        Throws:
        org.apache.catalina.LifecycleException
      • addStatus

        public void addStatus​(Status status)
      • addInfo

        public void addInfo​(String msg)
      • addWarn

        public void addWarn​(String msg)
      • getFilename

        public String getFilename()
      • setFilename

        public void setFilename​(String filename)
      • isQuiet

        public boolean isQuiet()
      • setQuiet

        public void setQuiet​(boolean quiet)
      • invoke

        public void invoke​(org.apache.catalina.connector.Request request,
                           org.apache.catalina.connector.Response response)
                    throws IOException,
                           javax.servlet.ServletException
        Specified by:
        invoke in interface org.apache.catalina.Valve
        Throws:
        IOException
        javax.servlet.ServletException
      • stopInternal

        protected void stopInternal()
                             throws org.apache.catalina.LifecycleException
        Overrides:
        stopInternal in class org.apache.catalina.valves.ValveBase
        Throws:
        org.apache.catalina.LifecycleException
      • getInfo

        public String getInfo()
      • putProperty

        public void putProperty​(String key,
                                String val)
        Description copied from interface: Context
        Set a property of this context.
        Specified by:
        putProperty in interface Context
      • getObject

        public Object getObject​(String key)
        Description copied from interface: Context
        A Context can act as a store for various objects used by LOGBack components.
        Specified by:
        getObject in interface Context
        Returns:
        The object stored under 'key'.
      • putObject

        public void putObject​(String key,
                              Object value)
        Description copied from interface: Context
        Store an object under 'key'. If no object can be found, null is returned.
        Specified by:
        putObject in interface Context
      • getExecutorService

        public ExecutorService getExecutorService()
        Description copied from interface: Context
        Every context has an ExecutorService which be invoked to execute certain tasks in a separate thread.
        Specified by:
        getExecutorService in interface Context
        Returns:
        the executor for this context.
      • getName

        public String getName()
        Description copied from interface: Context
        Contexts are named objects.
        Specified by:
        getName in interface Context
        Returns:
        the name for this context
      • setName

        public void setName​(String name)
        Description copied from interface: Context
        The name of the context can be set only once.
        Specified by:
        setName in interface Context
      • getBirthTime

        public long getBirthTime()
        Description copied from interface: Context
        The time at which this context was created, expressed in millisecond elapsed since the epoch (1.1.1970).
        Specified by:
        getBirthTime in interface Context
        Returns:
        The time as measured when this class was created.
      • getConfigurationLock

        public Object getConfigurationLock()
        Description copied from interface: Context
        Object used for synchronization purposes. INTENDED FOR INTERNAL USAGE.
        Specified by:
        getConfigurationLock in interface Context
      • register

        public void register​(LifeCycle component)
        Description copied from interface: Context
        Register a component that participates in the context's life cycle.

        All components registered via this method will be stopped and removed from the context when the context is reset.

        Specified by:
        register in interface Context
        Parameters:
        component - the subject component
      • addLifecycleListener

        public void addLifecycleListener​(org.apache.catalina.LifecycleListener arg0)
        Specified by:
        addLifecycleListener in interface org.apache.catalina.Lifecycle
        Overrides:
        addLifecycleListener in class org.apache.catalina.util.LifecycleBase
      • findLifecycleListeners

        public org.apache.catalina.LifecycleListener[] findLifecycleListeners()
        Specified by:
        findLifecycleListeners in interface org.apache.catalina.Lifecycle
        Overrides:
        findLifecycleListeners in class org.apache.catalina.util.LifecycleBase
      • removeLifecycleListener

        public void removeLifecycleListener​(org.apache.catalina.LifecycleListener arg0)
        Specified by:
        removeLifecycleListener in interface org.apache.catalina.Lifecycle
        Overrides:
        removeLifecycleListener in class org.apache.catalina.util.LifecycleBase
      • toString

        public String toString()
        Overrides:
        toString in class org.apache.catalina.valves.ValveBase