org.apache.axis.utils

Class NetworkUtils


public class NetworkUtils
extends java.lang.Object

Utility classes for networking created 13-May-2004 16:17:51

Field Summary

static String
LOCALHOST
what we return when we cannot determine our hostname.
protected static Log
log

Method Summary

static String
getLocalHostname()
Get the string defining the hostname of the system, as taken from the default network adapter of the system.

Field Details

LOCALHOST

public static final String LOCALHOST
what we return when we cannot determine our hostname. We use this rather than 'localhost' as if DNS is very confused, localhost can map to different machines than "self".


log

protected static Log log

Method Details

getLocalHostname

public static String getLocalHostname()

Returns:
a string name of the host.


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.