| java.lang.Object org.openharmonise.webdav.client.WebDAVResponse
WebDAVResponse | public class WebDAVResponse (Code) | | Wraps up all the data and methods for dealing with
WebDAV Responses.
author: Matthew Large version: $Revision: 1.1 $ |
Constructor Summary | |
public | WebDAVResponse(HTTPResponse response) Creates a new WebDAV repsonse. |
WebDAVResponse | public WebDAVResponse(HTTPResponse response) throws IOException, ModuleException(Code) | | Creates a new WebDAV repsonse.
Parameters: response - HTTPResponse used to create this WebDAVResponse throws: IOException - throws: ModuleException - |
getHeader | public String getHeader(String sName)(Code) | | Retrieves the value for a given header.
Parameters: sName - Header to return the value for the header, or null if non-existent |
getMultiStatusResponses | public List getMultiStatusResponses()(Code) | | Returns list of MultiStatusResponse objects.
List of MultiStatusResponse objects, empty list if there aren't any |
getResponseData | public byte[] getResponseData() throws IOException, ModuleException(Code) | | Returns the WebDAV response body.
byte array of the response body throws: IOException - throws: ModuleException - |
getStatusCode | public int getStatusCode() throws IOException, ModuleException(Code) | | Returns the overall status code for the response. If the overall status code
is 207 (MultiStatus) then there will be more detailed status codes in each
of the MultiStatusResponse objects.
int, status code for overall response throws: IOException - throws: ModuleException - |
getURL | public String getURL()(Code) | | Returns the URL of the request.
URL |
setURL | protected void setURL(String sURL)(Code) | | Sets the URL of the request.
Parameters: sURL - URL |
|
|