| java.lang.Object org.skunk.dav.client.AbstractDAVMethod
All known Subclasses: org.skunk.dav.client.method.HeadMethod, org.skunk.dav.client.AbstractWriteDAVMethod, org.skunk.dav.client.method.LockMethod, org.skunk.dav.client.method.UnlockMethod, org.skunk.dav.client.method.TraceMethod, org.skunk.dav.client.method.PropFindMethod, org.skunk.dav.client.method.OptionsMethod, org.skunk.dav.client.method.GetMethod,
AbstractDAVMethod | abstract public class AbstractDAVMethod implements DAVMethod(Code) | | base class for DAV methods.
|
AbstractDAVMethod | public AbstractDAVMethod(String path)(Code) | | Parameters: path - the resource on which the method is performed |
extractStatus | final protected static Integer extractStatus(String statusLine)(Code) | | convenience function for parsing the status header.
Parameters: statusLine - the HTTP status line the status as an Integer |
getDAVFile | public DAVFile getDAVFile()(Code) | | the DAVFile corresponding to the resourceURL. |
getHost | public String getHost()(Code) | | gets the hostname of the server.
the hostname |
getPort | public int getPort()(Code) | | gets the port where the file in question is served.
the port |
getProtocol | public String getProtocol()(Code) | | returns the protocol
the protocol |
getRequestBody | public byte[] getRequestBody()(Code) | | returns the body of the request
the body of the request, if any, or null |
getRequestHeaders | public Map getRequestHeaders()(Code) | | gets the headers of the request
the request headers |
getRequestURL | public String getRequestURL()(Code) | | returns the path requested
the path requested. |
getResponseBody | public byte[] getResponseBody()(Code) | | the body of the response |
getResponseHeaders | public Map getResponseHeaders()(Code) | | the headers of the response |
getStatus | public int getStatus()(Code) | | the status of the response |
processPropElement | protected void processPropElement(DAVFile file, XMLElement elem)(Code) | | by default, passes the properties off to PropertyHandler
Parameters: file - the DAVFile in which the results are stored Parameters: elem - the prop XMLElement being processed |
processRequestBody | public void processRequestBody()(Code) | | a hook for processing the request body. By default does nothing.
|
processRequestHeaders | public void processRequestHeaders()(Code) | | a hook for processing the request headers. By default does nothing.
|
processResponseBody | public void processResponseBody() throws MalformedXMLException(Code) | | a hook into processing the body of the response. By default will
parse a multistatus response; otherwise, does nothing.
|
processResponseHeaders | public void processResponseHeaders()(Code) | | a hook for processing the response headers. By default does nothing.
|
setHost | public void setHost(String host)(Code) | | sets the hostname
Parameters: host - the hostname |
setPort | public void setPort(int port)(Code) | | sets the port
Parameters: port - the port |
setProtocol | public void setProtocol(String protocol)(Code) | | sets the protocol
Parameters: protocol - the protocol |
setRequestBody | public void setRequestBody(byte[] b)(Code) | | sets the body of the request.
Parameters: b - the new request body |
setRequestHeaders | public void setRequestHeaders(Map m)(Code) | | sets the headers of the request
Parameters: m - a map of header names and values |
setResponseBody | public void setResponseBody(byte[] body)(Code) | | used to populate the body of the response
|
setResponseHeaders | public void setResponseHeaders(Map headers)(Code) | | used to populate the headers of the response
Parameters: headers - a mapping of headers names to values |
setStatus | public void setStatus(int status)(Code) | | used to the populate the status of the response
Parameters: status - the status |
stripLastSlash | final protected static String stripLastSlash(String path)(Code) | | chomps the last slash off a path, which may not be null.
Parameters: path - the path to chomp |
|
|