Package org.apache.webdav.lib.properties
Class PropertyFactory
java.lang.Object
org.apache.webdav.lib.properties.PropertyFactory
Factory for instanciating
Propertys.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PropertyFactory
public PropertyFactory()
-
-
Method Details
-
create
Creates a new property from an xml element provided in an WebDAV response.If no property class was registered a
BasePropertywill returned.- See Also:
-
register
public static void register(String namespaceUri, String elementName, Class cls) throws NoSuchMethodException, SecurityException Registers a new property.- Parameters:
namespaceUri- namespace of the propertycls- class that implements the property. Must have a constructor that takes two parameters of type ResponseEntity and Element.elmentName- name of the property- Throws:
NoSuchMethodException- if cls does not implement the required ctor.SecurityException
-