Package com.sun.xml.ws.wsdl.writer
Class WSDLPatcher
- java.lang.Object
-
- org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
-
- com.sun.xml.ws.wsdl.writer.WSDLPatcher
-
public final class WSDLPatcher extends XMLStreamReaderToXMLStreamWriter
Patches WSDL with the correct endpoint address and the relative paths to other documents.- Author:
- Jitendra Kotamraju, Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
XMLStreamReaderToXMLStreamWriter.Breakpoint
-
-
Field Summary
-
Fields inherited from class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
in, out
-
-
Constructor Summary
Constructors Constructor Description WSDLPatcher(PortAddressResolver portAddressResolver, DocumentLocationResolver docResolver)Creates aWSDLPatcherfor patching WSDL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleAttribute(int i)Writes out thei-th attribute of the current element.protected voidhandleCharacters()protected voidhandleEndElement()protected voidhandleStartElement()-
Methods inherited from class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
bridge, bridge, handleCDATA, handleComment, handleDTD, handleEntityReference, handlePI, handleSpace
-
-
-
-
Constructor Detail
-
WSDLPatcher
public WSDLPatcher(@NotNull PortAddressResolver portAddressResolver, @NotNull DocumentLocationResolver docResolver)
Creates aWSDLPatcherfor patching WSDL.- Parameters:
portAddressResolver- address of the endpoint is resolved using this docResolver.docResolver- Consulted to get the import/include document locations. Must not be null.
-
-
Method Detail
-
handleAttribute
protected void handleAttribute(int i) throws XMLStreamExceptionDescription copied from class:XMLStreamReaderToXMLStreamWriterWrites out thei-th attribute of the current element.Used from
XMLStreamReaderToXMLStreamWriter.handleStartElement().- Overrides:
handleAttributein classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleStartElement
protected void handleStartElement() throws XMLStreamException- Overrides:
handleStartElementin classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleEndElement
protected void handleEndElement() throws XMLStreamException- Overrides:
handleEndElementin classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleCharacters
protected void handleCharacters() throws XMLStreamException- Overrides:
handleCharactersin classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
-