com.sun.xml.ws.config.management.server
Class ManagementWSDLPatcher

java.lang.Object
  extended by com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
      extended by com.sun.xml.ws.config.management.server.ManagementWSDLPatcher

public class ManagementWSDLPatcher
extends XMLStreamReaderToXMLStreamWriter

Remove all existing policies and policy references from the given XML document and insert the new effective policies.

Author:
Fabian Ritzmann

Field Summary
 
Fields inherited from class com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
in, out
 
Constructor Summary
ManagementWSDLPatcher(Map<URI,Policy> urnToPolicy)
           
 
Method Summary
protected  void handleAttribute(int i)
          Skip all policy attributes
protected  void handleCDATA()
           
protected  void handleCharacters()
           
protected  void handleComment()
           
protected  void handleDTD()
           
protected  void handleEndElement()
          Skip all policy expressions.
protected  void handleEntityReference()
           
protected  void handlePI()
           
protected  void handleSpace()
           
protected  void handleStartElement()
          If we find a policy element, skip it.
 
Methods inherited from class com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
bridge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagementWSDLPatcher

public ManagementWSDLPatcher(Map<URI,Policy> urnToPolicy)
Method Detail

handleStartElement

protected void handleStartElement()
                           throws XMLStreamException
If we find a policy element, skip it. If we find a binding element, marshal any policies onto it.

Overrides:
handleStartElement in class XMLStreamReaderToXMLStreamWriter
Throws:
XMLStreamException - If a parsing error occured

handleEndElement

protected void handleEndElement()
                         throws XMLStreamException
Skip all policy expressions.

Overrides:
handleEndElement in class XMLStreamReaderToXMLStreamWriter
Throws:
XMLStreamException - If a parsing error occured

handleAttribute

protected void handleAttribute(int i)
                        throws XMLStreamException
Skip all policy attributes

Overrides:
handleAttribute in class XMLStreamReaderToXMLStreamWriter
Parameters:
i - The i-th attribute of the current element
Throws:
XMLStreamException - If a parsing error occured

handleCharacters

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

handleComment

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

handlePI

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

handleDTD

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

handleEntityReference

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

handleSpace

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

handleCDATA

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


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