public class HostAndPort
extends java.lang.Object
Created: August 29 2012
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
HostAndPort(java.lang.String pHostAndPortString)
Construct a new host and port object.
|
HostAndPort(java.lang.String pHostName,
int pPort)
Construct a new host and port object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object pOther) |
java.lang.String |
getHostName()
Returns property hostName.
|
int |
getPort()
Returns property port.
|
java.lang.String |
getStringSpecifier()
Return the string specifier, in the form of "{hostname}:{port}", for
example "localhost:80".
|
int |
hashCode() |
java.lang.String |
toString() |
public HostAndPort(java.lang.String pHostName,
int pPort)
pHostName - the host name for the service in question.pPort - the port number for the service in question.public HostAndPort(java.lang.String pHostAndPortString)
pHostAndPortString - a host and port file in the form of
"{host}:{port}", for example "localhost:80".public java.lang.String getHostName()
public int getPort()
public java.lang.String getStringSpecifier()
public boolean equals(java.lang.Object pOther)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object