Package org.opends.server.loggers
Class HTTPAccessLogger
java.lang.Object
org.opends.server.loggers.AbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,HttpAccessLogPublisherCfg>
org.opends.server.loggers.HTTPAccessLogger
- All Implemented Interfaces:
ConfigurationAddListener<HttpAccessLogPublisherCfg>,ConfigurationChangeListener<HttpAccessLogPublisherCfg>,ConfigurationDeleteListener<HttpAccessLogPublisherCfg>
public final class HTTPAccessLogger
extends AbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,HttpAccessLogPublisherCfg>
This class defines the wrapper that will invoke all registered HTTP access loggers for each type of request received
or response sent.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a log publisher to the logger.Returns all the registered HTTP access log publishers.static HTTPAccessLoggerRetrieve the singleton instance of this class.protected ClassPropertyDefinitionReturns the javaClassPropertyDefinitionfor the current logger.Returns the log publishers.static voidlogRequestInfo(HTTPRequestInfo requestInfo) Logs the given HTTPRequestInfo.voidRemoves all existing log publishers from the logger.voidRemove a log publisher from the logger.Methods inherited from class org.opends.server.loggers.AbstractLogger
applyConfigurationAdd, applyConfigurationChange, applyConfigurationDelete, initializeLogger, isConfigurationAddAcceptable, isConfigurationChangeAcceptable, isConfigurationDeleteAcceptable, modifyLogPublisher
-
Method Details
-
getJavaClassPropertyDefinition
Description copied from class:AbstractLoggerReturns the javaClassPropertyDefinitionfor the current logger.- Specified by:
getJavaClassPropertyDefinitionin classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,HttpAccessLogPublisherCfg> - Returns:
- the java
ClassPropertyDefinitionfor the current logger.
-
getLogPublishers
Description copied from class:AbstractLoggerReturns the log publishers.- Specified by:
getLogPublishersin classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,HttpAccessLogPublisherCfg> - Returns:
- the collection of
LogPublishers
-
getInstance
Retrieve the singleton instance of this class.- Returns:
- The singleton instance of this logger.
-
getHTTPAccessLogPublishers
public static Collection<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>> getHTTPAccessLogPublishers()Returns all the registered HTTP access log publishers.- Returns:
- a Collection of
HTTPAccessLogPublisherobjects
-
logRequestInfo
Logs the given HTTPRequestInfo.- Parameters:
requestInfo- the HTTP request info to log
-
addLogPublisher
Description copied from class:AbstractLoggerAdd a log publisher to the logger.- Specified by:
addLogPublisherin classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,HttpAccessLogPublisherCfg> - Parameters:
publisher- The log publisher to add.
-
removeLogPublisher
Description copied from class:AbstractLoggerRemove a log publisher from the logger.- Specified by:
removeLogPublisherin classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,HttpAccessLogPublisherCfg> - Parameters:
publisher- The log publisher to remove.
-
removeAllLogPublishers
public void removeAllLogPublishers()Description copied from class:AbstractLoggerRemoves all existing log publishers from the logger.- Specified by:
removeAllLogPublishersin classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,HttpAccessLogPublisherCfg>
-