org.apache.axis2.jaxws.description.impl
Class URIResolverImpl
java.lang.Object
org.apache.axis2.jaxws.description.impl.URIResolverImpl
- All Implemented Interfaces:
- org.apache.ws.commons.schema.resolver.URIResolver
- Direct Known Subclasses:
- CatalogURIResolver
public class URIResolverImpl
- extends java.lang.Object
- implements org.apache.ws.commons.schema.resolver.URIResolver
This class is used to locate xml schemas that are imported by wsdl documents.
Field Summary |
protected java.lang.ClassLoader |
classLoader
|
Method Summary |
protected java.io.InputStream |
getInputStreamForURI(java.lang.String uri)
Gets input stream from the uri given. |
protected boolean |
isAbsolute(java.lang.String location)
Checks to see if the location given is an absolute (actual) or relative path. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String namespace,
java.lang.String schemaLocation,
java.lang.String baseUri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classLoader
protected java.lang.ClassLoader classLoader
URIResolverImpl
public URIResolverImpl()
URIResolverImpl
public URIResolverImpl(java.lang.ClassLoader cl)
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String namespace,
java.lang.String schemaLocation,
java.lang.String baseUri)
- Specified by:
resolveEntity
in interface org.apache.ws.commons.schema.resolver.URIResolver
isAbsolute
protected boolean isAbsolute(java.lang.String location)
- Checks to see if the location given is an absolute (actual) or relative path.
- Parameters:
location
-
- Returns:
getInputStreamForURI
protected java.io.InputStream getInputStreamForURI(java.lang.String uri)
- Gets input stream from the uri given. If we cannot find the stream,
null
is
returned.
- Parameters:
uri
-
- Returns:
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.