|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.webdav.util.AbstractResponseElement
org.torweg.pulse.webdav.util.StatusResponseElement
public class StatusResponseElement
represents a status response element in a multi-status response.
StatusResponseElements are used by the COPY and MOVE operations.
| Constructor Summary | |
|---|---|
StatusResponseElement(java.net.URI h,
boolean isCollection,
boolean isResource)
creates an abstract response. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
returns if the given object is equal to this object in terms of their href property. |
java.net.URI |
getHref()
returns the href. |
DAVStatus |
getStatus()
returns the status of the response. |
org.jdom.Element |
getXML()
returns a status response element. |
int |
hashCode()
returns the hash code. |
boolean |
isCollection()
|
boolean |
isResource()
|
void |
setStatus(DAVStatus s)
sets the status for the response. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatusResponseElement(java.net.URI h,
boolean isCollection,
boolean isResource)
h - the URI of the object the response is forisCollection - indicates, whether the object is a collectionisResource - indicates, whether the object is a resource| Method Detail |
|---|
public final java.net.URI getHref()
getHref in interface IMultiStatusElementgetHref in class AbstractResponseElementpublic final boolean isCollection()
public final boolean isResource()
public final void setStatus(DAVStatus s)
s - the statuspublic final DAVStatus getStatus()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the given object
true, if the given object is equal to this object in
terms of their href propertypublic org.jdom.Element getXML()
For example:
<D:response> <D:href>/some/collection</D:href> <D:propstat>
<D:prop><D:resourcetype><D:collection/></D:resourcetype></D:prop>
<D:status>HTTP/1.1 424 Failed Dependency</D:status> </D:propstat>
</D:response>
getXML in interface IMultiStatusElementgetXML in class AbstractResponseElementIMultiStatusElement.getXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||