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, getResourceProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationProperties, getProviderClass, getResource, getResourceProperties
public org.apache.axiom.om.OMNode lookup(String key)
Registry
public RegistryEntry getRegistryEntry(String key)
Registry
getRegistryEntry
in interface Registry
key
- the registry keypublic org.apache.axiom.om.OMElement getFormat(Entry entry)
getFormat
in interface Registry
getFormat
in class AbstractRegistry
public org.apache.axiom.om.OMNode lookupFormat(String key)
lookupFormat
in interface Registry
public void init(Properties properties)
Registry
init
in interface Registry
init
in class AbstractRegistry
properties
- The configuration propertiespublic void delete(String path)
Registry
public void newResource(String path, boolean isDirectory)
Registry
newResource
in interface Registry
path
- 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 Registry
path
- new Resource pathisDirectory
- whether the resource is a collection or notcontentType
- content type of the resourcecontent
- resource contentpublic void updateResource(String path, Object value)
Registry
updateResource
in interface Registry
path
- The resource to be updatedvalue
- The value to be setpublic void updateRegistryEntry(RegistryEntry entry)
Registry
updateRegistryEntry
in interface Registry
entry
- The registry entrypublic boolean isResourceExists(String path)
Registry
isResourceExists
in interface Registry
path
- The path of the resourcepublic RegistryEntry[] getChildren(RegistryEntry entry)
Registry
getChildren
in interface Registry
entry
- - parent registry entrypublic RegistryEntry[] getDescendants(RegistryEntry entry)
Registry
getDescendants
in interface Registry
entry
- - parent registry entryCopyright © 2005–2023 Apache Software Foundation. All rights reserved.