com.sun.xml.ws.wsdl.writer
Class WSDLPatcher

java.lang.Object
  extended by org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
      extended by 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
WSDLPatcher(PortAddressResolver portAddressResolver, DocumentLocationResolver docResolver)
          Creates a WSDLPatcher for patching WSDL.
 
Method Summary
protected  void handleAttribute(int i)
          Writes out the i-th attribute of the current element.
protected  void handleCharacters()
           
protected  void handleEndElement()
           
protected  void handleStartElement()
           
 
Methods inherited from class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
bridge, bridge, handleCDATA, handleComment, handleDTD, handleEntityReference, handlePI, handleSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLPatcher

public WSDLPatcher(@NotNull
                   PortAddressResolver portAddressResolver,
                   @NotNull
                   DocumentLocationResolver docResolver)
Creates a WSDLPatcher for 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 XMLStreamException
Description copied from class: XMLStreamReaderToXMLStreamWriter
Writes out the i-th attribute of the current element.

Used from XMLStreamReaderToXMLStreamWriter.handleStartElement().

Overrides:
handleAttribute in class XMLStreamReaderToXMLStreamWriter
Throws:
XMLStreamException

handleStartElement

protected void handleStartElement()
                           throws XMLStreamException
Overrides:
handleStartElement in class XMLStreamReaderToXMLStreamWriter
Throws:
XMLStreamException

handleEndElement

protected void handleEndElement()
                         throws XMLStreamException
Overrides:
handleEndElement in class XMLStreamReaderToXMLStreamWriter
Throws:
XMLStreamException

handleCharacters

protected void handleCharacters()
                         throws XMLStreamException
Overrides:
handleCharacters in class XMLStreamReaderToXMLStreamWriter
Throws:
XMLStreamException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.