Class OptionsInfo

    • Constructor Detail

      • OptionsInfo

        public OptionsInfo​(String[] entriesLocalNames)
        Create a new OptionsInfo with the specified entries. Each entry will be converted to an empty Xml element when calling toXml. As namespace DeltaVConstants.NAMESPACE is used.
        Parameters:
        entriesLocalNames -
    • Method Detail

      • containsElement

        public boolean containsElement​(String localName,
                                       Namespace namespace)
        Returns true if a child element with the given name and namespace is present.
        Parameters:
        localName -
        namespace -
        Returns:
        true if such a child element exists in the options element.
      • createFromXml

        public static OptionsInfo createFromXml​(Element optionsElement)
                                         throws DavException
        Build an OptionsInfo object from the root element present in the request body.
        Parameters:
        optionsElement -
        Returns:
        Throws:
        DavException - if the optionsElement is null or not a DAV:options element.