From 142f955cce8647d62a964226bb4975e4b6a8505a Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 30 May 2016 09:59:23 +0000
Subject: [PATCH] OPENDJ-2950 Add support for cs-uri and cs-uri-stem fields in HTTP access log
---
opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java
index e0df0b2..a5c5cef 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/HTTPClientConnection.java
@@ -23,6 +23,7 @@
import static org.opends.server.loggers.AccessLogger.logDisconnect;
import java.net.InetAddress;
+import java.net.URI;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Collection;
@@ -194,8 +195,8 @@
/** The HTTP method/verb used for this request. */
private final String method;
- /** The query issued by the client. */
- private final String query;
+ /** The URI issued by the client. */
+ private final MutableUri uri;
/** The user agent used by the client. */
private final String userAgent;
@@ -254,14 +255,13 @@
this.clientPort = clientCtx.getRemotePort();
this.isSecure = clientCtx.isSecure();
- final MutableUri uri = request.getUri();
+ this.uri = request.getUri();
this.serverAddress = uri.getHost();
this.localAddress = toInetAddress(serverAddress);
this.serverPort = uri.getPort();
this.securityStrengthFactor = calcSSF(
context.asContext(AttributesContext.class).getAttributes().get(SERVLET_SSF_CONSTANT));
this.method = request.getMethod();
- this.query = uri.getQuery();
this.protocol = request.getVersion();
this.userAgent = clientCtx.getUserAgent();
@@ -578,9 +578,9 @@
}
@Override
- public String getQuery()
+ public URI getUri()
{
- return this.query;
+ return this.uri.asURI();
}
@Override
--
Gitblit v1.10.0