public class ResourceMap extends Object
ResourceMap
object contains a set of
(location, registry key) mappings. The resolve
method can be used to
get retrieve the registry entry registered for a given location as an InputSource
object.Constructor and Description |
---|
ResourceMap() |
Modifier and Type | Method and Description |
---|---|
void |
addResource(String location,
String key)
Add a resource.
|
Map<String,String> |
getResources()
Get the (location, registry key) mappings.
|
InputSource |
resolve(SynapseConfiguration synCfg,
String location)
Resolve a resource for a given location.
|
public void addResource(String location, String key)
location
- the location as it appears in referencing documentskey
- the registry key that points to the referenced documentpublic Map<String,String> getResources()
public InputSource resolve(SynapseConfiguration synCfg, String location)
synCfg
- the Synapse configuration (used to access the registry)location
- the location of of the resource at is appears in the referencing documentInputSource
object for the referenced resourceCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.