Class HttpHost
java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.HttpHost
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ProxyHost
Holds all of the variables needed to describe an HTTP connection to a host. This includes
remote host, port and protocol.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructor for HttpHostURI constructor for HttpHost.Constructor for HttpHost.Constructor for HttpHost.Constructor for HttpHost. -
Method Summary
-
Constructor Details
-
HttpHost
Constructor for HttpHost.- Parameters:
hostname
- the hostname (IP or DNS name). Can benull
.port
- the port. Value-1
can be used to set default protocol portprotocol
- the protocol. Valuenull
can be used to set default protocol
-
HttpHost
Constructor for HttpHost.- Parameters:
hostname
- the hostname (IP or DNS name). Can benull
.port
- the port. Value-1
can be used to set default protocol port
-
HttpHost
Constructor for HttpHost.- Parameters:
hostname
- the hostname (IP or DNS name). Can benull
.
-
HttpHost
URI constructor for HttpHost.- Parameters:
uri
- the URI.- Throws:
URIException
-
HttpHost
Copy constructor for HttpHost- Parameters:
httphost
- the HTTP host to copy details from
-
-
Method Details
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
- See Also:
-
getHostName
Returns the host name (IP or DNS name).- Returns:
- the host name (IP or DNS name), or
null
if not set
-
getPort
public int getPort()Returns the port.- Returns:
- the host port, or
-1
if not set
-
getProtocol
Returns the protocol.- Returns:
- The protocol.
-
toURI
Return the host uri.- Returns:
- The host uri.
-
toString
-
equals
-
hashCode
public int hashCode()
-