ch.qos.logback.access.tomcat
Class LogbackValve
java.lang.Object
org.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.valves.ValveBase
ch.qos.logback.access.tomcat.LogbackValve
- All Implemented Interfaces:
- Context, AppenderAttachable<IAccessEvent>, FilterAttachable<IAccessEvent>, PropertyContainer, MBeanRegistration, org.apache.catalina.Contained, org.apache.catalina.Lifecycle, org.apache.catalina.Valve
public class LogbackValve
- extends org.apache.catalina.valves.ValveBase
- implements org.apache.catalina.Lifecycle, Context, AppenderAttachable<IAccessEvent>, FilterAttachable<IAccessEvent>
This class is an implementation of tomcat's Valve interface, by extending
ValveBase.
For more information on using LogbackValve please refer to the online
documentation on logback-acces and tomcat.
- Author:
- Ceki Gülcü, Sébastien Pennec
Fields inherited from class org.apache.catalina.valves.ValveBase |
asyncSupported, container, containerLog, info, next |
Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase |
mserver |
Fields inherited from interface org.apache.catalina.Lifecycle |
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
Methods inherited from class org.apache.catalina.valves.ValveBase |
backgroundProcess, event, getContainer, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setContainer, setNext, toString |
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase |
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister |
Methods inherited from class org.apache.catalina.util.LifecycleBase |
destroy, fireLifecycleEvent, getState, getStateName, init, setState, setState, start, stop |
Methods inherited from interface org.apache.catalina.Lifecycle |
destroy, getState, getStateName, init, start, stop |
DEFAULT_CONFIG_FILE
public static final String DEFAULT_CONFIG_FILE
LogbackValve
public LogbackValve()
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
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
- Specified by:
invoke
in class org.apache.catalina.valves.ValveBase
- 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
addAppender
public void addAppender(Appender<IAccessEvent> newAppender)
- Specified by:
addAppender
in interface AppenderAttachable<IAccessEvent>
iteratorForAppenders
public Iterator<Appender<IAccessEvent>> iteratorForAppenders()
- Specified by:
iteratorForAppenders
in interface AppenderAttachable<IAccessEvent>
getAppender
public Appender<IAccessEvent> getAppender(String name)
- Specified by:
getAppender
in interface AppenderAttachable<IAccessEvent>
isAttached
public boolean isAttached(Appender<IAccessEvent> appender)
- Specified by:
isAttached
in interface AppenderAttachable<IAccessEvent>
detachAndStopAllAppenders
public void detachAndStopAllAppenders()
- Specified by:
detachAndStopAllAppenders
in interface AppenderAttachable<IAccessEvent>
detachAppender
public boolean detachAppender(Appender<IAccessEvent> appender)
- Specified by:
detachAppender
in interface AppenderAttachable<IAccessEvent>
detachAppender
public boolean detachAppender(String name)
- Specified by:
detachAppender
in interface AppenderAttachable<IAccessEvent>
getInfo
public String getInfo()
- Specified by:
getInfo
in interface org.apache.catalina.Valve
- Overrides:
getInfo
in class org.apache.catalina.valves.ValveBase
getStatusManager
public StatusManager getStatusManager()
- Specified by:
getStatusManager
in interface Context
getPropertyMap
public Map<String,String> getPropertyMap()
putProperty
public void putProperty(String key,
String val)
- Specified by:
putProperty
in interface Context
getProperty
public String getProperty(String key)
- Specified by:
getProperty
in interface Context
- Specified by:
getProperty
in interface PropertyContainer
getCopyOfPropertyMap
public Map<String,String> getCopyOfPropertyMap()
- Specified by:
getCopyOfPropertyMap
in interface Context
- Specified by:
getCopyOfPropertyMap
in interface PropertyContainer
getObject
public Object getObject(String key)
- Specified by:
getObject
in interface Context
putObject
public void putObject(String key,
Object value)
- Specified by:
putObject
in interface Context
addFilter
public void addFilter(Filter<IAccessEvent> newFilter)
- Specified by:
addFilter
in interface FilterAttachable<IAccessEvent>
clearAllFilters
public void clearAllFilters()
- Specified by:
clearAllFilters
in interface FilterAttachable<IAccessEvent>
getCopyOfAttachedFiltersList
public List<Filter<IAccessEvent>> getCopyOfAttachedFiltersList()
- Specified by:
getCopyOfAttachedFiltersList
in interface FilterAttachable<IAccessEvent>
getFilterChainDecision
public FilterReply getFilterChainDecision(IAccessEvent event)
- Specified by:
getFilterChainDecision
in interface FilterAttachable<IAccessEvent>
getExecutorService
public ExecutorService getExecutorService()
- Specified by:
getExecutorService
in interface Context
getName
public String getName()
- Specified by:
getName
in interface Context
setName
public void setName(String name)
- Specified by:
setName
in interface Context
getBirthTime
public long getBirthTime()
- Specified by:
getBirthTime
in interface Context
getConfigurationLock
public Object getConfigurationLock()
- Specified by:
getConfigurationLock
in interface Context
register
public void register(LifeCycle component)
- Specified by:
register
in interface Context
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
Copyright © 2005-2013 QOS.ch. All Rights Reserved.