| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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  List<Response> | response | 
| protected  String | responsedescription | 
| Constructor Summary | |
|---|---|
| Multistatus() | |
| Method Summary | |
|---|---|
|  List<Response> | getResponse()Gets the value of the response property. | 
|  Response | getResponseByHref(String href)Get a the first response available that matches the provided href | 
|  String | getResponsedescription()Gets the value of the responsedescription property. | 
|  Map<String,Response> | getResponsesAsMapByHref()Get a map of responses where the key is the response href | 
| static void | marshal(Multistatus instance,
        OutputStream os)Marshal a Multistatus object to the provided output stream | 
| static void | marshal(Multistatus instance,
        Writer writer)Marshal a Multistatus object to the provided writer | 
|  void | setResponsedescription(String value)Sets the value of the responsedescription property. | 
| static Multistatus | unmarshal(InputStream is)Unmarshal a Multistatus object from the provided input stream | 
| static Multistatus | unmarshal(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 List<Response> response
protected String responsedescription
| Constructor Detail | 
|---|
public Multistatus()
| Method Detail | 
|---|
public 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 Map<String,Response> getResponsesAsMapByHref()
public Response getResponseByHref(String href)
href - the href of the response to get
public String getResponsedescription()
Stringpublic void setResponsedescription(String value)
value - allowed object is String
public static Multistatus unmarshal(InputStream is)
                             throws IOException
is - the input stream
IOException
public static void marshal(Multistatus instance,
                           OutputStream os)
                    throws IOException
instance - the Multistatus instance to marshalos - the output stream
IOException
public static Multistatus unmarshal(Reader reader)
                             throws IOException
reader - the input reader
IOException
public static void marshal(Multistatus instance,
                           Writer writer)
                    throws IOException
instance - the Multistatus instance to marshalwriter - the output writer
IOException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||