Package org.apache.xml.security.stax.ext
Class AbstractBufferingOutputProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractOutputProcessor
-
- org.apache.xml.security.stax.ext.AbstractBufferingOutputProcessor
-
- All Implemented Interfaces:
OutputProcessor
- Direct Known Subclasses:
AbstractEncryptEndingOutputProcessor,AbstractSignatureEndingOutputProcessor
public abstract class AbstractBufferingOutputProcessor extends AbstractOutputProcessor
An abstract OutputProcessor class for reusabilty
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayDeque<XMLSecEvent>xmlSecEventBuffer-
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBufferingOutputProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddoFinal(OutputProcessorChain outputProcessorChain)Will be called when the whole document is processed.protected voidflushBufferAndCallbackAfterHeader(OutputProcessorChain outputProcessorChain, java.util.Deque<XMLSecEvent> xmlSecEventDeque)protected java.util.Deque<XMLSecEvent>getXmlSecEventBuffer()voidprocessEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)protected abstract voidprocessHeaderEvent(OutputProcessorChain outputProcessorChain)-
Methods inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
addAfterProcessor, addAttributes, addBeforeProcessor, createAttribute, createCharacters, createCharacters, createCharactersAndOutputAsEvent, createCharactersAndOutputAsEvent, createEndElement, createEndElementAndOutputAsEvent, createNamespace, createStartElementAndOutputAsEvent, createStartElementAndOutputAsEvent, getAction, getAfterProcessors, getBeforeProcessors, getPhase, getSecurityProperties, init, outputAsEvent, outputDOMElement, processNextEvent, securePartMatches, securePartMatches, setAction, setPhase, setXMLSecurityProperties
-
-
-
-
Field Detail
-
xmlSecEventBuffer
private final java.util.ArrayDeque<XMLSecEvent> xmlSecEventBuffer
-
-
Constructor Detail
-
AbstractBufferingOutputProcessor
protected AbstractBufferingOutputProcessor() throws XMLSecurityException- Throws:
XMLSecurityException
-
-
Method Detail
-
getXmlSecEventBuffer
protected java.util.Deque<XMLSecEvent> getXmlSecEventBuffer()
-
processEvent
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Specified by:
processEventin classAbstractOutputProcessor- Throws:
javax.xml.stream.XMLStreamExceptionXMLSecurityException
-
doFinal
public void doFinal(OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
Description copied from interface:OutputProcessorWill be called when the whole document is processed.- Specified by:
doFinalin interfaceOutputProcessor- Overrides:
doFinalin classAbstractOutputProcessor- Throws:
javax.xml.stream.XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
processHeaderEvent
protected abstract void processHeaderEvent(OutputProcessorChain outputProcessorChain) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Throws:
javax.xml.stream.XMLStreamExceptionXMLSecurityException
-
flushBufferAndCallbackAfterHeader
protected void flushBufferAndCallbackAfterHeader(OutputProcessorChain outputProcessorChain, java.util.Deque<XMLSecEvent> xmlSecEventDeque) throws javax.xml.stream.XMLStreamException, XMLSecurityException
- Throws:
javax.xml.stream.XMLStreamExceptionXMLSecurityException
-
-