All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.txlayer.context.TXHostname

java.lang.Object
   |
   +----semper.txlayer.context.TXHostname

public class TXHostname
extends Object
implements Serializable
A wrapper for hostnames, which are normal Strings. Empty constructor leads to the TXHostname initialized with the local machine name.


Constructor Index

 o TXHostname()
Empty constructor.
 o TXHostname(String)
Constructor.

Method Index

 o getTXHostname()
 o toString()

Constructors

 o TXHostname
 public TXHostname() throws TXContextCommException
Empty constructor. Builds a TXHostname with java.net.InetAddress.getLocalHost().getHostName(); in it. Beware: Depending on your configuration, this may be not fully qualified, i.e., without any domain info.

Throws: TXContextCommException
When the local machine name could not be determined. Should never ever happen.
 o TXHostname
 public TXHostname(String theStr)
Constructor.

Parameters:
theStr - Is the hostname.

Methods

 o toString
 public String toString()
Returns:
Gives the hostname in the TXHostname.
Overrides:
toString in class Object
 o getTXHostname
 public String getTXHostname()
Returns:
Gives the hostname in the TXHostname.

All Packages  Class Hierarchy  This Package  Previous  Next  Index