axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r892717 - /webservices/axis2/trunk/java/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java
Date Mon, 21 Dec 2009 07:50:12 GMT
Author: azeez
Date: Mon Dec 21 07:50:11 2009
New Revision: 892717

URL: http://svn.apache.org/viewvc?rev=892717&view=rev
Log:
Setting the Remote Address in the message context of the local transport

Modified:
    webservices/axis2/trunk/java/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java

Modified: webservices/axis2/trunk/java/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java?rev=892717&r1=892716&r2=892717&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java
(original)
+++ webservices/axis2/trunk/java/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java
Mon Dec 21 07:50:11 2009
@@ -59,7 +59,7 @@
             this.confContext = inMessageContext.getConfigurationContext();
         }
         this.inMessageContext = inMessageContext;
-        EndpointReference to =  inMessageContext.getTo();
+        EndpointReference to = inMessageContext.getTo();
         String action = inMessageContext.getOptions().getAction();
         processMessage(in, to, action, response);
     }
@@ -75,12 +75,16 @@
         processMessage(in, to, action, response);
     }
 
-    public void processMessage(InputStream in, EndpointReference to, String action, OutputStream
response)
+    public void processMessage(InputStream in, EndpointReference to, String action,
+                               OutputStream response)
             throws AxisFault {
         MessageContext msgCtx = confContext.createMessageContext();
         if (inMessageContext != null) {
             msgCtx.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST,
                                inMessageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST));
+            msgCtx.setProperty(MessageContext.REMOTE_ADDR,
+                               inMessageContext.getProperty(MessageContext.REMOTE_ADDR));
+
         }
 
         TransportInDescription tIn = confContext.getAxisConfiguration().getTransportIn(



Mime
View raw message