| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.HttpHost
public class HttpHost
Holds all of the variables needed to describe an HTTP connection to a host. This includes remote host, port and protocol.
| Constructor Summary | |
|---|---|
| HttpHost(HttpHost httphost)Copy constructor for HttpHost | |
| HttpHost(String hostname)Constructor for HttpHost. | |
| HttpHost(String hostname,
         int port)Constructor for HttpHost. | |
| HttpHost(String hostname,
         int port,
         Protocol protocol)Constructor for HttpHost. | |
| HttpHost(URI uri)URI constructor for HttpHost. | |
| Method Summary | |
|---|---|
|  Object | clone() | 
|  boolean | equals(Object o) | 
|  String | getHostName()Returns the host name (IP or DNS name). | 
|  int | getPort()Returns the port. | 
|  Protocol | getProtocol()Returns the protocol. | 
|  int | hashCode() | 
|  String | toString() | 
|  String | toURI()Return the host uri. | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public HttpHost(String hostname,
                int port,
                Protocol protocol)
hostname - the hostname (IP or DNS name). Can be null.port - the port. Value -1 can be used to set default protocol portprotocol - the protocol. Value null can be used to set default protocol
public HttpHost(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 protocol portpublic HttpHost(String hostname)
hostname - the hostname (IP or DNS name). Can be null.
public HttpHost(URI uri)
         throws URIException
uri - the URI.
URIExceptionpublic HttpHost(HttpHost httphost)
httphost - the HTTP host to copy details from| Method Detail | 
|---|
public Object clone()
             throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionObject.clone()public String getHostName()
null if not setpublic int getPort()
-1 if not setpublic Protocol getProtocol()
public String toURI()
public String toString()
toString in class ObjectObject.toString()public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||