Class ManagementWSDLPatcher


  • public class ManagementWSDLPatcher
    extends org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
    Remove all existing policies and policy references from the given XML document and insert the new effective policies.
    Author:
    Fabian Ritzmann
    • Constructor Detail

      • ManagementWSDLPatcher

        public ManagementWSDLPatcher​(Map<URI,​com.sun.xml.ws.policy.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 org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
        Throws:
        XMLStreamException - If a parsing error occurred
      • handleEndElement

        protected void handleEndElement()
                                 throws XMLStreamException
        Skip all policy expressions.
        Overrides:
        handleEndElement in class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
        Throws:
        XMLStreamException - If a parsing error occured
      • handleAttribute

        protected void handleAttribute​(int i)
                                throws XMLStreamException
        Skip all policy attributes
        Overrides:
        handleAttribute in class org.jvnet.staxex.util.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 org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
        Throws:
        XMLStreamException
      • handleComment

        protected void handleComment()
                              throws XMLStreamException
        Overrides:
        handleComment in class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
        Throws:
        XMLStreamException
      • handleDTD

        protected void handleDTD()
                          throws XMLStreamException
        Overrides:
        handleDTD in class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
        Throws:
        XMLStreamException
      • handleEntityReference

        protected void handleEntityReference()
                                      throws XMLStreamException
        Overrides:
        handleEntityReference in class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
        Throws:
        XMLStreamException
      • handleSpace

        protected void handleSpace()
                            throws XMLStreamException
        Overrides:
        handleSpace in class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
        Throws:
        XMLStreamException
      • handleCDATA

        protected void handleCDATA()
                            throws XMLStreamException
        Overrides:
        handleCDATA in class org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
        Throws:
        XMLStreamException