atg.endeca.assembler.configuration
Class HostAndPort

java.lang.Object
  extended by atg.endeca.assembler.configuration.HostAndPort

public class HostAndPort
extends java.lang.Object

A very simple class for representing a host and port (presumably for specifying a network connection to some service).

Created: August 29 2012


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
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.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

HostAndPort

public HostAndPort(java.lang.String pHostName,
                   int pPort)
Construct a new host and port object.

Parameters:
pHostName - the host name for the service in question.
pPort - the port number for the service in question.

HostAndPort

public HostAndPort(java.lang.String pHostAndPortString)
Construct a new host and port object.

Parameters:
pHostAndPortString - a host and port file in the form of "{host}:{port}", for example "localhost:80".
Method Detail

getHostName

public java.lang.String getHostName()
Returns property hostName. The host name for the service in question.


getPort

public int getPort()
Returns property port. The port number for the service in question.


getStringSpecifier

public java.lang.String getStringSpecifier()
Return the string specifier, in the form of "{hostname}:{port}", for example "localhost:80".


equals

public boolean equals(java.lang.Object pOther)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object