public final class TextHTTPAccessLogPublisher extends HTTPAccessLogPublisher<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg>
| Constructor and Description |
|---|
TextHTTPAccessLogPublisher() |
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg config) |
void |
close()
Close this publisher.
|
org.forgerock.opendj.ldap.DN |
getDN()
Gets the DN of the configuration entry for this log publisher.
|
static TextHTTPAccessLogPublisher |
getStartupTextHTTPAccessPublisher(TextWriter writer)
Returns an instance of the text HTTP access log publisher that will print
all messages to the provided writer.
|
void |
initializeLogPublisher(org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg cfg,
ServerContext serverContext)
Initializes this publisher provider based on the information in the
provided debug publisher configuration.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this log
publisher.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg config,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons) |
void |
logRequestInfo(HTTPRequestInfo ri)
Logs the request info according to the configured extended log format.
|
public static TextHTTPAccessLogPublisher getStartupTextHTTPAccessPublisher(TextWriter writer)
writer - The text writer where the message will be written to.public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg config)
applyConfigurationChange in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg>public void initializeLogPublisher(org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg cfg,
ServerContext serverContext)
throws org.forgerock.opendj.config.server.ConfigException,
InitializationException
LogPublisherinitializeLogPublisher in interface LogPublisher<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg>cfg - The publisher configuration that contains the information to use
to initialize this publisher.serverContext - The server context.org.forgerock.opendj.config.server.ConfigException - If an unrecoverable problem arises in the process of performing
the initialization as a result of the server configuration.InitializationException - If a problem occurs during initialization that is not related to
the server configuration.public boolean isConfigurationAcceptable(org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
LogPublisherisConfigurationAcceptable in interface LogPublisher<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg>isConfigurationAcceptable in class HTTPAccessLogPublisher<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg>configuration - The log publisher configuration for which to make the
determination.unacceptableReasons - A list that may be used to hold the reasons that the provided
configuration is not acceptable.true if the provided configuration is acceptable for this
log publisher, or false if not.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg config,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg>public final void close()
LogPublisherclose in interface Closeableclose in interface AutoCloseableclose in interface LogPublisher<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg>public final org.forgerock.opendj.ldap.DN getDN()
LogPublishergetDN in interface LogPublisher<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg>public void logRequestInfo(HTTPRequestInfo ri)
HTTPAccessLogPublisherlogRequestInfo in class HTTPAccessLogPublisher<org.forgerock.opendj.server.config.server.FileBasedHTTPAccessLogPublisherCfg>ri - The request info to logCopyright © 2010-2020 Wren Security. All Rights Reserved.