public class MicroIntegratorRegistry
extends org.apache.synapse.registry.AbstractRegistry
Modifier and Type | Field and Description |
---|---|
static int |
FILE |
static int |
HTTP |
static int |
HTTPS |
Constructor and Description |
---|
MicroIntegratorRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String path) |
org.apache.synapse.registry.RegistryEntry[] |
getChildren(org.apache.synapse.registry.RegistryEntry entry) |
org.apache.synapse.registry.RegistryEntry[] |
getDescendants(org.apache.synapse.registry.RegistryEntry entry) |
org.apache.synapse.registry.RegistryEntry |
getRegistryEntry(String key) |
Properties |
getResourceProperties(String entryKey) |
void |
init(Properties properties) |
boolean |
isResourceExists(String key) |
org.apache.axiom.om.OMNode |
lookup(String key) |
org.apache.axiom.om.OMNode |
lookupFormat(String key) |
Properties |
lookupProperties(String key)
The micro integrator expects the properties of a directory to be available inside the given directory as a
property file.
|
void |
newNonEmptyResource(String path,
boolean isDirectory,
String contentType,
String content,
String propertyName) |
void |
newResource(String path,
boolean isDirectory) |
void |
updateRegistryEntry(org.apache.synapse.registry.RegistryEntry entry) |
void |
updateResource(String path,
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 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 boolean isResourceExists(String key)
public Properties lookupProperties(String key)
key
- the path to the directorypublic org.apache.synapse.registry.RegistryEntry getRegistryEntry(String key)
public org.apache.axiom.om.OMNode lookupFormat(String key)
public org.apache.synapse.registry.RegistryEntry[] getChildren(org.apache.synapse.registry.RegistryEntry entry)
public org.apache.synapse.registry.RegistryEntry[] getDescendants(org.apache.synapse.registry.RegistryEntry entry)
public void delete(String path)
public void newResource(String path, boolean isDirectory)
public void newNonEmptyResource(String path, boolean isDirectory, String contentType, String content, String propertyName)
public void updateResource(String path, Object value)
path
- Key of the resource to be updatedvalue
- New value of the resourcepublic void updateRegistryEntry(org.apache.synapse.registry.RegistryEntry entry)
public Properties getResourceProperties(String entryKey)
getResourceProperties
in interface org.apache.synapse.registry.Registry
getResourceProperties
in class org.apache.synapse.registry.AbstractRegistry
Copyright © 2019 WSO2. All rights reserved.