Class ManagementWSDLPatcher
- java.lang.Object
-
- org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter
-
- com.sun.xml.ws.config.management.server.ManagementWSDLPatcher
-
public class ManagementWSDLPatcher extends org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriterRemove all existing policies and policy references from the given XML document and insert the new effective policies.- Author:
- Fabian Ritzmann
-
-
Constructor Summary
Constructors Constructor Description ManagementWSDLPatcher(Map<URI,com.sun.xml.ws.policy.Policy> urnToPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleAttribute(int i)Skip all policy attributesprotected voidhandleCDATA()protected voidhandleCharacters()protected voidhandleComment()protected voidhandleDTD()protected voidhandleEndElement()Skip all policy expressions.protected voidhandleEntityReference()protected voidhandlePI()protected voidhandleSpace()protected voidhandleStartElement()If we find a policy element, skip it.
-
-
-
Method Detail
-
handleStartElement
protected void handleStartElement() throws XMLStreamExceptionIf we find a policy element, skip it. If we find a binding element, marshal any policies onto it.- Overrides:
handleStartElementin classorg.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException- If a parsing error occurred
-
handleEndElement
protected void handleEndElement() throws XMLStreamExceptionSkip all policy expressions.- Overrides:
handleEndElementin classorg.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException- If a parsing error occured
-
handleAttribute
protected void handleAttribute(int i) throws XMLStreamExceptionSkip all policy attributes- Overrides:
handleAttributein classorg.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:
handleCharactersin classorg.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleComment
protected void handleComment() throws XMLStreamException- Overrides:
handleCommentin classorg.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handlePI
protected void handlePI() throws XMLStreamException- Overrides:
handlePIin classorg.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleDTD
protected void handleDTD() throws XMLStreamException- Overrides:
handleDTDin classorg.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleEntityReference
protected void handleEntityReference() throws XMLStreamException- Overrides:
handleEntityReferencein classorg.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleSpace
protected void handleSpace() throws XMLStreamException- Overrides:
handleSpacein classorg.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleCDATA
protected void handleCDATA() throws XMLStreamException- Overrides:
handleCDATAin classorg.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
-