From 5203b37903fe2731620fb5b910cda72a238fac11 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 24 Apr 2013 10:17:09 +0000
Subject: [PATCH] OPENDJ-879 (CR-1600) Add HTTP access log
---
opends/src/server/org/opends/server/api/AccessLogPublisher.java | 72 +++---------------------------------
1 files changed, 6 insertions(+), 66 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/AccessLogPublisher.java b/opends/src/server/org/opends/server/api/AccessLogPublisher.java
index df2de94..41bf65c 100644
--- a/opends/src/server/org/opends/server/api/AccessLogPublisher.java
+++ b/opends/src/server/org/opends/server/api/AccessLogPublisher.java
@@ -23,21 +23,16 @@
*
*
* Copyright 2008-2009 Sun Microsystems, Inc.
- * Portions copyright 2011 ForgeRock AS.
+ * Portions copyright 2011-2013 ForgeRock AS.
*/
package org.opends.server.api;
-
-
import java.util.List;
+import org.opends.messages.Message;
import org.opends.server.admin.std.server.AccessLogPublisherCfg;
-import org.opends.server.config.ConfigException;
import org.opends.server.core.*;
import org.opends.server.types.*;
-import org.opends.messages.Message;
-
-
/**
* This class defines the set of methods and structures that must be
@@ -52,50 +47,12 @@
mayInstantiate = false,
mayExtend = true,
mayInvoke = false)
-public abstract class AccessLogPublisher
- <T extends AccessLogPublisherCfg>
+public abstract class AccessLogPublisher<T extends AccessLogPublisherCfg>
+ implements LogPublisher<T>
{
- /**
- * Initializes this access publisher provider based on the
- * information in the provided debug publisher configuration.
- *
- * @param config
- * The access publisher configuration that contains the
- * information to use to initialize this access publisher.
- * @throws ConfigException
- * If an unrecoverable problem arises in the process of
- * performing the initialization as a result of the server
- * configuration.
- * @throws InitializationException
- * If a problem occurs during initialization that is not
- * related to the server configuration.
- */
- public abstract void initializeAccessLogPublisher(T config)
- throws ConfigException, InitializationException;
-
-
-
- /**
- * Indicates whether the provided configuration is acceptable for
- * this access log publisher. It should be possible to call this
- * method on an uninitialized access log publisher instance in order
- * to determine whether the access log publisher would be able to
- * use the provided configuration. <BR>
- * <BR>
- * Note that implementations which use a subclass of the provided
- * configuration class will likely need to cast the configuration to
- * the appropriate subclass type.
- *
- * @param configuration
- * The access log publisher configuration for which to make
- * the determination.
- * @param unacceptableReasons
- * A list that may be used to hold the reasons that the
- * provided configuration is not acceptable.
- * @return {@code true} if the provided configuration is acceptable
- * for this access log publisher, or {@code false} if not.
- */
+ /** {@inheritDoc} */
+ @Override
public boolean isConfigurationAcceptable(T configuration,
List<Message> unacceptableReasons)
{
@@ -108,13 +65,6 @@
/**
- * Close this publisher.
- */
- public abstract void close();
-
-
-
- /**
* Writes a message to the access logger with information about a
* new client connection that has been established, regardless of
* whether it will be immediately terminated.
@@ -521,14 +471,4 @@
// Do nothing
}
-
-
- /**
- * Gets the DN of the configuration entry for this access log
- * publisher.
- *
- * @return The configuration entry DN.
- */
- public abstract DN getDN();
-
}
--
Gitblit v1.10.0