Class OptionsResponse

    • Constructor Detail

      • OptionsResponse

        public OptionsResponse()
    • Method Detail

      • addEntry

        public void addEntry​(String localName,
                             Namespace namespace,
                             String[] hrefs)
        Add a new entry to this OptionsResponse and make each href present in the String array being a separate DAV:href element within the entry.
        Parameters:
        localName -
        namespace -
        hrefs -
      • getHrefs

        public String[] getHrefs​(String localName,
                                 Namespace namespace)
        Parameters:
        localName -
        namespace -
        Returns:
      • createFromXml

        public static OptionsResponse createFromXml​(Element orElem)
        Build a new OptionsResponse object from the given xml element.
        Parameters:
        orElem -
        Returns:
        a new OptionsResponse object
        Throws:
        IllegalArgumentException - if the specified element is null or if its name is other than 'DAV:options-response'.