| java.lang.Object org.apache.axis2.transport.http.server.HttpUtils
HttpUtils | public class HttpUtils (Code) | | |
Method Summary | |
public 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.
First this will try to get the first IP which is not loopback address (127.0.0.1). | public static String | getIpAddress(AxisConfiguration axisConfiguration) First check whether the hostname parameter is there in AxisConfiguration (axis2.xml) ,
if it is there then this will retun that as the host name , o.w will return the IP address. | public static String | getSoapAction(AxisHttpRequest request) |
getIpAddress | public static String getIpAddress() throws SocketException(Code) | | 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 String. throws: SocketException - |
getIpAddress | public static String getIpAddress(AxisConfiguration axisConfiguration) throws SocketException(Code) | | First check whether the hostname parameter is there in AxisConfiguration (axis2.xml) ,
if it is there then this will retun that as the host name , o.w will return the IP address.
|
|
|