org.apache.webdav.lib.methods
Class XMLResponseMethodBase
java.lang.Object
|
+--org.apache.webdav.lib.methods.WebdavMethodBase
|
+--org.apache.webdav.lib.methods.XMLResponseMethodBase
- All Implemented Interfaces:
- WebdavMethod
- Direct Known Subclasses:
- CopyMethod, DeleteMethod, LockMethod, MoveMethod, PropFindMethod, PropPatchMethod
- public class XMLResponseMethodBase
- extends WebdavMethodBase
Utility class for XML response parsing.
- Author:
- B.C. Holmes, Remy Maucherat
Field Summary |
protected javax.xml.parsers.DocumentBuilder |
builder
Document builder. |
Methods inherited from class org.apache.webdav.lib.methods.WebdavMethodBase |
checkNotUsed, checkUsed, followRedirects, generateHeaders, generateHeaders, generateQuery, generateRequestLine, getHeader, getHeaders, getName, getPath, getStatusCode, getStatusText, hasBeenUsed, isStreamedQuery, needContentLength, processResponseHeaders, removeHeader, setDebug, setHeader, setParameter, setPath, setQuery, setQueryString, setState, setStatusCode, setStatusText, setUsed, streamQuery, validate |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
builder
protected javax.xml.parsers.DocumentBuilder builder
- Document builder.
XMLResponseMethodBase
public XMLResponseMethodBase()
- Method constructor.
XMLResponseMethodBase
public XMLResponseMethodBase(java.lang.String path)
- Method constructor.
getResponseDocument
public org.w3c.dom.Document getResponseDocument()
- Response document getter.
- Returns:
- Document response document
getResponses
public java.util.Enumeration getResponses()
recycle
public void recycle()
- Reset the State of the class to its initial state, so that it can be
used again.
- Overrides:
recycle
in class WebdavMethodBase
parseResponse
public void parseResponse(java.io.InputStream input)
throws java.io.IOException,
WebdavException
- Parse response.
- Overrides:
parseResponse
in class WebdavMethodBase
- Parameters:
input
- Input stream
parseXMLResponse
protected void parseXMLResponse(java.io.InputStream input)
throws java.io.IOException,
WebdavException
getResponseHashtable
protected java.util.Hashtable getResponseHashtable()
convertElementToProperty
protected static Property convertElementToProperty(XMLResponseMethodBase.Response response,
org.w3c.dom.Element element)
- This method creates a property implementation from an element.
It treats known properties (i.e., the DAV properties) specially.
These properties are instantiated as an implementation from the
org.apache.webdav.lib.properties
package.