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.
-
TXHostname()
- Empty constructor.
-
TXHostname(String)
- Constructor.
-
getTXHostname()
-
-
toString()
-
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.
TXHostname
public TXHostname(String theStr)
- Constructor.
- Parameters:
- theStr - Is the hostname.
toString
public String toString()
- Returns:
- Gives the hostname in the TXHostname.
- Overrides:
- toString in class Object
getTXHostname
public String getTXHostname()
- Returns:
- Gives the hostname in the TXHostname.
All Packages Class Hierarchy This Package Previous Next Index