Class Property

java.lang.Object
com.ithit.webdav.server.Property

public final class Property extends Object
Represents a WebDAV property.
  • Constructor Details

    • Property

      @Deprecated public Property(String namespace, String name, String value)
      Deprecated.
      Use create or createRaw methods instead.
      Initializes new instance.
      Parameters:
      namespace - Namespace.
      name - Name.
      value - Value.
  • Method Details

    • create

      public static Property create(String namespace, String name, String value)
      Creates a WebDAV property. Encodes property value before setting.
      Parameters:
      namespace - Property namespace.
      name - Property name.
      value - Property value.
      Returns:
      Property
    • createRaw

      public static Property createRaw(String namespace, String name, String xmlValueRaw)
      Creates a WebDAV property with value set to raw XML string. Does not encode property value.
      Parameters:
      namespace - Property namespace.
      name - Property name.
      xmlValueRaw - Unencoded raw XML property value.
      Returns:
      Property.
    • getName

      public String getName()
      Name of the property.
      Returns:
      Name.
    • getNamespace

      public String getNamespace()
      Namespace of the property.
      Returns:
      Namespace.
    • getValue

      public String getValue()
      Value of the property. -> Gets encoded value of the property.
      Returns:
      Encoded property value.
    • setValue

      public void setValue(String value)
      Sets value of the property. Encodes property value before setting.
      Parameters:
      value - Value of the property.
    • setXmlValueRaw

      public void setXmlValueRaw(String xmlValueRaw)
      Sets raw XML property value.
      Parameters:
      xmlValueRaw - Unencoded XML string.
    • getXmlValueRaw

      public String getXmlValueRaw()
      Gets raw XML property value.
      Returns:
      Unencoded XML string.