org.mule.module.ws.consumer
Class NamespaceRestorerXMLStreamReader

java.lang.Object
  extended by org.mule.module.xml.stax.DelegateXMLStreamReader
      extended by org.mule.module.ws.consumer.ScopeSaverXMLStreamReader
          extended by org.mule.module.ws.consumer.NamespaceRestorerXMLStreamReader
All Implemented Interfaces:
XMLStreamConstants, XMLStreamReader

public class NamespaceRestorerXMLStreamReader
extends ScopeSaverXMLStreamReader

XMLStreamReader decorator that restores XML Namespace declarations. By default, it will restore the namespaces on the first declaration, but this can be overriden


Field Summary
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Constructor Summary
NamespaceRestorerXMLStreamReader(XMLStreamReader reader)
           
 
Method Summary
 NamespaceRestorerXMLStreamReader blackList(String namespace)
           
 int getNamespaceCount()
           
 String getNamespacePrefix(int index)
           
 String getNamespaceURI(int index)
           
 String getNamespaceURI(String prefix)
           
 int next()
           
 void restoreNamespaces()
           
 
Methods inherited from class org.mule.module.ws.consumer.ScopeSaverXMLStreamReader
currentScope, scopes
 
Methods inherited from class org.mule.module.xml.stax.DelegateXMLStreamReader
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getDelegateReader, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, standaloneSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceRestorerXMLStreamReader

public NamespaceRestorerXMLStreamReader(XMLStreamReader reader)
Method Detail

blackList

public final NamespaceRestorerXMLStreamReader blackList(String namespace)

restoreNamespaces

public void restoreNamespaces()

next

public int next()
         throws XMLStreamException
Specified by:
next in interface XMLStreamReader
Overrides:
next in class ScopeSaverXMLStreamReader
Throws:
XMLStreamException

getNamespaceCount

public int getNamespaceCount()
Specified by:
getNamespaceCount in interface XMLStreamReader
Overrides:
getNamespaceCount in class DelegateXMLStreamReader

getNamespacePrefix

public String getNamespacePrefix(int index)
Specified by:
getNamespacePrefix in interface XMLStreamReader
Overrides:
getNamespacePrefix in class DelegateXMLStreamReader

getNamespaceURI

public String getNamespaceURI(String prefix)
Specified by:
getNamespaceURI in interface XMLStreamReader
Overrides:
getNamespaceURI in class DelegateXMLStreamReader

getNamespaceURI

public String getNamespaceURI(int index)
Specified by:
getNamespaceURI in interface XMLStreamReader
Overrides:
getNamespaceURI in class DelegateXMLStreamReader


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.