|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.webdav.xml.dav.response.Response
public class Response
This class models WebDAV response tag. Response tag exist only as a part of multistatus tag but values from it can be used to create partial response or header response only.
| Field Summary | |
|---|---|
protected List<HRef> |
additionalHRefs
List of additional hrefs. |
protected HRef |
href
Response's href |
protected MultiStatus |
multiStatus
Multistatus response belongs to |
protected List<Propstat> |
propstats
List of propstats. |
protected String |
responseDescription
Response description |
protected Status |
status
Status of the response. |
static String |
STATUS_TAG_NAME
Status tag's name |
static String |
TAG_NAME
Tag name |
| Constructor Summary | |
|---|---|
Response(MultiStatus multiStatus,
HRef href)
Constructor |
|
| Method Summary | |
|---|---|
void |
addHRef(HRef href)
Adds additional href. |
List<HRef> |
getAdditionalHRefs()
Returns additional hrefs. |
HRef |
getHRef()
Returns response's href |
List<Propstat> |
getPropStats()
Returns list of propstats. |
String |
getResponseDescription()
Returns response description |
Status |
getStatus()
Returns response's status. |
boolean |
isDefined()
Returns defined only if there are propstats in this response |
void |
render(PrintWriter writer,
NamespacesProvider provider)
Renders the tag |
void |
renderStatus(PrintWriter writer,
NamespacesProvider provider,
Status status)
Renders status |
void |
setAdditionalHRefs(List<HRef> additionalHRefs)
Sets list of additional hrefs |
void |
setResponseDescription(String responseDescription)
Sets resoinse description. |
void |
setStatus(Status status)
Sets status |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TAG_NAME
public static final String STATUS_TAG_NAME
protected MultiStatus multiStatus
protected Status status
null.
protected HRef href
protected List<HRef> additionalHRefs
null.
protected List<Propstat> propstats
null.
protected String responseDescription
| Constructor Detail |
|---|
public Response(MultiStatus multiStatus,
HRef href)
multiStatus - parent multistatushref - href| Method Detail |
|---|
public boolean isDefined()
public Status getStatus()
null.
public void setStatus(Status status)
status - statuspublic HRef getHRef()
public List<HRef> getAdditionalHRefs()
null.
public void setAdditionalHRefs(List<HRef> additionalHRefs)
additionalHRefs - list of additional hrefspublic void addHRef(HRef href)
href - additional hrefpublic String getResponseDescription()
public void setResponseDescription(String responseDescription)
responseDescription - response descriptionpublic List<Propstat> getPropStats()
null.
public String toString()
toString in class Object
public void render(PrintWriter writer,
NamespacesProvider provider)
render in interface XMLRendererwriter - writerprovider - namespace provider
public void renderStatus(PrintWriter writer,
NamespacesProvider provider,
Status status)
writer - writerprovider - providerstatus - status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||