public class SimpleURLRegistry extends AbstractRegistry implements Registry
properties| Constructor and Description |
|---|
SimpleURLRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String path)
Deletes a resource in the given path
|
RegistryEntry[] |
getChildren(RegistryEntry entry)
Returns the child elements of a given registry entry
|
RegistryEntry[] |
getDescendants(RegistryEntry entry)
Returns all descendant entries of the given registry entry
|
org.apache.axiom.om.OMElement |
getFormat(Entry entry) |
RegistryEntry |
getRegistryEntry(String key)
Get the registry entry for the given key
|
void |
init(Properties properties)
Initializes the registry with given properties
|
boolean |
isResourceExists(String path)
Check if a resource exists
|
org.apache.axiom.om.OMNode |
lookup(String key)
Perform an actual lookup for for an XML resource as an OMNode for the given key
|
org.apache.axiom.om.OMNode |
lookupFormat(String key) |
void |
newNonEmptyResource(String path,
boolean isDirectory,
String contentType,
String content,
String propertyName) |
void |
newResource(String path,
boolean isDirectory)
Creates a new resource in the given path
|
void |
updateRegistryEntry(RegistryEntry entry)
Updates the registry enrty (metadata about a resource)
|
void |
updateResource(String path,
Object value)
Updates the value of a resource
|
getConfigurationProperties, getProviderClass, getResource, getResourcePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationProperties, getProviderClass, getResource, getResourcePropertiespublic org.apache.axiom.om.OMNode lookup(String key)
Registrypublic RegistryEntry getRegistryEntry(String key)
RegistrygetRegistryEntry in interface Registrykey - the registry keypublic org.apache.axiom.om.OMElement getFormat(Entry entry)
getFormat in interface RegistrygetFormat in class AbstractRegistrypublic org.apache.axiom.om.OMNode lookupFormat(String key)
lookupFormat in interface Registrypublic void init(Properties properties)
Registryinit in interface Registryinit in class AbstractRegistryproperties - The configuration propertiespublic void delete(String path)
Registrypublic void newResource(String path, boolean isDirectory)
RegistrynewResource in interface Registrypath - The new resource pathisDirectory - Whether resource is a collection or notpublic void newNonEmptyResource(String path, boolean isDirectory, String contentType, String content, String propertyName)
newNonEmptyResource in interface Registrypath - new Resource pathisDirectory - whether the resource is a collection or notcontentType - content type of the resourcecontent - resource contentpublic void updateResource(String path, Object value)
RegistryupdateResource in interface Registrypath - The resource to be updatedvalue - The value to be setpublic void updateRegistryEntry(RegistryEntry entry)
RegistryupdateRegistryEntry in interface Registryentry - The registry entrypublic boolean isResourceExists(String path)
RegistryisResourceExists in interface Registrypath - The path of the resourcepublic RegistryEntry[] getChildren(RegistryEntry entry)
RegistrygetChildren in interface Registryentry - - parent registry entrypublic RegistryEntry[] getDescendants(RegistryEntry entry)
RegistrygetDescendants in interface Registryentry - - parent registry entryCopyright © 2005–2019 Apache Software Foundation. All rights reserved.