com.sun.xml.ws.server
Class WSDLPatcher

java.lang.Object
  extended by com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
      extended by com.sun.xml.ws.server.WSDLPatcher

final class WSDLPatcher
extends XMLStreamReaderToXMLStreamWriter

Patches WSDL with the correct endpoint address and the relative paths to other documents.


Field Summary
 
Fields inherited from class com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
in, out
 
Constructor Summary
WSDLPatcher(WSEndpointImpl<?> endpoint, SDDocumentImpl current, PortAddressResolver portAddressResolver, DocumentAddressResolver resolver)
          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 com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
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(WSEndpointImpl<?> endpoint,
                   SDDocumentImpl current,
                   PortAddressResolver portAddressResolver,
                   DocumentAddressResolver resolver)
Creates a WSDLPatcher for patching WSDL.

Parameters:
endpoint - The endpoint that we are patchinig WSDL for. This object is consulted to check other SDDocuments. Must not be null.
current - The document that we are patching. Must not be null.
portAddressResolver - address of the endpoint is resolved using this resolver.
resolver - Consulted to generate references among SDDocuments. Must not be null.
Method Detail

handleAttribute

protected void handleAttribute(int i)
                        throws javax.xml.stream.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:
javax.xml.stream.XMLStreamException

handleStartElement

protected void handleStartElement()
                           throws javax.xml.stream.XMLStreamException
Overrides:
handleStartElement in class XMLStreamReaderToXMLStreamWriter
Throws:
javax.xml.stream.XMLStreamException

handleEndElement

protected void handleEndElement()
                         throws javax.xml.stream.XMLStreamException
Overrides:
handleEndElement in class XMLStreamReaderToXMLStreamWriter
Throws:
javax.xml.stream.XMLStreamException

handleCharacters

protected void handleCharacters()
                         throws javax.xml.stream.XMLStreamException
Overrides:
handleCharacters in class XMLStreamReaderToXMLStreamWriter
Throws:
javax.xml.stream.XMLStreamException