Package | Description |
---|---|
org.apache.commons.httpclient |
Classes and interfaces supporting the client side of the HTTP protocol.
|
org.apache.commons.httpclient.protocol |
Provides protocol specific socket factory handling.
|
Modifier and Type | Method and Description |
---|---|
Protocol |
HttpConnection.getProtocol()
Returns the protocol used to establish the connection.
|
Protocol |
HostConfiguration.getProtocol()
Returns the protocol.
|
Protocol |
HttpHost.getProtocol()
Returns the protocol.
|
Modifier and Type | Method and Description |
---|---|
void |
HostConfiguration.setHost(java.lang.String host,
int port,
Protocol protocol)
Sets the given host, port and protocol.
|
void |
HostConfiguration.setHost(java.lang.String host,
java.lang.String virtualHost,
int port,
Protocol protocol)
Deprecated.
#setHost(String, int, Protocol)
|
void |
HttpConnection.setProtocol(Protocol protocol)
Sets the protocol used to establish the connection
|
Constructor and Description |
---|
HttpConnection(java.lang.String host,
int port,
Protocol protocol)
Creates a new HTTP connection for the given host and port
using the given protocol.
|
HttpConnection(java.lang.String proxyHost,
int proxyPort,
java.lang.String host,
int port,
Protocol protocol)
Creates a new HTTP connection for the given host with the virtual
alias and port via the given proxy host and port using the given
protocol.
|
HttpConnection(java.lang.String proxyHost,
int proxyPort,
java.lang.String host,
java.lang.String virtualHost,
int port,
Protocol protocol)
Deprecated.
use #HttpConnection(String, int, String, int, Protocol)
|
HttpConnection(java.lang.String host,
java.lang.String virtualHost,
int port,
Protocol protocol)
Creates a new HTTP connection for the given host with the virtual
alias and port using given protocol.
|
HttpHost(java.lang.String hostname,
int port,
Protocol protocol)
Constructor for HttpHost.
|
Modifier and Type | Method and Description |
---|---|
static Protocol |
Protocol.getProtocol(java.lang.String id)
Gets the protocol with the given ID.
|
Modifier and Type | Method and Description |
---|---|
static void |
Protocol.registerProtocol(java.lang.String id,
Protocol protocol)
Registers a new protocol with the given identifier.
|
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.