|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.HttpMethodBase | +--org.apache.webdav.lib.methods.XMLResponseMethodBase
Utility class for XML response parsing.
Inner Class Summary | |
class |
XMLResponseMethodBase.Response
An abstract class that models a DAV:response. |
(package private) class |
XMLResponseMethodBase.ResponseWithinMultistatus
A class that models the DAV:response element within a multistatus. |
(package private) class |
XMLResponseMethodBase.SingleResponse
|
Field Summary | |
protected javax.xml.parsers.DocumentBuilder |
builder
Document builder. |
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
debug, followRedirects, name, parameters, path, query, queryString, requestHeaders, responseHeaders, state, statusCode, statusText |
Fields inherited from interface org.apache.commons.httpclient.HttpMethod |
PROTOCOL |
Constructor Summary | |
XMLResponseMethodBase()
Method constructor. |
|
XMLResponseMethodBase(java.lang.String path)
Method constructor. |
Method Summary | |
protected static Property |
convertElementToProperty(XMLResponseMethodBase.Response response,
org.w3c.dom.Element element)
This method creates a property implementation from an element. |
org.w3c.dom.Document |
getResponseDocument()
Response document getter. |
protected java.util.Hashtable |
getResponseHashtable()
|
java.util.Enumeration |
getResponses()
Return an enumeration containing the responses. |
protected org.apache.commons.httpclient.State |
getState()
|
void |
parseResponse(java.io.InputStream input)
Parse response. |
protected void |
parseXMLResponse(java.io.InputStream input)
|
void |
recycle()
Reset the State of the class to its initial state, so that it can be used again. |
Methods inherited from class org.apache.commons.httpclient.HttpMethodBase |
checkNotUsed, checkUsed, followRedirects, generateHeaders, generateHeaders, generateQuery, generateRequestLine, generateRequestLine, getHeader, getHeaders, getHeadersHashtable, getName, getPath, getStatusCode, getStatusText, hasBeenUsed, hasResponseBody, isStreamedQuery, needContentLength, needExpectation, processResponseHeaders, removeHeader, setDebug, setFollowRedirects, setHeader, setParameter, setPath, setQuery, setQueryString, setState, setStatusCode, setStatusText, setUsed, streamQuery, validate |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected javax.xml.parsers.DocumentBuilder builder
Constructor Detail |
public XMLResponseMethodBase()
public XMLResponseMethodBase(java.lang.String path)
Method Detail |
public org.w3c.dom.Document getResponseDocument()
public java.util.Enumeration getResponses()
protected org.apache.commons.httpclient.State getState()
public void recycle()
recycle
in class org.apache.commons.httpclient.HttpMethodBase
public void parseResponse(java.io.InputStream input) throws java.io.IOException, org.apache.commons.httpclient.HttpException
parseResponse
in class org.apache.commons.httpclient.HttpMethodBase
input
- Input streamprotected void parseXMLResponse(java.io.InputStream input) throws java.io.IOException, org.apache.commons.httpclient.HttpException
protected java.util.Hashtable getResponseHashtable()
protected static Property convertElementToProperty(XMLResponseMethodBase.Response response, org.w3c.dom.Element element)
org.apache.webdav.lib.properties
package.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |