Class ControlWsdlLocator
java.lang.Object
org.pentaho.di.trans.steps.webservices.wsdl.ControlWsdlLocator
- All Implemented Interfaces:
javax.wsdl.xml.WSDLLocator
Implementation of WSDLLocator for Beehive controls. This WSDLLocator implementation may open multiple input streams,
its cleanup() method should always be called once the WSDL file has been parsed.
-
Constructor Summary
ConstructorDescriptionControlWsdlLocator
(String wsdlName, BeanContext beanContext) Create a new wsdl locator for the wsdl file with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Close any InputStreams opened by this locator.void
close()
Find the InputSource for the WSDL file stored in _wsdlName.Get the base URI for the wsdl file.getImportInputSource
(String string, String string1) Not implemented.Not implemented.
-
Constructor Details
-
ControlWsdlLocator
Create a new wsdl locator for the wsdl file with the specified name.- Parameters:
wsdlName
- Name of the WSDL file to try to load. Name may include file path elements.beanContext
- The ControlBeanContext of the control which wants to load a WSDL file.
-
-
Method Details
-
cleanup
public void cleanup()Close any InputStreams opened by this locator. -
getBaseInputSource
Find the InputSource for the WSDL file stored in _wsdlName. This method attempts to find a WSDL file by:- If the _wsdlName can be converted to a URL, use url.openStream()
- Attempt to locate _wsdlName using the bean context's getResourceAsStream()
- Attempt to locate _wsdlName using the current class loader's getResourceAsStream()
- Specified by:
getBaseInputSource
in interfacejavax.wsdl.xml.WSDLLocator
- Returns:
- An InputSource for the WSDL file.
-
getBaseURI
Get the base URI for the wsdl file.- Specified by:
getBaseURI
in interfacejavax.wsdl.xml.WSDLLocator
- Returns:
- null if _wsdlName is not a valid URI.
-
getImportInputSource
Not implemented.- Specified by:
getImportInputSource
in interfacejavax.wsdl.xml.WSDLLocator
- Parameters:
string
-string1
-- Returns:
- null
-
getLatestImportURI
Not implemented.- Specified by:
getLatestImportURI
in interfacejavax.wsdl.xml.WSDLLocator
- Returns:
- null
-
close
public void close()- Specified by:
close
in interfacejavax.wsdl.xml.WSDLLocator
-