Class MicroIntegratorRegistry
- java.lang.Object
-
- org.apache.synapse.registry.AbstractRegistry
-
- org.wso2.carbon.mediation.registry.MicroIntegratorRegistry
-
- All Implemented Interfaces:
org.apache.synapse.registry.Registry
public class MicroIntegratorRegistry extends org.apache.synapse.registry.AbstractRegistry
-
-
Constructor Summary
Constructors Constructor Description MicroIntegratorRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 mediaType, 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.
-
-
-
Field Detail
-
FILE
public static final int FILE
- See Also:
- Constant Field Values
-
HTTP
public static final int HTTP
- See Also:
- Constant Field Values
-
HTTPS
public static final int HTTPS
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(Properties properties)
- Specified by:
init
in interfaceorg.apache.synapse.registry.Registry
- Overrides:
init
in classorg.apache.synapse.registry.AbstractRegistry
-
lookup
public org.apache.axiom.om.OMNode lookup(String key)
-
isResourceExists
public boolean isResourceExists(String key)
-
lookupProperties
public Properties lookupProperties(String key)
The micro integrator expects the properties of a directory to be available inside the given directory as a property file. For an example, if a directory key, conf:/foo/bar is passed as the key, the micro integrator registry expects the properties to be available in the file, conf:/foo/bar/bar.properties. For a file, conf:/foo/bar/example.xml, the properties need to be given in the file, conf:/foo/bar/example.xml.properties- Parameters:
key
- the path to the directory- Returns:
- the properties defined
-
getRegistryEntry
public org.apache.synapse.registry.RegistryEntry getRegistryEntry(String key)
-
lookupFormat
public org.apache.axiom.om.OMNode lookupFormat(String key)
-
getChildren
public org.apache.synapse.registry.RegistryEntry[] getChildren(org.apache.synapse.registry.RegistryEntry entry)
-
getDescendants
public org.apache.synapse.registry.RegistryEntry[] getDescendants(org.apache.synapse.registry.RegistryEntry entry)
-
delete
public void delete(String path)
-
newResource
public void newResource(String path, boolean isDirectory)
-
newNonEmptyResource
public void newNonEmptyResource(String path, boolean isDirectory, String mediaType, String content, String propertyName)
-
updateResource
public void updateResource(String path, Object value)
Updates the registry resource pointed by the given key.- Parameters:
path
- Key of the resource to be updatedvalue
- New value of the resource
-
updateRegistryEntry
public void updateRegistryEntry(org.apache.synapse.registry.RegistryEntry entry)
-
getResourceProperties
public Properties getResourceProperties(String entryKey)
- Specified by:
getResourceProperties
in interfaceorg.apache.synapse.registry.Registry
- Overrides:
getResourceProperties
in classorg.apache.synapse.registry.AbstractRegistry
-
-