| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.endeca.assembler.configuration.HostAndPort
public class HostAndPort
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_VERSIONClass 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 | 
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail | 
|---|
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".| Method Detail | 
|---|
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| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||