|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.webdav.model.Multistatus
public class Multistatus
The multistatus
XML element per the WebDAV specification [RFC
4918]
Name: multistatus Namespace: DAV: Purpose: Contains multiple response messages. Description: The responsedescription at the top level is used to provide a general message describing the overarching nature of the response. If this value is available an application may use it instead of presenting the individual response descriptions contained within the responses. <!ELEMENT multistatus (response+, responsedescription?) >
Field Summary | |
---|---|
protected java.util.List<Response> |
response
|
protected java.lang.String |
responsedescription
|
Constructor Summary | |
---|---|
Multistatus()
|
Method Summary | |
---|---|
java.util.List<Response> |
getResponse()
Gets the value of the response property. |
Response |
getResponseByHref(java.lang.String href)
Get a the first response available that matches the provided href |
java.lang.String |
getResponsedescription()
Gets the value of the responsedescription property. |
java.util.Map<java.lang.String,Response> |
getResponsesAsMapByHref()
Get a map of responses where the key is the response href |
static void |
marshal(Multistatus instance,
java.io.OutputStream os)
Marshal a Multistatus object to the provided output stream |
static void |
marshal(Multistatus instance,
java.io.Writer writer)
Marshal a Multistatus object to the provided writer |
void |
setResponsedescription(java.lang.String value)
Sets the value of the responsedescription property. |
static Multistatus |
unmarshal(java.io.InputStream is)
Unmarshal a Multistatus object from the provided input stream |
static Multistatus |
unmarshal(java.io.Reader reader)
Unmarshal a Multistatus object from the provided reader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<Response> response
protected java.lang.String responsedescription
Constructor Detail |
---|
public Multistatus()
Method Detail |
---|
public java.util.List<Response> getResponse()
This accessor method returns a reference to the live list, not a
snapshot. Therefore any modification you make to the returned list will
be present inside the JAXB object. This is why there is not a
set
method for the response property.
For example, to add a new item, do as follows:
getResponse().add(newItem);
Objects of the following type(s) are allowed in the list Response
public java.util.Map<java.lang.String,Response> getResponsesAsMapByHref()
public Response getResponseByHref(java.lang.String href)
href
- the href of the response to get
public java.lang.String getResponsedescription()
String
public void setResponsedescription(java.lang.String value)
value
- allowed object is String
public static Multistatus unmarshal(java.io.InputStream is) throws java.io.IOException
is
- the input stream
java.io.IOException
public static void marshal(Multistatus instance, java.io.OutputStream os) throws java.io.IOException
instance
- the Multistatus instance to marshalos
- the output stream
java.io.IOException
public static Multistatus unmarshal(java.io.Reader reader) throws java.io.IOException
reader
- the input reader
java.io.IOException
public static void marshal(Multistatus instance, java.io.Writer writer) throws java.io.IOException
instance
- the Multistatus instance to marshalwriter
- the output writer
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |