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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLogPublisher(HTTPAccessLogPublisher<HttpAccessLogPublisherCfg> publisher)Add a log publisher to the logger.static Collection<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>>getHTTPAccessLogPublishers()Returns all the registered HTTP access log publishers.static HTTPAccessLoggergetInstance()Retrieve the singleton instance of this class.protected ClassPropertyDefinitiongetJavaClassPropertyDefinition()Returns the javaClassPropertyDefinitionfor the current logger.protected Collection<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>>getLogPublishers()Returns the log publishers.static voidlogRequestInfo(HTTPRequestInfo requestInfo)Logs the given HTTPRequestInfo.voidremoveAllLogPublishers()Removes all existing log publishers from the logger.voidremoveLogPublisher(HTTPAccessLogPublisher<HttpAccessLogPublisherCfg> publisher)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 Detail
- 
getJavaClassPropertyDefinition
protected ClassPropertyDefinition 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
protected Collection<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>> getLogPublishers()
Description copied from class:AbstractLoggerReturns the log publishers.- Specified by:
 getLogPublishersin classAbstractLogger<HTTPAccessLogPublisher<HttpAccessLogPublisherCfg>,HttpAccessLogPublisherCfg>- Returns:
 - the collection of 
LogPublishers 
 
- 
getInstance
public static HTTPAccessLogger 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
public static void logRequestInfo(HTTPRequestInfo requestInfo)
Logs the given HTTPRequestInfo.- Parameters:
 requestInfo- the HTTP request info to log
 
- 
addLogPublisher
public void addLogPublisher(HTTPAccessLogPublisher<HttpAccessLogPublisherCfg> publisher)
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
public void removeLogPublisher(HTTPAccessLogPublisher<HttpAccessLogPublisherCfg> publisher)
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>
 
 - 
 
 -