axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r372859 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2: context/MessageContext.java transport/http/AxisServlet.java
Date Fri, 27 Jan 2006 14:18:59 GMT
Author: dims
Date: Fri Jan 27 06:18:54 2006
New Revision: 372859

URL: http://svn.apache.org/viewcvs?rev=372859&view=rev
Log:
fix for AXIS2-412 -  To Add remote address to the message context in AXIS2

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java?rev=372859&r1=372858&r2=372859&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
Fri Jan 27 06:18:54 2006
@@ -48,6 +48,8 @@
 
     public final static int OUT_FLOW = 2;
 
+    public static final String REMOTE_ADDR = "REMOTE_ADDR";
+
     public static final String TRANSPORT_HEADERS = "TRANSPORT_HEADERS";
 
     /**

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java?rev=372859&r1=372858&r2=372859&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Fri Jan 27 06:18:54 2006
@@ -65,6 +65,7 @@
 
         msgContext.setProperty(Constants.OUT_TRANSPORT_INFO,
                 new ServletBasedOutTransportInfo(httpServletResponse));
+        msgContext.setProperty(MessageContext.REMOTE_ADDR, httpServletRequest.getRemoteAddr());

         msgContext.setProperty(MessageContext.TRANSPORT_HEADERS,
                 getTransportHeaders(httpServletRequest));
         msgContext.setProperty(SESSION_ID, httpServletRequest.getSession().getId());



Mime
View raw message