org.apache.axis2.transport.http.server
Class HttpUtils

java.lang.Object
  extended byorg.apache.axis2.transport.http.server.HttpUtils

public class HttpUtils
extends Object


Method Summary
static String getIpAddress()
          Returns the ip address to be used for the replyto epr CAUTION: This will go through all the available network interfaces and will try to return an ip address.
static String getSoapAction(org.apache.http.HttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSoapAction

public static String getSoapAction(org.apache.http.HttpRequest request)

getIpAddress

public static String getIpAddress()
                           throws SocketException
Returns the ip address to be used for the replyto epr CAUTION: This will go through all the available network interfaces and will try to return an ip address. First this will try to get the first IP which is not loopback address (127.0.0.1). If none is found then this will return this will return 127.0.0.1. This will not consider IPv6 addresses.

TODO: - Improve this logic to genaralize it a bit more - Obtain the ip to be used here from the Call API

Returns:
Returns String.
Throws:
SocketException