|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.wsif.wsdl.WSIFWSDLLocatorImpl
Implementation of javax.wsdl.xml.WSDLLocator. This class can be used to locate a wsdl document and its imports using a ClassLoader. This is useful when the wsdl is located in a jar/zip file.
Constructor Summary | |
---|---|
WSIFWSDLLocatorImpl(java.lang.String docBase,
java.io.Reader reader,
java.lang.ClassLoader cl)
Create an instance of WSIFWSDLLocatorImpl. |
|
WSIFWSDLLocatorImpl(java.lang.String ctxt,
java.lang.String wsdlURI,
java.lang.ClassLoader cl)
Create an instance of WSIFWSDLLocatorImpl. |
Method Summary | |
---|---|
void |
close()
Close any Reader objects that have been created |
java.io.Reader |
getBaseReader()
Get a reader for the base wsdl document. |
java.lang.String |
getBaseURI()
Get the document base uri for the base wsdl document |
java.io.Reader |
getImportReader(java.lang.String base,
java.lang.String relativeLocation)
Get a reader for an imported wsdl document. |
java.lang.String |
getLatestImportURI()
Get the document base uri for the last import document to be resolved by this locator. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WSIFWSDLLocatorImpl(java.lang.String ctxt, java.lang.String wsdlURI, java.lang.ClassLoader cl)
ctxt
- The context uri for the wsdl locationwsdlURI
- The uri for the base wsdl documentcl
- A ClassLoader to use in locating the base wsdl document and importspublic WSIFWSDLLocatorImpl(java.lang.String docBase, java.io.Reader reader, java.lang.ClassLoader cl)
docBase
- The uri for the base wsdl documentreader
- A reader "directed at" the base wsdl documentcl
- A ClassLoader to use in locating the base wsdl document and importsMethod Detail |
public java.io.Reader getBaseReader()
getBaseReader
in interface javax.wsdl.xml.WSDLLocator
public java.io.Reader getImportReader(java.lang.String base, java.lang.String relativeLocation)
getImportReader
in interface javax.wsdl.xml.WSDLLocator
base
- The document base uri for the parent wsdl documentrelativeLocation
- The relative uri of the import wsdl documentpublic java.lang.String getBaseURI()
getBaseURI
in interface javax.wsdl.xml.WSDLLocator
public java.lang.String getLatestImportURI()
getLatestImportURI
in interface javax.wsdl.xml.WSDLLocator
public void close() throws java.io.IOException
java.io.IOException
- If a call to close() on one of the Reader objects fails
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |