com.ibm.di.fc.webservice.util
Class CustomWSDLLocator

java.lang.Object
  extended by com.ibm.di.fc.webservice.util.CustomWSDLLocator
All Implemented Interfaces:
javax.wsdl.xml.WSDLLocator

public class CustomWSDLLocator
extends java.lang.Object
implements javax.wsdl.xml.WSDLLocator

The CustomWSDLLocator is the custom WSDLLocator, class is introduced for the custom authentication(Basic Authentication) when retrieving the WSDL document.


Field Summary
 java.lang.String baseURI
           
static java.lang.String ENCODING_LATIN_1
           
 java.lang.String password
           
 java.lang.String username
           
 
Constructor Summary
CustomWSDLLocator()
           
CustomWSDLLocator(java.lang.String usrname, java.lang.String passwd, java.lang.String aWsdlUrl)
           
 
Method Summary
 void close()
           
 org.xml.sax.InputSource getBaseInputSource()
          Returns an InputSource "pointed at" the base document.
 java.lang.String getBaseURI()
          Returns a URI representing the location of the base document.
 org.xml.sax.InputSource getImportInputSource(java.lang.String contextURI, java.lang.String wsdlURI)
          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.
 java.lang.String getLatestImportURI()
          Returns a URI representing the location of the last import document to be resolved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING_LATIN_1

public static final java.lang.String ENCODING_LATIN_1
See Also:
Constant Field Values

username

public java.lang.String username

password

public java.lang.String password

baseURI

public java.lang.String baseURI
Constructor Detail

CustomWSDLLocator

public CustomWSDLLocator()

CustomWSDLLocator

public CustomWSDLLocator(java.lang.String usrname,
                         java.lang.String passwd,
                         java.lang.String aWsdlUrl)
Method Detail

getBaseInputSource

public org.xml.sax.InputSource getBaseInputSource()
Returns an InputSource "pointed at" the base document.

Specified by:
getBaseInputSource in interface javax.wsdl.xml.WSDLLocator

getImportInputSource

public org.xml.sax.InputSource getImportInputSource(java.lang.String contextURI,
                                                    java.lang.String wsdlURI)
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.

Specified by:
getImportInputSource in interface javax.wsdl.xml.WSDLLocator
Parameters:
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.

close

public void close()
Specified by:
close in interface javax.wsdl.xml.WSDLLocator

getBaseURI

public java.lang.String getBaseURI()
Returns a URI representing the location of the base document.

Specified by:
getBaseURI in interface javax.wsdl.xml.WSDLLocator

getLatestImportURI

public java.lang.String getLatestImportURI()
Returns a URI representing the location of the last import document to be resolved. This is useful when resolving nested imports.

Specified by:
getLatestImportURI in interface javax.wsdl.xml.WSDLLocator