| |
|
| java.lang.Object com.ibm.webdav.Response
All known Subclasses: com.ibm.webdav.SchemaResponse, com.ibm.webdav.PropertyResponse, com.ibm.webdav.MethodResponse,
Response | public Response()(Code) | | A Response should be constructed with a Document Element
|
Response | public Response(Document document) throws ServerException(Code) | | Construct a Response from an XML response element
Parameters: document - the document that will contain the Responsewhen output as XML. exception: com.ibm.webdav.ServerException - thrown if the XML for the response is incorrect |
Response | public Response(String url)(Code) | | Construct an empty Response for some resource.
Parameters: url - the URL of the resource this is a response for |
asXML | abstract public Element asXML()(Code) | | Translate this Response into an XML response element.
|
getDescription | public String getDescription()(Code) | | Get the description of this response
the description |
getResource | public String getResource()(Code) | | Get the URL of the resource this response describes
the URL of the resource associated with this response |
isOK | abstract public boolean isOK()(Code) | | Check to see if this response contains any errors.
true if all response does not contain an error, false otherwise. |
printNode | public static String printNode(Node node)(Code) | | Takes XML node and prints to String.
Parameters: node - Element to print to String XML node as String |
setDescription | public void setDescription(String value)(Code) | | Set the description of this response
Parameters: value - the new description |
setDocument | public void setDocument(Document document)(Code) | | Set the document the response element is placed in when translated to XML
Parameters: document - usually a MultiStatus document |
setResource | protected void setResource(String url)(Code) | | Set the URL of the resource this response describes
|
toPropertyResponse | abstract public PropertyResponse toPropertyResponse()(Code) | | Convert this Response to a PropertyResponse.
This method is used to convert MethodResponses to PropertyResponses
when an error occurred accessing the properties of some member.
|
toString | public String toString()(Code) | | Convert this Response to a String representation (an XML document).
The String is formatted, and will therefore contain ignorable whitespace.
Use response.asXML().print(pout) if ignorable whitespace is not desired.
a string representation of the Response as an XML document |
|
|
|