public class ESBRegistry
extends org.apache.synapse.registry.AbstractRegistry
Modifier and Type | Field and Description |
---|---|
static int |
FILE |
static int |
HTTP |
static int |
HTTPS |
static String |
URL_SEPARATOR |
static char |
URL_SEPARATOR_CHAR |
Constructor and Description |
---|
ESBRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String path) |
long |
getCachableDuration() |
org.apache.synapse.registry.RegistryEntry[] |
getChildren(org.apache.synapse.registry.RegistryEntry entry)
Gives the children of the given entry.
|
org.apache.synapse.registry.RegistryEntry[] |
getDescendants(org.apache.synapse.registry.RegistryEntry entry) |
org.apache.synapse.registry.RegistryEntry |
getRegistryEntry(String key) |
String |
getRoot()
Returns the root of the registry.
|
void |
init(Properties properties) |
boolean |
isResourceExists(String s) |
org.apache.axiom.om.OMNode |
lookup(String key) |
org.apache.axiom.om.OMNode |
lookupFormat(String s) |
void |
newNonEmptyResource(String key,
boolean isDirectory,
String mediaType,
String content,
String propertyName) |
void |
newResource(String path,
boolean isDirectory) |
void |
updateRegistryEntry(org.apache.synapse.registry.RegistryEntry entry)
Updates the metadata of the given registry entry
|
void |
updateResource(String key,
Object value)
Updates the registry resource pointed by the given key.
|
public static final int FILE
public static final int HTTP
public static final int HTTPS
public static final String URL_SEPARATOR
public static final char URL_SEPARATOR_CHAR
public void init(Properties properties)
init
in interface org.apache.synapse.registry.Registry
init
in class org.apache.synapse.registry.AbstractRegistry
public org.apache.axiom.om.OMNode lookup(String key)
public org.apache.synapse.registry.RegistryEntry getRegistryEntry(String key)
public org.apache.axiom.om.OMNode lookupFormat(String s)
public void updateRegistryEntry(org.apache.synapse.registry.RegistryEntry entry)
entry
- RegistryEntry containing the new metadatapublic boolean isResourceExists(String s)
public void updateResource(String key, Object value)
key
- Key of the resource to be updatedvalue
- New value of the resourcepublic String getRoot()
public long getCachableDuration()
public org.apache.synapse.registry.RegistryEntry[] getChildren(org.apache.synapse.registry.RegistryEntry entry)
entry
- registry entry to get the childrenpublic org.apache.synapse.registry.RegistryEntry[] getDescendants(org.apache.synapse.registry.RegistryEntry entry)
public void delete(String path)
public void newResource(String path, boolean isDirectory)
Copyright © 2018 WSO2. All rights reserved.