|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.util.resolver.ResourceMap
public class ResourceMap
A resource map.
Instances of this class are used to resolve resources using registry entries.
This is useful for XML documents that can reference other documents (e.g. WSDL documents
importing XSD or other WSDL documents). A 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 Summary | |
|---|---|
ResourceMap()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceMap()
| Method Detail |
|---|
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 document
InputSource object for the referenced resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||