com.atlassian.bamboo.configuration
Class InetAddressBean

java.lang.Object
  extended by com.atlassian.bamboo.configuration.InetAddressBean

public class InetAddressBean
extends java.lang.Object


Constructor Summary
InetAddressBean()
           
 
Method Summary
static java.lang.String getAddressByHostName(java.lang.String hostName, java.lang.String defaultAddress)
          Retrieves address of the host identified by hostName If hostName could not be found defaultAddress is returned
static java.lang.String getCanonicalLocalHostName()
           
static java.lang.String getLocalCanonicalHostName(java.lang.String defaultName)
           
static java.lang.String getLocalHostAddress(java.lang.String defaultAddress)
          Returns the address of the local host or defaultAddress if local host could not be found
static java.lang.String getLocalHostName(java.lang.String defaultName)
          Returns the name of the local host or defaultName if local host could not be found
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InetAddressBean

public InetAddressBean()
Method Detail

getCanonicalLocalHostName

@Nullable
public static java.lang.String getCanonicalLocalHostName()
Returns:
Canonical name of the local host or null if it could not be found

getLocalCanonicalHostName

@Nullable
public static java.lang.String getLocalCanonicalHostName(@Nullable
                                                                  java.lang.String defaultName)
Parameters:
defaultName -
Returns:
Canonical name of the local host. If it fails the defaultName will be returned

getLocalHostName

@Nullable
public static java.lang.String getLocalHostName(@Nullable
                                                         java.lang.String defaultName)
Returns the name of the local host or defaultName if local host could not be found

Parameters:
defaultName -
Returns:

getLocalHostAddress

public static java.lang.String getLocalHostAddress(java.lang.String defaultAddress)
Returns the address of the local host or defaultAddress if local host could not be found

Parameters:
defaultAddress -
Returns:

getAddressByHostName

public static java.lang.String getAddressByHostName(java.lang.String hostName,
                                                    java.lang.String defaultAddress)
Retrieves address of the host identified by hostName If hostName could not be found defaultAddress is returned

Parameters:
hostName -
defaultAddress -
Returns:


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.