Package org.apache.commons.httpclient
Class HttpHost
java.lang.Object
org.apache.commons.httpclient.HttpHost
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ProxyHost
Deprecated.
Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project.
It is not recommended to use it in any new code.
Instead, use HTTP client API plugins as a dependency in your code.
E.g.
Apache HttpComponents Client API 4.x Plugin or
Async HTTP Client Plugin.
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
ConstructorsConstructorDescriptionDeprecated.Constructor for HttpHost.Deprecated.Constructor for HttpHost.Deprecated.Constructor for HttpHost.Deprecated.Copy constructor for HttpHostDeprecated.URI constructor for HttpHost. -
Method Summary
-
Constructor Details
-
HttpHost
Deprecated.Constructor for HttpHost.- Parameters:
hostname- the hostname (IP or DNS name). Can benull.port- the port. Value-1can be used to set default protocol portprotocol- the protocol. Valuenullcan be used to set default protocol
-
HttpHost
Deprecated.Constructor for HttpHost.- Parameters:
hostname- the hostname (IP or DNS name). Can benull.port- the port. Value-1can be used to set default protocol port
-
HttpHost
Deprecated.Constructor for HttpHost.- Parameters:
hostname- the hostname (IP or DNS name). Can benull.
-
HttpHost
Deprecated.URI constructor for HttpHost.- Parameters:
uri- the URI.- Throws:
URIException
-
HttpHost
Deprecated.Copy constructor for HttpHost- Parameters:
httphost- the HTTP host to copy details from
-
-
Method Details
-
clone
Deprecated.- Throws:
CloneNotSupportedException- See Also:
-
getHostName
Deprecated.Returns the host name (IP or DNS name).- Returns:
- the host name (IP or DNS name), or
nullif not set
-
getPort
public int getPort()Deprecated.Returns the port.- Returns:
- the host port, or
-1if not set
-
getProtocol
Deprecated.Returns the protocol.- Returns:
- The protocol.
-
toURI
Deprecated.Return the host uri.- Returns:
- The host uri.
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-