Class ManagementWSDLPatcher
- java.lang.Object
-
- com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
-
- 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
Constructors Constructor Description ManagementWSDLPatcher(Map<URI,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.-
Methods inherited from class com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
bridge
-
-
-
-
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 classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException- If a parsing error occured
-
handleEndElement
protected void handleEndElement() throws XMLStreamExceptionSkip all policy expressions.- Overrides:
handleEndElementin classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException- If a parsing error occured
-
handleAttribute
protected void handleAttribute(int i) throws XMLStreamExceptionSkip all policy attributes- Overrides:
handleAttributein classXMLStreamReaderToXMLStreamWriter- 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 classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleComment
protected void handleComment() throws XMLStreamException- Overrides:
handleCommentin classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handlePI
protected void handlePI() throws XMLStreamException- Overrides:
handlePIin classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleDTD
protected void handleDTD() throws XMLStreamException- Overrides:
handleDTDin classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleEntityReference
protected void handleEntityReference() throws XMLStreamException- Overrides:
handleEntityReferencein classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleSpace
protected void handleSpace() throws XMLStreamException- Overrides:
handleSpacein classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
handleCDATA
protected void handleCDATA() throws XMLStreamException- Overrides:
handleCDATAin classXMLStreamReaderToXMLStreamWriter- Throws:
XMLStreamException
-
-