com.atlassian.bamboo.configuration
Class InetAddressBean

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

public class InetAddressBean
extends java.lang.Object


Method Summary
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
 

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:


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.