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<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this log publisher.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.FileBasedHttpAccessLogPublisherCfg config,
List<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
LogPublisher
initializeLogPublisher
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<LocalizableMessage> unacceptableReasons)
LogPublisher
isConfigurationAcceptable
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<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.FileBasedHttpAccessLogPublisherCfg>
public final void close()
LogPublisher
close
in interface Closeable
close
in interface AutoCloseable
close
in interface LogPublisher<org.forgerock.opendj.server.config.server.FileBasedHttpAccessLogPublisherCfg>
public final org.forgerock.opendj.ldap.Dn getDN()
LogPublisher
getDN
in interface LogPublisher<org.forgerock.opendj.server.config.server.FileBasedHttpAccessLogPublisherCfg>
public void logRequestInfo(HTTPRequestInfo ri)
HTTPAccessLogPublisher
logRequestInfo
in class HTTPAccessLogPublisher<org.forgerock.opendj.server.config.server.FileBasedHttpAccessLogPublisherCfg>
ri
- The request info to logCopyright © 2010–2017 ForgeRock AS. All rights reserved.