@NotThreadSafe public class Wsdl11Reader extends WsdlReader<javax.wsdl.Definition>
Modifier and Type | Class and Description |
---|---|
protected class |
Wsdl11Reader.CustomWSDLLocator |
protected class |
Wsdl11Reader.PortTypeResolvers |
Modifier and Type | Field and Description |
---|---|
protected static SymbolSpace |
BINDINGS |
protected static SymbolSpace |
MESSAGES |
protected Map<javax.wsdl.WSDLElement,String> |
nameForComponent |
protected static SymbolSpace |
PORT_TYPES |
protected static SymbolSpace |
PORTS |
protected static SymbolSpace |
SERVICES |
protected Map<javax.wsdl.WSDLElement,String> |
uuidForComponent |
baseUri
context, logger
Constructor and Description |
---|
Wsdl11Reader(Sequencer.Context context,
String baseUri) |
Modifier and Type | Method and Description |
---|---|
protected Node |
addChildNode(Node parentNode,
QName qname,
String primaryType) |
protected String |
cleanDocumentationContent(String content)
This method is used by the
processDocumentation(WSDLElement, Node) to clean up the documentation content string. |
protected String |
getAttributeValue(Element element,
String namespaceUri,
String localName) |
protected javax.wsdl.Definition |
parse(InputSource source)
Parse the supplied source (which contains either a
Reader or an InputStream ) and produce a representation
of the WSDL definition. |
protected void |
process(javax.wsdl.Definition definition,
Node outputNode,
long sizeOfFile)
Process the supplied representation of the WSDL definition that was returned from the
WsdlReader.parse(org.xml.sax.InputSource)
method and write the derived output content under the outputNode . |
protected void |
processBinding(javax.wsdl.Binding binding,
Node bindingsNode) |
protected void |
processBindingFault(javax.wsdl.BindingFault fault,
Node parentNode) |
protected void |
processBindingInput(javax.wsdl.BindingInput input,
Node parentNode,
javax.wsdl.OperationType style,
String operationName,
javax.wsdl.Operation operation) |
protected void |
processBindingOperation(javax.wsdl.BindingOperation operation,
Node parentNode) |
protected void |
processBindingOutput(javax.wsdl.BindingOutput out,
Node parentNode,
javax.wsdl.OperationType style,
String operationName,
javax.wsdl.Operation operation) |
protected void |
processBindings(Map<String,javax.wsdl.Binding> bindings,
Node parentNode) |
protected void |
processDocumentation(javax.wsdl.WSDLElement wsdlElement,
Node outputNode) |
protected void |
processExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement element,
Node parentNode) |
protected void |
processExtensibilityElements(javax.wsdl.WSDLElement wsdlElement,
Node outputNode) |
protected void |
processFault(javax.wsdl.Fault fault,
Node parentNode) |
protected void |
processHTTPAddress(javax.wsdl.extensions.http.HTTPAddress element,
Node parentNode) |
protected void |
processHTTPBinding(javax.wsdl.extensions.http.HTTPBinding element,
Node parentNode) |
protected void |
processHTTPOperation(javax.wsdl.extensions.http.HTTPOperation element,
Node parentNode) |
protected void |
processHTTPUrlEncoded(javax.wsdl.extensions.http.HTTPUrlEncoded element,
Node parentNode) |
protected void |
processHTTPUrlReplacement(javax.wsdl.extensions.http.HTTPUrlReplacement element,
Node parentNode) |
protected void |
processInput(javax.wsdl.Input input,
Node parentNode,
javax.wsdl.OperationType style,
String operationName) |
protected void |
processMessage(javax.wsdl.Message message,
Node messagesNode) |
protected void |
processMessages(Map<String,javax.wsdl.Message> messages,
Node parentNode) |
protected void |
processMIMEContent(javax.wsdl.extensions.mime.MIMEContent element,
Node parentNode) |
protected void |
processMIMEMimeXml(javax.wsdl.extensions.mime.MIMEMimeXml element,
Node parentNode) |
protected void |
processMIMEMultipartRelated(javax.wsdl.extensions.mime.MIMEMultipartRelated element,
Node parentNode) |
protected void |
processMIMEPart(javax.wsdl.extensions.mime.MIMEPart element,
Node parentNode) |
protected void |
processOperation(javax.wsdl.Operation operation,
Node parentNode) |
protected void |
processOutput(javax.wsdl.Output out,
Node operationNode,
javax.wsdl.OperationType style,
String operationName) |
protected void |
processPart(javax.wsdl.Part part,
Node parentNode) |
protected void |
processPort(javax.wsdl.Port port,
Node parentNode) |
protected void |
processPortType(javax.wsdl.PortType portType,
Node portTypesNode) |
protected void |
processPortTypes(Map<String,javax.wsdl.PortType> portTypes,
Node parentNode) |
protected void |
processSchema(javax.wsdl.extensions.schema.Schema schema,
Node parentNode,
XsdReader xsdReader) |
protected void |
processService(javax.wsdl.Service service,
Node parentNode) |
protected void |
processServices(Map<String,javax.wsdl.Service> services,
Node parentNode) |
protected void |
processSOAP12Address(javax.wsdl.extensions.soap12.SOAP12Address element,
Node parentNode) |
protected void |
processSOAP12Binding(javax.wsdl.extensions.soap12.SOAP12Binding element,
Node parentNode) |
protected void |
processSOAP12Body(javax.wsdl.extensions.soap12.SOAP12Body element,
Node parentNode) |
protected void |
processSOAP12Fault(javax.wsdl.extensions.soap12.SOAP12Fault element,
Node parentNode) |
protected void |
processSOAP12Header(javax.wsdl.extensions.soap12.SOAP12Header element,
Node parentNode) |
protected void |
processSOAP12HeaderFault(javax.wsdl.extensions.soap12.SOAP12HeaderFault element,
Node parentNode) |
protected void |
processSOAP12Operation(javax.wsdl.extensions.soap12.SOAP12Operation element,
Node parentNode) |
protected void |
processSOAPAddress(javax.wsdl.extensions.soap.SOAPAddress element,
Node parentNode) |
protected void |
processSOAPBinding(javax.wsdl.extensions.soap.SOAPBinding element,
Node parentNode) |
protected void |
processSOAPBody(javax.wsdl.extensions.soap.SOAPBody element,
Node parentNode) |
protected void |
processSOAPFault(javax.wsdl.extensions.soap.SOAPFault element,
Node parentNode) |
protected void |
processSOAPHeader(javax.wsdl.extensions.soap.SOAPHeader element,
Node parentNode) |
protected void |
processSOAPHeaderFault(javax.wsdl.extensions.soap.SOAPHeaderFault element,
Node parentNode) |
protected void |
processSOAPOperation(javax.wsdl.extensions.soap.SOAPOperation element,
Node parentNode) |
protected void |
processTypes(javax.wsdl.Types types,
Node parentNode) |
protected void |
processUnknownExtensionElement(javax.wsdl.extensions.ExtensibilityElement element,
Node parentNode)
This method is called by
processExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement, javax.jcr.Node)
when the type of extension is not known. |
protected boolean |
processXsdAnnotation(Element element,
Node parentNode) |
protected boolean |
processXsdReference(Element element,
Node parentNode) |
protected void |
setReference(Node node,
String propertyName,
SymbolSpace space,
QName name) |
protected void |
setReferenceable(Node node,
SymbolSpace space,
QName qname) |
protected void |
setReferenceable(Node node,
SymbolSpace space,
String namespace,
String name) |
protected String |
uuidForComponent(javax.wsdl.WSDLElement component) |
protected String |
writeXml(Node xmlNode) |
read
getContext, getResolvers, read, registerForSymbolSpace, registerNamespace, resolveReferences, setReference
protected static final SymbolSpace MESSAGES
protected static final SymbolSpace PORT_TYPES
protected static final SymbolSpace BINDINGS
protected static final SymbolSpace PORTS
protected static final SymbolSpace SERVICES
public Wsdl11Reader(Sequencer.Context context, String baseUri)
protected javax.wsdl.Definition parse(InputSource source) throws Exception
Reader
or an InputStream
) and produce a representation
of the WSDL definition.parse
in class WsdlReader<javax.wsdl.Definition>
source
- the source containing the WSDL stream; never nullException
- if there is a problem during parsingprotected void process(javax.wsdl.Definition definition, Node outputNode, long sizeOfFile) throws Exception
WsdlReader
WsdlReader.parse(org.xml.sax.InputSource)
method and write the derived output content under the outputNode
.process
in class WsdlReader<javax.wsdl.Definition>
definition
- the representation of the WSDL definition, which will always be the value returned from
WsdlReader.parse(org.xml.sax.InputSource)
outputNode
- the node
under which the derived content for the XSD should be written; may not be nullsizeOfFile
- the size of the WSDL stream, in bytesException
- if there is a problem during processingprotected void processTypes(javax.wsdl.Types types, Node parentNode) throws Exception
Exception
protected void processSchema(javax.wsdl.extensions.schema.Schema schema, Node parentNode, XsdReader xsdReader) throws Exception
Exception
protected boolean processXsdReference(Element element, Node parentNode) throws RepositoryException
RepositoryException
protected String getAttributeValue(Element element, String namespaceUri, String localName)
protected void processMessages(Map<String,javax.wsdl.Message> messages, Node parentNode) throws Exception
Exception
protected void processMessage(javax.wsdl.Message message, Node messagesNode) throws Exception
Exception
protected void processPart(javax.wsdl.Part part, Node parentNode) throws Exception
Exception
protected void processPortTypes(Map<String,javax.wsdl.PortType> portTypes, Node parentNode) throws Exception
Exception
protected void processPortType(javax.wsdl.PortType portType, Node portTypesNode) throws Exception
Exception
protected void processOperation(javax.wsdl.Operation operation, Node parentNode) throws Exception
Exception
protected void processInput(javax.wsdl.Input input, Node parentNode, javax.wsdl.OperationType style, String operationName) throws Exception
Exception
protected void processOutput(javax.wsdl.Output out, Node operationNode, javax.wsdl.OperationType style, String operationName) throws Exception
Exception
protected void processFault(javax.wsdl.Fault fault, Node parentNode) throws Exception
Exception
protected void processBindings(Map<String,javax.wsdl.Binding> bindings, Node parentNode) throws Exception
Exception
protected void processBinding(javax.wsdl.Binding binding, Node bindingsNode) throws Exception
Exception
protected void processBindingOperation(javax.wsdl.BindingOperation operation, Node parentNode) throws Exception
Exception
protected void processBindingInput(javax.wsdl.BindingInput input, Node parentNode, javax.wsdl.OperationType style, String operationName, javax.wsdl.Operation operation) throws Exception
Exception
protected void processBindingOutput(javax.wsdl.BindingOutput out, Node parentNode, javax.wsdl.OperationType style, String operationName, javax.wsdl.Operation operation) throws Exception
Exception
protected void processBindingFault(javax.wsdl.BindingFault fault, Node parentNode) throws Exception
Exception
protected void processServices(Map<String,javax.wsdl.Service> services, Node parentNode) throws Exception
Exception
protected void processService(javax.wsdl.Service service, Node parentNode) throws Exception
Exception
protected void processPort(javax.wsdl.Port port, Node parentNode) throws Exception
Exception
protected void processDocumentation(javax.wsdl.WSDLElement wsdlElement, Node outputNode) throws Exception
Exception
protected String cleanDocumentationContent(String content)
processDocumentation(WSDLElement, Node)
to clean up the documentation content string.
By default, this method replaces all line feeds, carriage returns, and sequences of multiple whitespace with a single
space.content
- the original content as read from the definition; never nullprotected void processExtensibilityElements(javax.wsdl.WSDLElement wsdlElement, Node outputNode) throws Exception
Exception
protected void processExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement element, Node parentNode) throws Exception
Exception
protected void processHTTPAddress(javax.wsdl.extensions.http.HTTPAddress element, Node parentNode) throws Exception
Exception
protected void processHTTPBinding(javax.wsdl.extensions.http.HTTPBinding element, Node parentNode) throws Exception
Exception
protected void processHTTPOperation(javax.wsdl.extensions.http.HTTPOperation element, Node parentNode) throws Exception
Exception
protected void processHTTPUrlEncoded(javax.wsdl.extensions.http.HTTPUrlEncoded element, Node parentNode) throws Exception
Exception
protected void processHTTPUrlReplacement(javax.wsdl.extensions.http.HTTPUrlReplacement element, Node parentNode) throws Exception
Exception
protected void processSOAP12Address(javax.wsdl.extensions.soap12.SOAP12Address element, Node parentNode) throws Exception
Exception
protected void processSOAP12Binding(javax.wsdl.extensions.soap12.SOAP12Binding element, Node parentNode) throws Exception
Exception
protected void processSOAP12Operation(javax.wsdl.extensions.soap12.SOAP12Operation element, Node parentNode) throws Exception
Exception
protected void processSOAP12Body(javax.wsdl.extensions.soap12.SOAP12Body element, Node parentNode) throws Exception
Exception
protected void processSOAP12Fault(javax.wsdl.extensions.soap12.SOAP12Fault element, Node parentNode) throws Exception
Exception
protected void processSOAP12Header(javax.wsdl.extensions.soap12.SOAP12Header element, Node parentNode) throws Exception
Exception
protected void processSOAP12HeaderFault(javax.wsdl.extensions.soap12.SOAP12HeaderFault element, Node parentNode) throws Exception
Exception
protected void processSOAPAddress(javax.wsdl.extensions.soap.SOAPAddress element, Node parentNode) throws Exception
Exception
protected void processSOAPBinding(javax.wsdl.extensions.soap.SOAPBinding element, Node parentNode) throws Exception
Exception
protected void processSOAPOperation(javax.wsdl.extensions.soap.SOAPOperation element, Node parentNode) throws Exception
Exception
protected void processSOAPBody(javax.wsdl.extensions.soap.SOAPBody element, Node parentNode) throws Exception
Exception
protected void processSOAPFault(javax.wsdl.extensions.soap.SOAPFault element, Node parentNode) throws Exception
Exception
protected void processSOAPHeader(javax.wsdl.extensions.soap.SOAPHeader element, Node parentNode) throws Exception
Exception
protected void processSOAPHeaderFault(javax.wsdl.extensions.soap.SOAPHeaderFault element, Node parentNode) throws Exception
Exception
protected void processMIMEMultipartRelated(javax.wsdl.extensions.mime.MIMEMultipartRelated element, Node parentNode) throws Exception
Exception
protected void processMIMEPart(javax.wsdl.extensions.mime.MIMEPart element, Node parentNode) throws Exception
Exception
protected void processMIMEContent(javax.wsdl.extensions.mime.MIMEContent element, Node parentNode) throws Exception
Exception
protected void processMIMEMimeXml(javax.wsdl.extensions.mime.MIMEMimeXml element, Node parentNode) throws Exception
Exception
protected void processUnknownExtensionElement(javax.wsdl.extensions.ExtensibilityElement element, Node parentNode) throws Exception
processExtensibilityElement(javax.wsdl.extensions.ExtensibilityElement, javax.jcr.Node)
when the type of extension is not known. By default this method does nothing, but subclasses can override this method to
specialize the behavior.element
- the extensibility elementparentNode
- the parent node; never nullException
- if there is a problem processing the elementprotected void setReferenceable(Node node, SymbolSpace space, QName qname) throws RepositoryException
RepositoryException
protected void setReferenceable(Node node, SymbolSpace space, String namespace, String name) throws RepositoryException
RepositoryException
protected void setReference(Node node, String propertyName, SymbolSpace space, QName name) throws RepositoryException
RepositoryException
protected String writeXml(Node xmlNode) throws TransformerFactoryConfigurationError, TransformerException
protected Node addChildNode(Node parentNode, QName qname, String primaryType) throws RepositoryException
RepositoryException
protected String uuidForComponent(javax.wsdl.WSDLElement component)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.