Class XMLEventReaderInputProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractInputProcessor
-
- org.apache.xml.security.stax.impl.processor.input.XMLEventReaderInputProcessor
-
- All Implemented Interfaces:
InputProcessor
public class XMLEventReaderInputProcessor extends AbstractInputProcessor
The XMLEventReaderInputProcessor reads requested XMLEvents from the original XMLEventReader and returns them to the requester
-
-
Field Summary
Fields Modifier and Type Field Description private int
currentXMLStructureDepth
private boolean
EOF
private static java.lang.Integer
maximumAllowedXMLStructureDepth
private XMLSecStartElement
parentXmlSecStartElement
private javax.xml.stream.XMLStreamReader
xmlStreamReader
-
Constructor Summary
Constructors Constructor Description XMLEventReaderInputProcessor(XMLSecurityProperties securityProperties, javax.xml.stream.XMLStreamReader xmlStreamReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doFinal(InputProcessorChain inputProcessorChain)
Will be called when the whole document is processed.XMLSecEvent
processNextEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next XMLEvent is requestedprivate XMLSecEvent
processNextEventInternal()
XMLSecEvent
processNextHeaderEvent(InputProcessorChain inputProcessorChain)
Will be called from the framework when the next security-header XMLEvent is requested-
Methods inherited from class org.apache.xml.security.stax.ext.AbstractInputProcessor
addAfterProcessor, addBeforeProcessor, getAfterProcessors, getBeforeProcessors, getPhase, getReferenceIDAttribute, getSecurityProperties, setPhase
-
-
-
-
Field Detail
-
maximumAllowedXMLStructureDepth
private static final java.lang.Integer maximumAllowedXMLStructureDepth
-
currentXMLStructureDepth
private int currentXMLStructureDepth
-
xmlStreamReader
private final javax.xml.stream.XMLStreamReader xmlStreamReader
-
parentXmlSecStartElement
private XMLSecStartElement parentXmlSecStartElement
-
EOF
private boolean EOF
-
-
Constructor Detail
-
XMLEventReaderInputProcessor
public XMLEventReaderInputProcessor(XMLSecurityProperties securityProperties, javax.xml.stream.XMLStreamReader xmlStreamReader)
-
-
Method Detail
-
processNextHeaderEvent
public XMLSecEvent processNextHeaderEvent(InputProcessorChain inputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:InputProcessor
Will be called from the framework when the next security-header XMLEvent is requested- Specified by:
processNextHeaderEvent
in interfaceInputProcessor
- Specified by:
processNextHeaderEvent
in classAbstractInputProcessor
- Returns:
- The next XMLSecEvent
- Throws:
javax.xml.stream.XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurs
-
processNextEvent
public XMLSecEvent processNextEvent(InputProcessorChain inputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:InputProcessor
Will be called from the framework when the next XMLEvent is requested- Specified by:
processNextEvent
in interfaceInputProcessor
- Specified by:
processNextEvent
in classAbstractInputProcessor
- Returns:
- The next XMLSecEvent
- Throws:
javax.xml.stream.XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurs
-
processNextEventInternal
private XMLSecEvent processNextEventInternal() throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
-
doFinal
public void doFinal(InputProcessorChain inputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:InputProcessor
Will be called when the whole document is processed.- Specified by:
doFinal
in interfaceInputProcessor
- Overrides:
doFinal
in classAbstractInputProcessor
- Throws:
javax.xml.stream.XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurs
-
-