T
- the type of object returned by the parser@NotThreadSafe public abstract class WsdlReader<T> extends AbstractResolvingReader
This class is intended to be subclassed by supplying implementations for the parse(org.xml.sax.InputSource)
.
Modifier and Type | Field and Description |
---|---|
protected String |
baseUri
the URI of the document being read; never null or empty
|
context, logger
Constructor and Description |
---|
WsdlReader(Sequencer.Context context,
String baseUri) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
parse(InputSource source)
Parse the supplied source (which contains either a
Reader or an InputStream ) and produce a representation
of the WSDL definition. |
protected abstract void |
process(T parsedForm,
Node outputNode,
long sizeOfFile)
Process the supplied representation of the WSDL definition that was returned from the
parse(org.xml.sax.InputSource)
method and write the derived output content under the outputNode . |
void |
read(InputSource source,
Node outputNode)
Read the document from the supplied stream, and produce the derived content.
|
getContext, getResolvers, read, registerForSymbolSpace, registerNamespace, resolveReferences, setReference
protected final String baseUri
public WsdlReader(Sequencer.Context context, String baseUri)
public void read(InputSource source, Node outputNode) throws Exception
AbstractResolvingReader
read
in class AbstractResolvingReader
source
- the input source of the document; may not be nulloutputNode
- the parent node at which the derived content should be written; may not be nullException
- if there is a problem reading the XSD contentprotected abstract T parse(InputSource source) throws Exception
Reader
or an InputStream
) and produce a representation
of the WSDL definition.source
- the source containing the WSDL stream; never nullException
- if there is a problem during parsingprotected abstract void process(T parsedForm, Node outputNode, long sizeOfFile) throws Exception
parse(org.xml.sax.InputSource)
method and write the derived output content under the outputNode
.parsedForm
- the representation of the WSDL definition, which will always be the value returned from
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 processingCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.