|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.commons.httpclient.HttpMultiClient
An Http user-agent that supports multiple connections to Http servers.
HttpClient| Constructor Summary | |
HttpMultiClient()
No-args constructor. |
|
HttpMultiClient(java.lang.String proxyHost,
int proxyPort)
Constructor that uses proxy host and port. |
|
| Method Summary | |
int |
executeMethod(HttpUrlMethod method)
Execute the given HttpUrlMethod using my current
connection and HttpState. |
int |
getConnectionTimeout()
Returns the value of connection timeout. |
java.lang.String |
getProxyHost()
Returns the hostname for the HTTP proxy server in use for all requests. |
int |
getProxyPort()
Returns the HTTP proxy server port number |
int |
getRequestTimeout()
Returns the value of the request timeout. |
HttpSharedState |
getState()
Get the shared state |
boolean |
isStrictMode()
|
void |
setConnectionTimeout(int timeout)
Sets the connection timeout. |
void |
setProxyHost(java.lang.String host)
Sets the hostname for the HTTP proxy server to use for all requests. |
void |
setProxyPort(int port)
Sets the port number for the HTTP proxy server to use for all requests. |
void |
setRequestTimeout(int timeout)
Sets the request timeout. |
void |
setSSLSocketFactory(javax.net.ssl.SSLSocketFactory sslSocketFactory)
Specifies an alternative factory for SSL sockets. |
void |
setState(HttpSharedState state)
Set the shared state. |
void |
setStrictMode(boolean strictMode)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpMultiClient()
public HttpMultiClient(java.lang.String proxyHost,
int proxyPort)
proxyHost - host name of the proxy server to useproxyPort - port number of the proxy server to use| Method Detail |
public void setState(HttpSharedState state)
state - the new shared stategetState()public HttpSharedState getState()
setState(HttpSharedState)public void setStrictMode(boolean strictMode)
strictMode - true if strict mode should be usedisStrictMode()public boolean isStrictMode()
true if strict mode being usedsetStrictMode(boolean)public void setConnectionTimeout(int timeout)
timeout - the time, in milliseconds, to block waiting for an
available connectiongetConnectionTimeout(),
executeMethod(org.apache.commons.httpclient.HttpUrlMethod)public int getConnectionTimeout()
setConnectionTimeout(int)public void setRequestTimeout(int timeout)
timeout - the SoTimeout value, in millisecondsgetRequestTimeout(),
HttpConnection.setSoTimeout(int)public int getRequestTimeout()
setRequestTimeoutpublic void setProxyHost(java.lang.String host)
host - The hostname of the HTTP proxy serverHttpConnectionManager.setProxyHost(java.lang.String)public java.lang.String getProxyHost()
HttpConnectionManager.getProxyHost()public void setProxyPort(int port)
port - the proxy server port numberHttpConnectionManager.setProxyPort(int)public void setSSLSocketFactory(javax.net.ssl.SSLSocketFactory sslSocketFactory)
sslSocketFactory - a living instance of the alternative
SSLSocketFactoryHttpConnection
setSSLSocketFactorypublic int getProxyPort()
HttpConnectionManager.getProxyPort()
public int executeMethod(HttpUrlMethod method)
throws java.io.IOException,
HttpException
HttpUrlMethod using my current
connection and HttpState.method - the HttpMethod to execute. Must be non-null.java.io.IOException - if an I/O error occursHttpException - if a protocol exception occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||