public abstract class BaseWSDLLocator extends Object
Modifier and Type | Field and Description |
---|---|
protected InputStream |
baseInputStream |
protected String |
baseURI |
protected String |
lastestImportURI |
Constructor and Description |
---|
BaseWSDLLocator() |
Modifier and Type | Method and Description |
---|---|
protected String |
convertURI(String rawURI) |
InputSource |
getBaseInputSource()
Returns an InputSource "pointed at" the base document.
|
String |
getBaseURI()
Returns a URI representing the location of the base document.
|
InputSource |
getImportInputSource(String parentLocation,
String relativeLocation)
Returns an InputSource pointed at an imported wsdl document whose
parent document was located at parentLocation and whose
relative location to the parent document is specified by
relativeLocation.
|
protected abstract InputStream |
getInputStream(String importPath)
Returns an InputStream pointed at an imported wsdl pathname relative
to the parent resource or loadStrategy.
|
String |
getLatestImportURI()
Returns a URI representing the location of the last import document
to be resolved.
|
protected abstract String |
getRedirectedURI(String importURI,
String parent)
Allows for a level of indirection, such as a catalog, when importing URIs.
|
protected boolean |
isAbsoluteImport(String uri) |
protected String |
normalizePath(String parentLocation,
String relativeLocation) |
protected String baseURI
protected String lastestImportURI
protected InputStream baseInputStream
protected abstract InputStream getInputStream(String importPath) throws IOException
importPath
- identifies the WSDL file within the contextIOException
protected abstract String getRedirectedURI(String importURI, String parent)
importURI
- a URI specifying the document to importparent
- a URI specifying the location of the parent document doing
the importingpublic InputSource getBaseInputSource()
public InputSource getImportInputSource(String parentLocation, String relativeLocation)
parentLocation
- a URI specifying the location of the
document doing the importing.relativeLocation
- a URI specifying the location of the
document to import, relative to the parent document's location.public String getBaseURI()
public String getLatestImportURI()
protected boolean isAbsoluteImport(String uri)
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.