public class AccessContext extends ContextBase implements AppenderAttachable<IAccessEvent>, FilterAttachable<IAccessEvent>
Constructor and Description |
---|
AccessContext() |
Modifier and Type | Method and Description |
---|---|
void |
addAppender(Appender<IAccessEvent> newAppender)
Add an appender.
|
void |
addFilter(Filter<IAccessEvent> newFilter)
Add a filter.
|
void |
callAppenders(IAccessEvent event) |
void |
clearAllFilters() |
void |
detachAndStopAllAppenders()
Detach and stop all previously added appenders.
|
boolean |
detachAppender(Appender<IAccessEvent> appender)
Detach the appender passed as parameter from the list of appenders.
|
boolean |
detachAppender(java.lang.String name)
Detach the appender with the name passed as parameter from the list of
appenders.
|
Appender<IAccessEvent> |
getAppender(java.lang.String name)
Get an appender by name.
|
java.util.List<Filter<IAccessEvent>> |
getCopyOfAttachedFiltersList()
Get a copy of all the filters contained within this FilterAttachable
object.
|
FilterReply |
getFilterChainDecision(IAccessEvent event)
Loop through the filters in the chain.
|
boolean |
isAttached(Appender<IAccessEvent> appender)
Returns
true if the specified appender is in list of
attached attached, false otherwise. |
java.util.Iterator<Appender<IAccessEvent>> |
iteratorForAppenders()
Get an iterator for appenders contained in the parent object.
|
getBirthTime, getConfigurationLock, getCopyOfPropertyMap, getExecutorService, getName, getObject, getProperty, getStatusManager, putObject, putProperty, reset, setName, setStatusManager, toString
public void callAppenders(IAccessEvent event)
public void addAppender(Appender<IAccessEvent> newAppender)
AppenderAttachable
addAppender
in interface AppenderAttachable<IAccessEvent>
public void detachAndStopAllAppenders()
AppenderAttachable
detachAndStopAllAppenders
in interface AppenderAttachable<IAccessEvent>
public boolean detachAppender(Appender<IAccessEvent> appender)
AppenderAttachable
detachAppender
in interface AppenderAttachable<IAccessEvent>
public boolean detachAppender(java.lang.String name)
AppenderAttachable
detachAppender
in interface AppenderAttachable<IAccessEvent>
public Appender<IAccessEvent> getAppender(java.lang.String name)
AppenderAttachable
getAppender
in interface AppenderAttachable<IAccessEvent>
public boolean isAttached(Appender<IAccessEvent> appender)
AppenderAttachable
true
if the specified appender is in list of
attached attached, false
otherwise.isAttached
in interface AppenderAttachable<IAccessEvent>
public java.util.Iterator<Appender<IAccessEvent>> iteratorForAppenders()
AppenderAttachable
iteratorForAppenders
in interface AppenderAttachable<IAccessEvent>
public void addFilter(Filter<IAccessEvent> newFilter)
FilterAttachable
addFilter
in interface FilterAttachable<IAccessEvent>
public void clearAllFilters()
clearAllFilters
in interface FilterAttachable<IAccessEvent>
public java.util.List<Filter<IAccessEvent>> getCopyOfAttachedFiltersList()
FilterAttachable
getCopyOfAttachedFiltersList
in interface FilterAttachable<IAccessEvent>
public FilterReply getFilterChainDecision(IAccessEvent event)
FilterAttachable
getFilterChainDecision
in interface FilterAttachable<IAccessEvent>
Copyright © 1999-2019 QOS.ch. All rights reserved