Package org.apache.axis2.jaxws.util
Class CatalogURIResolver
java.lang.Object
org.apache.axis2.jaxws.description.impl.URIResolverImpl
org.apache.axis2.jaxws.util.CatalogURIResolver
- All Implemented Interfaces:
org.apache.ws.commons.schema.resolver.URIResolver
This resolver provides the means of resolving the imports and includes of a
given schema document. It allows the use of the Apache Commons Resolver API
to redirect resource requests to alternative locations.
-
Field Summary
Fields inherited from class org.apache.axis2.jaxws.description.impl.URIResolverImpl
classLoader -
Constructor Summary
ConstructorsConstructorDescriptionCatalogURIResolver(JAXWSCatalogManager catalogManager) CatalogURIResolver constructor.CatalogURIResolver(JAXWSCatalogManager catalogManager, ClassLoader classLoader) CatalogURIResolver constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetRedirectedURI(String namespace, String schemaLocation, String baseUri) Resolves URIs using Apache Commons Resolver API.resolveEntity(String namespace, String schemaLocation, String baseUri) As for the resolver the public ID is the target namespace of the schema and the schemaLocation is the value of the schema locationMethods inherited from class org.apache.axis2.jaxws.description.impl.URIResolverImpl
getInputStreamForURI, isAbsolute
-
Constructor Details
-
CatalogURIResolver
CatalogURIResolver constructor. Resolves WSDL URIs using Apache Commons Resolver API.- Parameters:
catalogManager- the OASISCatalogManager which will determine the settings for the XML catalog
-
CatalogURIResolver
CatalogURIResolver constructor. Resolves WSDL URIs using Apache Commons Resolver API.- Parameters:
catalogManager- the OASISCatalogManager which will determine the settings for the XML catalogclassLoader-
-
-
Method Details
-
getRedirectedURI
Resolves URIs using Apache Commons Resolver API.- Parameters:
namespace- a URI specifying the namespace of the documentschemaLocation- a URI specifying the document to importbaseURI- a URI specifying the location of the parent document doing the importing- Returns:
- the resolved import location, or null if no indirection is performed
-
resolveEntity
As for the resolver the public ID is the target namespace of the schema and the schemaLocation is the value of the schema location- Specified by:
resolveEntityin interfaceorg.apache.ws.commons.schema.resolver.URIResolver- Overrides:
resolveEntityin classURIResolverImpl- Parameters:
namespace-schemaLocation-baseUri-
-