com.foxsmart.ic.net
Class Hostname

java.lang.Object
  extended by com.foxsmart.ic.net.Hostname
All Implemented Interfaces:
Host, java.io.Serializable

public class Hostname
extends java.lang.Object
implements Host

The Hostname class represents an individual network hostname.

See Also:
Serialized Form

Constructor Summary
Hostname(java.lang.String hostname)
          Constructs a hostname object.
 
Method Summary
 java.lang.String getHostname()
          Gets the hostname.
 void setHostname(java.lang.String hostname)
          Sets the hostname.
 java.lang.String toString()
          Returns the string representation of the hostname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hostname

public Hostname(java.lang.String hostname)
         throws java.lang.IllegalArgumentException
Constructs a hostname object.

Parameters:
hostname - the hostname.
Throws:
java.lang.IllegalArgumentException - if the hostname is invalid.
Method Detail

setHostname

public void setHostname(java.lang.String hostname)
                 throws java.lang.IllegalArgumentException
Sets the hostname.

Parameters:
hostname - The hostname.
Throws:
java.lang.IllegalArgumentException - if the hostname is invalid.

getHostname

public java.lang.String getHostname()
Gets the hostname.

Returns:
the hostname.

toString

public java.lang.String toString()
Returns the string representation of the hostname. This is the same as calling the getHostname method.

Overrides:
toString in class java.lang.Object


Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.