public class WSDLReaderImpl extends Object implements WSDLReader
Modifier and Type | Field and Description |
---|---|
protected Map |
allSchemas |
protected ExtensionRegistry |
extReg |
protected WSDLFactory |
factory |
protected String |
factoryImplName |
protected boolean |
importDocuments |
protected WSDLLocator |
loc |
protected boolean |
parseSchema |
protected boolean |
verbose |
Constructor and Description |
---|
WSDLReaderImpl() |
Modifier and Type | Method and Description |
---|---|
ExtensionRegistry |
getExtensionRegistry()
Get the extension registry, if one was set.
|
String |
getFactoryImplName()
Get the factoryImplName, if one was set.
|
boolean |
getFeature(String name)
Gets the value of the specified feature.
|
protected WSDLFactory |
getWSDLFactory()
Get the WSDLFactory object cached in the reader, or use lazy
instantiation if it is not cached yet.
|
protected Binding |
parseBinding(Element bindingEl,
Definition def) |
protected BindingFault |
parseBindingFault(Element bindingFaultEl,
Definition def) |
protected BindingInput |
parseBindingInput(Element bindingInputEl,
Definition def) |
protected BindingOperation |
parseBindingOperation(Element bindingOperationEl,
PortType portType,
Definition def) |
protected BindingOutput |
parseBindingOutput(Element bindingOutputEl,
Definition def) |
protected Definition |
parseDefinitions(String documentBaseURI,
Element defEl,
Map importedDefs) |
protected Object |
parseExtensibilityAttribute(Element el,
int attrType,
String attrValue,
Definition def) |
protected void |
parseExtensibilityAttributes(Element el,
Class parentType,
AttributeExtensible attrExt,
Definition def) |
protected ExtensibilityElement |
parseExtensibilityElement(Class parentType,
Element el,
Definition def) |
protected ExtensibilityElement |
parseExtensibilityElementAsDefaultExtensiblityElement(Class parentType,
Element el,
Definition def)
Parse the element using the ExtensionRegistry default deserializer instead using the one
registered.
|
protected Fault |
parseFault(Element faultEl,
Definition def) |
protected Import |
parseImport(Element importEl,
Definition def,
Map importedDefs) |
protected Input |
parseInput(Element inputEl,
Definition def) |
protected Message |
parseMessage(Element msgEl,
Definition def) |
protected Operation |
parseOperation(Element opEl,
PortType portType,
Definition def) |
protected Output |
parseOutput(Element outputEl,
Definition def) |
protected Part |
parsePart(Element partEl,
Definition def) |
protected Port |
parsePort(Element portEl,
Definition def) |
protected PortType |
parsePortType(Element portTypeEl,
Definition def) |
protected ExtensibilityElement |
parseSchema(Class parentType,
Element el,
Definition def) |
protected ExtensibilityElement |
parseSchema(Class parentType,
Element el,
Definition def,
ExtensionRegistry extReg) |
protected Service |
parseService(Element serviceEl,
Definition def) |
protected Types |
parseTypes(Element typesEl,
Definition def) |
Definition |
readWSDL(String wsdlURI)
Read the WSDL document accessible via the specified
URI into a WSDL definition.
|
Definition |
readWSDL(String documentBaseURI,
Document wsdlDocument)
Read the specified WSDL document into a WSDL definition.
|
Definition |
readWSDL(String documentBaseURI,
Element definitionsElement)
Read the specified <wsdl:definitions> element into a WSDL
definition.
|
protected Definition |
readWSDL(String documentBaseURI,
Element definitionsElement,
Map importedDefs) |
Definition |
readWSDL(String documentBaseURI,
InputSource inputSource)
Read a WSDL document into a WSDL definition.
|
Definition |
readWSDL(String contextURI,
String wsdlURI)
Read the WSDL document accessible via the specified
URI into a WSDL definition.
|
Definition |
readWSDL(WSDLLocator locator)
Read a WSDL document into a WSDL definition.
|
Definition |
readWSDL(WSDLLocator locator,
Element definitionsElement)
Read the specified <wsdl:definitions> element into a WSDL
definition.
|
void |
setExtensionRegistry(ExtensionRegistry extReg)
Set the extension registry to be used when reading
WSDL documents into a WSDL definition.
|
void |
setFactoryImplName(String factoryImplName)
Set a different factory implementation to use for
creating definitions when reading WSDL documents.
|
void |
setFeature(String name,
boolean value)
Sets the specified feature to the specified value.
|
protected boolean verbose
protected boolean importDocuments
protected boolean parseSchema
protected ExtensionRegistry extReg
protected String factoryImplName
protected WSDLLocator loc
protected WSDLFactory factory
protected Map allSchemas
public void setFeature(String name, boolean value) throws IllegalArgumentException
The supported features are:
Name | Description | Default Value |
---|---|---|
If set to true, status messages will be displayed. | ||
If set to true, imported WSDL documents will be retrieved and processed. | ||
If set to true, the schema documents inlined and import directly or indrectly will be retrieved as javax.wsdl.extensions.schema.Schema objects and referred to in the Definition. This is the default (only) behaviour from JWSDL 1.2. Which is why the default for this feature is true. However, prior to JWSDL 1.2 the only behaviour was not to parse the schema files. Setting this feature to false will prevent the schemas being parsed. |
All feature names must be fully-qualified, Java package style. All names starting with javax.wsdl. are reserved for features defined by the JWSDL specification. It is recommended that implementation- specific features be fully-qualified to match the package name of that implementation. For example: com.abc.featureName
setFeature
in interface WSDLReader
name
- the name of the feature to be set.value
- the value to set the feature to.IllegalArgumentException
- if the feature name is not recognized.getFeature(String)
public boolean getFeature(String name) throws IllegalArgumentException
getFeature
in interface WSDLReader
name
- the name of the feature to get the value of.IllegalArgumentException
- if the feature name is not recognized.setFeature(String, boolean)
public void setExtensionRegistry(ExtensionRegistry extReg)
setExtensionRegistry
in interface WSDLReader
extReg
- the extension registry to use for new
definitionspublic ExtensionRegistry getExtensionRegistry()
getExtensionRegistry
in interface WSDLReader
protected WSDLFactory getWSDLFactory() throws WSDLException
WSDLException
public void setFactoryImplName(String factoryImplName) throws UnsupportedOperationException
setFactoryImplName
in interface WSDLReader
factoryImplName
- the fully-qualified class name of the
class which provides a concrete implementation of the abstract
class WSDLFactory.UnsupportedOperationException
- if this method
is invoked on an implementation which does not
support it.public String getFactoryImplName()
getFactoryImplName
in interface WSDLReader
protected Definition parseDefinitions(String documentBaseURI, Element defEl, Map importedDefs) throws WSDLException
WSDLException
protected Import parseImport(Element importEl, Definition def, Map importedDefs) throws WSDLException
WSDLException
protected Types parseTypes(Element typesEl, Definition def) throws WSDLException
WSDLException
protected ExtensibilityElement parseSchema(Class parentType, Element el, Definition def) throws WSDLException
WSDLException
protected ExtensibilityElement parseSchema(Class parentType, Element el, Definition def, ExtensionRegistry extReg) throws WSDLException
WSDLException
protected Binding parseBinding(Element bindingEl, Definition def) throws WSDLException
WSDLException
protected BindingOperation parseBindingOperation(Element bindingOperationEl, PortType portType, Definition def) throws WSDLException
WSDLException
protected BindingInput parseBindingInput(Element bindingInputEl, Definition def) throws WSDLException
WSDLException
protected BindingOutput parseBindingOutput(Element bindingOutputEl, Definition def) throws WSDLException
WSDLException
protected BindingFault parseBindingFault(Element bindingFaultEl, Definition def) throws WSDLException
WSDLException
protected Message parseMessage(Element msgEl, Definition def) throws WSDLException
WSDLException
protected Part parsePart(Element partEl, Definition def) throws WSDLException
WSDLException
protected void parseExtensibilityAttributes(Element el, Class parentType, AttributeExtensible attrExt, Definition def) throws WSDLException
WSDLException
protected Object parseExtensibilityAttribute(Element el, int attrType, String attrValue, Definition def) throws WSDLException
WSDLException
protected PortType parsePortType(Element portTypeEl, Definition def) throws WSDLException
WSDLException
protected Operation parseOperation(Element opEl, PortType portType, Definition def) throws WSDLException
WSDLException
protected Service parseService(Element serviceEl, Definition def) throws WSDLException
WSDLException
protected Port parsePort(Element portEl, Definition def) throws WSDLException
WSDLException
protected ExtensibilityElement parseExtensibilityElement(Class parentType, Element el, Definition def) throws WSDLException
WSDLException
protected ExtensibilityElement parseExtensibilityElementAsDefaultExtensiblityElement(Class parentType, Element el, Definition def) throws WSDLException
parentType
- el
- def
- WSDLException
protected Input parseInput(Element inputEl, Definition def) throws WSDLException
WSDLException
protected Output parseOutput(Element outputEl, Definition def) throws WSDLException
WSDLException
protected Fault parseFault(Element faultEl, Definition def) throws WSDLException
WSDLException
public Definition readWSDL(String wsdlURI) throws WSDLException
readWSDL
in interface WSDLReader
wsdlURI
- a URI (can be a filename or URL) pointing to a
WSDL XML definition.WSDLException
public Definition readWSDL(String contextURI, String wsdlURI) throws WSDLException
readWSDL
in interface WSDLReader
contextURI
- the context in which to resolve the
wsdlURI, if the wsdlURI is relative. Can be null, in which
case it will be ignored.wsdlURI
- a URI (can be a filename or URL) pointing to a
WSDL XML definition.WSDLException
public Definition readWSDL(String documentBaseURI, Element definitionsElement) throws WSDLException
readWSDL
in interface WSDLReader
documentBaseURI
- the document base URI of the WSDL definition
described by the element. Will be set as the documentBaseURI
of the returned Definition. Can be null, in which case it
will be ignored.definitionsElement
- the <wsdl:definitions> elementWSDLException
public Definition readWSDL(WSDLLocator locator, Element definitionsElement) throws WSDLException
readWSDL
in interface WSDLReader
locator
- A WSDLLocator object used to provide
the document base URI of the WSDL definition described by the
element.definitionsElement
- the <wsdl:definitions> elementWSDLException
protected Definition readWSDL(String documentBaseURI, Element definitionsElement, Map importedDefs) throws WSDLException
WSDLException
public Definition readWSDL(String documentBaseURI, Document wsdlDocument) throws WSDLException
readWSDL
in interface WSDLReader
documentBaseURI
- the document base URI of the WSDL definition
described by the document. Will be set as the documentBaseURI
of the returned Definition. Can be null, in which case it
will be ignored.wsdlDocument
- the WSDL document, an XML
document obeying the WSDL schema.WSDLException
public Definition readWSDL(String documentBaseURI, InputSource inputSource) throws WSDLException
readWSDL
in interface WSDLReader
documentBaseURI
- the document base URI of the WSDL definition
described by the document. Will be set as the documentBaseURI
of the returned Definition. Can be null, in which case it
will be ignored.inputSource
- an InputSource pointing to the
WSDL document, an XML document obeying the WSDL schema.WSDLException
public Definition readWSDL(WSDLLocator locator) throws WSDLException
readWSDL
in interface WSDLReader
locator
- A WSDLLocator object used to provide InputSources
pointing to the wsdl file.WSDLException
Copyright © 2018 JBoss by Red Hat. All rights reserved.