From 7637ccfe91a1cbbdd665404ef3ba0c2ad6314e98 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 27 Apr 2009 18:19:56 +0000
Subject: [PATCH] Fix issue 3936: Allow intermediate CONNECT messages to be logged.

---
 opends/src/server/org/opends/server/api/AccessLogPublisher.java |   50 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 49 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/AccessLogPublisher.java b/opends/src/server/org/opends/server/api/AccessLogPublisher.java
index 1a259c7..421cd53 100644
--- a/opends/src/server/org/opends/server/api/AccessLogPublisher.java
+++ b/opends/src/server/org/opends/server/api/AccessLogPublisher.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008 Sun Microsystems, Inc.
+ *      Copyright 2008-2009 Sun Microsystems, Inc.
  */
 package org.opends.server.api;
 
@@ -133,6 +133,30 @@
 
 
   /**
+   * Writes a message to the access logger containing additional
+   * information associated with the provided client connection.
+   * <p>
+   * The default implementation is to not log anything.
+   *
+   * @param clientConnection
+   *          The client connection that has been established.
+   * @param category
+   *          The category of the intermediate message.
+   * @param content
+   *          The content of the intermediate message. This comprises
+   *          of one or more key/value pairs which form the content of
+   *          the intermediate message.
+   */
+  public void logConnectIntermediateMessage(
+      ClientConnection clientConnection, String category,
+      Map<String, String> content)
+  {
+    // Do nothing
+  }
+
+
+
+  /**
    * Writes a message to the access logger with information about the
    * termination of an existing client connection.
    * <p>
@@ -156,6 +180,30 @@
 
 
   /**
+   * Writes a message to the access logger containing additional
+   * information associated with the provided client disconnection.
+   * <p>
+   * The default implementation is to not log anything.
+   *
+   * @param clientConnection
+   *          The client connection that has been terminated.
+   * @param category
+   *          The category of the intermediate message.
+   * @param content
+   *          The content of the intermediate message. This comprises
+   *          of one or more key/value pairs which form the content of
+   *          the intermediate message.
+   */
+  public void logDisconnectIntermediateMessage(
+      ClientConnection clientConnection, String category,
+      Map<String, String> content)
+  {
+    // Do nothing
+  }
+
+
+
+  /**
    * Writes a message to the access logger with information about the
    * abandon request associated with the provided abandon operation.
    * <p>

--
Gitblit v1.10.0