java.lang.Object
org.apache.jackrabbit.webdav.Status
All Implemented Interfaces:
DavConstants, XmlSerializable

public class Status extends Object implements DavConstants, XmlSerializable
Status encapsulating the 'status' present in multistatus responses.
  • Constructor Details

    • Status

      public Status(int code)
    • Status

      public Status(String version, int code, String phrase)
  • Method Details

    • getStatusCode

      public int getStatusCode()
    • toXml

      public Element toXml(Document document)
      Description copied from interface: XmlSerializable
      Returns the xml representation of the implementing object as Element. The given Document is used as factory and represents the owner document of the returned DOM element.
      Specified by:
      toXml in interface XmlSerializable
      Parameters:
      document - to be used as factory.
      Returns:
      a w3c element representing this object
      See Also:
    • parse

      public static Status parse(String statusLine)
      Parse the given status line and return a new Status object.
      Parameters:
      statusLine -
      Returns:
      a new Status