cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1080643 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java
Date Fri, 11 Mar 2011 16:30:10 GMT
Author: dkulp
Date: Fri Mar 11 16:30:09 2011
New Revision: 1080643

URL: http://svn.apache.org/viewvc?rev=1080643&view=rev
Log:
Log the full URL and query params

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java?rev=1080643&r1=1080642&r2=1080643&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingInInterceptor.java Fri
Mar 11 16:30:09 2011
@@ -110,9 +110,13 @@ public class LoggingInInterceptor extend
         if (headers != null) {
             buffer.getHeader().append(headers);
         }
-        String uri = (String)message.get(Message.REQUEST_URI);
+        String uri = (String)message.get(Message.REQUEST_URL);
         if (uri != null) {
             buffer.getAddress().append(uri);
+            String query = (String)message.get(Message.QUERY_STRING);
+            if (query != null) {
+                buffer.getAddress().append("?").append(query);
+            }
         }
             
         InputStream is = message.getContent(InputStream.class);



Mime
View raw message