|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.simple.ResourceConfig
public class ResourceConfig
ResourceConfig
...
Constructor Summary | |
---|---|
ResourceConfig()
|
Method Summary | |
---|---|
IOManager |
getIOManager()
|
ItemFilter |
getItemFilter()
Returns the item filter specified with the configuration or DefaultItemFilter
if the configuration was missing the corresponding entry or the parser failed
to build a ItemFilter instance from the configuration. |
MimeResolver |
getMimeResolver()
|
PropertyManager |
getPropertyManager()
|
boolean |
isCollectionResource(Item item)
Returns true, if the given item represents a node that is
either any of the nodetypes specified to represent a collection or
none of the nodetypes specified to represent a non-collection, respectively. |
void |
parse(URL configURL)
Tries to parse the given xml configuration file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceConfig()
Method Detail |
---|
public void parse(URL configURL)
<!ELEMENT config (iomanager, propertymanager, (collection | noncollection)?, filter?, mimetypeproperties?) > <!ELEMENT iomanager (class, iohandler*) > <!ELEMENT iohandler (class) > <!ELEMENT propertymanager (class, propertyhandler*) > <!ELEMENT propertyhandler (class) > <!ELEMENT collection (nodetypes) > <!ELEMENT noncollection (nodetypes) > <!ELEMENT filter (class, namespaces?, nodetypes?) > <!ELEMENT class > <!ATTLIST class name CDATA #REQUIRED > <!ELEMENT namespaces (prefix|uri)* > <!ELEMENT prefix (CDATA) > <!ELEMENT uri (CDATA) > <!ELEMENT nodetypes (nodetype)* > <!ELEMENT nodetype (CDATA) > <!ELEMENT mimetypeproperties (mimemapping*, defaultmimetype) > <!ELEMENT mimemapping > <!ATTLIST mimemapping extension CDATA #REQUIRED mimetype CDATA #REQUIRED > <!ELEMENT defaultmimetype (CDATA) >
configURL
- public IOManager getIOManager()
public PropertyManager getPropertyManager()
public boolean isCollectionResource(Item item)
node
that is
either any of the nodetypes specified to represent a collection or
none of the nodetypes specified to represent a non-collection, respectively.
If no valid configuration entry is present, this method returns true
for node items. For items which are not a node, this method always
returns false.
item
-
public ItemFilter getItemFilter()
DefaultItemFilter
if the configuration was missing the corresponding entry or the parser failed
to build a ItemFilter
instance from the configuration.
DefaultItemFilter
public MimeResolver getMimeResolver()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |