public class WebDavClient extends Object
| Constructor and Description |
|---|
WebDavClient(Proxy proxy,
String username,
String password)
Creates a new WebDavClient object.
|
WebDavClient(Proxy proxy,
String username,
String password,
boolean useNTAuth)
Creates a new WebDavClient object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
delete(String path)
delete the given path.
|
InputStream |
getInputStream(String path)
DOCUMENT ME!
|
InputStream |
getInputStream(String path,
Map<String,String> responseHeaders,
Map<String,Object> statusValues)
DOCUMENT ME!
|
InputStream |
getInputStream(String path,
Map<String,String> requestHeaders,
Map<String,String> responseHeaders,
Map<String,Object> statusValues)
DOCUMENT ME!
|
int |
getStatusCode(String url)
Gets the http status code via an head request.
|
void |
init(String host)
DOCUMENT ME!
|
void |
init(String host,
int connectionTimeout)
initialises the http client for the given host.
|
int |
mkCol(String url)
DOCUMENT ME!
|
int |
put(String path,
File input)
copies the content of the given file to the given path.
|
int |
put(String path,
InputStream input)
copies the content of the given InputStream to the given path.
|
public WebDavClient(Proxy proxy, String username, String password)
proxy - the currently used proxy or null, if no proxy is usedusername - can be null, if no authentication is requiredpassword - can be null, if no authentication is requiredpublic void init(String host)
host - DOCUMENT ME!public void init(String host, int connectionTimeout)
host - DOCUMENT ME!connectionTimeout - DOCUMENT ME!public int delete(String path) throws MalformedURLException, IOException, org.apache.commons.httpclient.HttpException
path - DOCUMENT ME!MalformedURLException - DOCUMENT ME!IOException - DOCUMENT ME!org.apache.commons.httpclient.HttpException - DOCUMENT ME!public InputStream getInputStream(String path) throws MalformedURLException, IOException, org.apache.commons.httpclient.HttpException
path - DOCUMENT ME!MalformedURLException - DOCUMENT ME!IOException - DOCUMENT ME!org.apache.commons.httpclient.HttpException - DOCUMENT ME!public InputStream getInputStream(String path, Map<String,String> responseHeaders, Map<String,Object> statusValues) throws MalformedURLException, IOException, org.apache.commons.httpclient.HttpException
path - DOCUMENT ME!responseHeaders - if this is not null, then the given map will be filled with the response headersstatusValues - responseHeaders if this is not null, then the given map will be filled with status
code, line, textMalformedURLException - DOCUMENT ME!IOException - DOCUMENT ME!org.apache.commons.httpclient.HttpException - DOCUMENT ME!public InputStream getInputStream(String path, Map<String,String> requestHeaders, Map<String,String> responseHeaders, Map<String,Object> statusValues) throws MalformedURLException, IOException, org.apache.commons.httpclient.HttpException
path - DOCUMENT ME!requestHeaders - DOCUMENT ME!responseHeaders - if this is not null, then the given map will be filled with the response headersstatusValues - responseHeaders if this is not null, then the given map will be filled with status
code, line, textMalformedURLException - DOCUMENT ME!IOException - DOCUMENT ME!org.apache.commons.httpclient.HttpException - DOCUMENT ME!public int mkCol(String url) throws IOException
url - DOCUMENT ME!IOException - DOCUMENT ME!public int getStatusCode(String url) throws IOException
url - DOCUMENT ME!IOException - DOCUMENT ME!public int put(String path, InputStream input) throws MalformedURLException, IOException, org.apache.commons.httpclient.HttpException
path - DOCUMENT ME!input - DOCUMENT ME!MalformedURLException - DOCUMENT ME!IOException - DOCUMENT ME!org.apache.commons.httpclient.HttpException - DOCUMENT ME!public int put(String path, File input) throws MalformedURLException, IOException, org.apache.commons.httpclient.HttpException
path - DOCUMENT ME!input - DOCUMENT ME!MalformedURLException - DOCUMENT ME!IOException - DOCUMENT ME!org.apache.commons.httpclient.HttpException - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.