axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r437317 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Date Sun, 27 Aug 2006 07:15:52 GMT
Author: ruchithf
Date: Sun Aug 27 00:15:52 2006
New Revision: 437317

URL: http://svn.apache.org/viewvc?rev=437317&view=rev
Log:
Use the host ip when ip is null

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java?rev=437317&r1=437316&r2=437317&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Sun Aug 27 00:15:52 2006
@@ -33,6 +33,7 @@
 import org.apache.axis2.engine.AxisEngine;
 import org.apache.axis2.engine.ListenerManager;
 import org.apache.axis2.transport.TransportListener;
+import org.apache.axis2.transport.http.server.HttpUtils;
 import org.apache.axis2.transport.http.util.RESTUtil;
 import org.apache.axis2.util.JavaUtils;
 import org.apache.axis2.util.UUIDGenerator;
@@ -47,6 +48,7 @@
 import javax.xml.namespace.QName;
 import java.io.IOException;
 import java.io.OutputStream;
+import java.net.SocketException;
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Map;
@@ -391,6 +393,15 @@
         if (port == null) {
             port = "8080";
         }
+        
+        if(ip == null) {
+            try {
+                ip = HttpUtils.getIpAddress();
+            } catch (SocketException e) {
+                throw new AxisFault(e);
+            }
+        }
+        
         if (contextPath == null) {
             // HACK ALERT!!! - Is there a better way to get the webapp name?
             try {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message