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 TypeMethodDescriptionvoid
Add a log publisher to the logger.Returns all the registered HTTP access log publishers.static HTTPAccessLogger
Retrieve the singleton instance of this class.protected ClassPropertyDefinition
Returns the javaClassPropertyDefinition
for the current logger.Returns the log publishers.static void
logRequestInfo
(HTTPRequestInfo requestInfo) Logs the given HTTPRequestInfo.void
Removes all existing log publishers from the logger.void
Remove 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:AbstractLogger
Returns the javaClassPropertyDefinition
for the current logger.- Specified by:
getJavaClassPropertyDefinition
in classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,
HttpAccessLogPublisherCfg> - Returns:
- the java
ClassPropertyDefinition
for the current logger.
-
getLogPublishers
Description copied from class:AbstractLogger
Returns the log publishers.- Specified by:
getLogPublishers
in classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,
HttpAccessLogPublisherCfg> - Returns:
- the collection of
LogPublisher
s
-
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
HTTPAccessLogPublisher
objects
-
logRequestInfo
Logs the given HTTPRequestInfo.- Parameters:
requestInfo
- the HTTP request info to log
-
addLogPublisher
Description copied from class:AbstractLogger
Add a log publisher to the logger.- Specified by:
addLogPublisher
in classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,
HttpAccessLogPublisherCfg> - Parameters:
publisher
- The log publisher to add.
-
removeLogPublisher
Description copied from class:AbstractLogger
Remove a log publisher from the logger.- Specified by:
removeLogPublisher
in classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,
HttpAccessLogPublisherCfg> - Parameters:
publisher
- The log publisher to remove.
-
removeAllLogPublishers
public void removeAllLogPublishers()Description copied from class:AbstractLogger
Removes all existing log publishers from the logger.- Specified by:
removeAllLogPublishers
in classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,
HttpAccessLogPublisherCfg>
-