org.apache.axis2.jaxws.description.impl
Class URIResolverImpl

java.lang.Object
  extended by 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 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  ClassLoader classLoader
           
 
Constructor Summary
URIResolverImpl()
           
URIResolverImpl(ClassLoader cl)
           
 
Method Summary
protected  InputStream getInputStreamForURI(String uri)
          Gets input stream from the uri given.
protected  boolean isAbsolute(String location)
          Checks to see if the location given is an absolute (actual) or relative path.
 InputSource resolveEntity(String namespace, String schemaLocation, String baseUri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

protected ClassLoader classLoader
Constructor Detail

URIResolverImpl

public URIResolverImpl()

URIResolverImpl

public URIResolverImpl(ClassLoader cl)
Method Detail

resolveEntity

public InputSource resolveEntity(String namespace,
                                 String schemaLocation,
                                 String baseUri)
Specified by:
resolveEntity in interface org.apache.ws.commons.schema.resolver.URIResolver

isAbsolute

protected boolean isAbsolute(String location)
Checks to see if the location given is an absolute (actual) or relative path.

Parameters:
location -
Returns:

getInputStreamForURI

protected InputStream getInputStreamForURI(String uri)
Gets input stream from the uri given. If we cannot find the stream, null is returned.

Parameters:
uri -
Returns:


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.