public class ResourceMap
extends java.lang.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(java.lang.String location,
java.lang.String key)
Add a resource.
|
void |
addResource(Value location,
Value key)
Add a resource.
|
java.util.Map<java.lang.String,java.lang.String> |
getResources()
Get the (location, registry key) mappings.
|
org.xml.sax.InputSource |
resolve(SynapseConfiguration synCfg,
java.lang.String location)
Resolve a resource for a given location.
|
org.xml.sax.InputSource |
resolve(SynapseConfiguration synCfg,
java.lang.String location,
MessageContext messageContext)
Resolve a resource for a given location.
|
public void addResource(Value location, Value key)
location
- the location as it appears in referencing documentskey
- the registry key that points to the referenced documentpublic void addResource(java.lang.String location, java.lang.String key)
location
- the location as it appears in referencing documentskey
- the registry key that points to the referenced documentpublic java.util.Map<java.lang.String,java.lang.String> getResources()
public org.xml.sax.InputSource resolve(SynapseConfiguration synCfg, java.lang.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 resourcepublic org.xml.sax.InputSource resolve(SynapseConfiguration synCfg, java.lang.String location, MessageContext messageContext)
synCfg
- the Synapse configuration (used to access the registry)location
- the location of of the resource at is appears in the referencing documentmessageContext
- current message context of the received requestInputSource
object for the referenced resourceCopyright © 2005-2022 Apache Software Foundation. All Rights Reserved.