org.apache.webdav.client
Class HttpClient4
java.lang.Object
org.apache.webdav.client.HttpClient4
- All Implemented Interfaces:
- IClient
public class HttpClient4
- extends java.lang.Object
- implements IClient
Wrapper class for Apache http client version 4
Constructor Summary |
HttpClient4(org.apache.http.impl.client.AbstractHttpClient httpClient,
java.lang.String scheme,
java.lang.String hostname,
int port)
|
Method Summary |
static HttpClient4 |
createHttpClient4(ProviderImpl providerImpl,
java.lang.String scheme,
java.lang.String hostname,
int port)
|
int |
executeMethod(IClientMethod method)
|
ClientCredentials |
getClientCredentials(java.lang.String hostname,
java.lang.String realm)
|
static java.lang.String |
getEscapedPathFromURI(java.lang.String resourcePath)
|
java.lang.String |
getHostname()
|
org.apache.http.impl.client.AbstractHttpClient |
getHttpClient()
|
int |
getPort()
|
java.lang.String |
getScheme()
|
void |
setProxy(java.lang.String host,
int port)
|
void |
setState(java.lang.String hostname,
java.lang.String realm,
java.lang.String username,
java.lang.String password,
boolean hostInNonProxyList,
java.lang.String proxyHost,
java.lang.String proxyPort)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClient4
public HttpClient4(org.apache.http.impl.client.AbstractHttpClient httpClient,
java.lang.String scheme,
java.lang.String hostname,
int port)
getHttpClient
public org.apache.http.impl.client.AbstractHttpClient getHttpClient()
getScheme
public java.lang.String getScheme()
getHostname
public java.lang.String getHostname()
getPort
public int getPort()
createHttpClient4
public static HttpClient4 createHttpClient4(ProviderImpl providerImpl,
java.lang.String scheme,
java.lang.String hostname,
int port)
throws WvcmException
- Throws:
WvcmException
getEscapedPathFromURI
public static java.lang.String getEscapedPathFromURI(java.lang.String resourcePath)
throws java.lang.Exception
- Throws:
java.lang.Exception
executeMethod
public int executeMethod(IClientMethod method)
throws java.io.IOException
- Specified by:
executeMethod
in interface IClient
- Throws:
java.io.IOException
setProxy
public void setProxy(java.lang.String host,
int port)
- Specified by:
setProxy
in interface IClient
setState
public void setState(java.lang.String hostname,
java.lang.String realm,
java.lang.String username,
java.lang.String password,
boolean hostInNonProxyList,
java.lang.String proxyHost,
java.lang.String proxyPort)
- Specified by:
setState
in interface IClient
getClientCredentials
public ClientCredentials getClientCredentials(java.lang.String hostname,
java.lang.String realm)
- Specified by:
getClientCredentials
in interface IClient
Copyright (c) 2003 - Apache Software Foundation