Package com.ithit.webdav.server
Class Property
java.lang.Object
com.ithit.webdav.server.Property
Represents a WebDAV property.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Property
Creates a WebDAV property.static Property
Creates a WebDAV property with value set to raw XML string.getName()
Name of the property.Namespace of the property.getValue()
Value of the property.Gets raw XML property value.void
Sets value of the property.void
setXmlValueRaw
(String xmlValueRaw) Sets raw XML property value.
-
Constructor Details
-
Property
Deprecated.Use create or createRaw methods instead.Initializes new instance.- Parameters:
namespace
- Namespace.name
- Name.value
- Value.
-
-
Method Details
-
create
Creates a WebDAV property. Encodes property value before setting.- Parameters:
namespace
- Property namespace.name
- Property name.value
- Property value.- Returns:
- Property
-
createRaw
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
Name of the property.- Returns:
- Name.
-
getNamespace
Namespace of the property.- Returns:
- Namespace.
-
getValue
Value of the property. -> Gets encoded value of the property.- Returns:
- Encoded property value.
-
setValue
Sets value of the property. Encodes property value before setting.- Parameters:
value
- Value of the property.
-
setXmlValueRaw
Sets raw XML property value.- Parameters:
xmlValueRaw
- Unencoded XML string.
-
getXmlValueRaw
Gets raw XML property value.- Returns:
- Unencoded XML string.
-