|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.http.HttpHost
Holds all of the variables needed to describe an HTTP connection to a host. This includes remote host name, port and scheme.
| Field Summary | |
static java.lang.String |
DEFAULT_SCHEME_NAME
The default scheme is "http". |
| Constructor Summary | |
HttpHost(HttpHost httphost)
Copy constructor for HttpHost |
|
HttpHost(java.lang.String hostname)
Constructor for HttpHost. |
|
HttpHost(java.lang.String hostname,
int port)
Constructor for HttpHost. |
|
HttpHost(java.lang.String hostname,
int port,
java.lang.String schemeName)
Constructor for HttpHost. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getHostName()
Returns the host name (IP or DNS name). |
int |
getPort()
Returns the port. |
java.lang.String |
getSchemeName()
Returns the scheme. |
int |
hashCode()
|
java.lang.String |
toHostString()
|
java.lang.String |
toString()
|
java.lang.String |
toURI()
Return the host uri. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_SCHEME_NAME
| Constructor Detail |
public HttpHost(java.lang.String hostname,
int port,
java.lang.String schemeName)
hostname - the hostname (IP or DNS name). Can be null.port - the port. Value -1 can be used to set default scheme portschemeName - the name of the scheme. Value null can be used to set
default scheme
public HttpHost(java.lang.String hostname,
int port)
hostname - the hostname (IP or DNS name). Can be null.port - the port. Value -1 can be used to set default scheme portpublic HttpHost(java.lang.String hostname)
hostname - the hostname (IP or DNS name). Can be null.public HttpHost(HttpHost httphost)
httphost - the HTTP host to copy details from| Method Detail |
public java.lang.String getHostName()
null if not setpublic int getPort()
-1 if not setpublic java.lang.String getSchemeName()
public java.lang.String toURI()
public java.lang.String toHostString()
public java.lang.String toString()
Object.toString()public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public int hashCode()
Object.hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||