You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by az...@apache.org on 2009/12/21 08:50:12 UTC
svn commit: r892717 -
/webservices/axis2/trunk/java/modules/transport/local/src/org/apache/axis2/transport/local/LocalTransportReceiver.java
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(