|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webdav.lib.properties.PropertyFactory
Factory for instanciating Propertys.
| Constructor Summary | |
PropertyFactory()
|
|
| Method Summary | |
static Property |
create(ResponseEntity response,
org.w3c.dom.Element element)
Creates a new property from an xml element provided in an WebDAV response. |
static void |
register(java.lang.String namespaceUri,
java.lang.String elementName,
java.lang.Class cls)
Registers a new property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertyFactory()
| Method Detail |
public static Property create(ResponseEntity response,
org.w3c.dom.Element element)
If no property class was registered a BaseProperty will returned.
Property,
BaseProperty
public static void register(java.lang.String namespaceUri,
java.lang.String elementName,
java.lang.Class cls)
throws java.lang.NoSuchMethodException,
java.lang.SecurityException
namespaceUri - namespace of the propertycls - class that implements the property. Must have a constructor that
takes two parameters of type ResponseEntity and Element.
java.lang.NoSuchMethodException - if cls does not implement the required ctor.
java.lang.SecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||