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- Version:
- $Revision: 1720201 $ $Date: 2015-12-15 18:13:17 +0100 (Tue, 15 Dec 2015) $
- Author:
- $Author: coheigea $
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBufferingOutputProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
doFinal(OutputProcessorChain outputProcessorChain)
Will be called when the whole document is processed.protected void
flushBufferAndCallbackAfterHeader(OutputProcessorChain outputProcessorChain, Deque<XMLSecEvent> xmlSecEventDeque)
protected Deque<XMLSecEvent>
getXmlSecEventBuffer()
void
processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)
protected abstract void
processHeaderEvent(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
-
-
-
-
Constructor Detail
-
AbstractBufferingOutputProcessor
protected AbstractBufferingOutputProcessor() throws XMLSecurityException
- Throws:
XMLSecurityException
-
-
Method Detail
-
getXmlSecEventBuffer
protected Deque<XMLSecEvent> getXmlSecEventBuffer()
-
processEvent
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
- Specified by:
processEvent
in classAbstractOutputProcessor
- Throws:
XMLStreamException
XMLSecurityException
-
doFinal
public void doFinal(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
Description copied from interface:OutputProcessor
Will be called when the whole document is processed.- Specified by:
doFinal
in interfaceOutputProcessor
- Overrides:
doFinal
in classAbstractOutputProcessor
- Throws:
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurs
-
processHeaderEvent
protected abstract void processHeaderEvent(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
-
flushBufferAndCallbackAfterHeader
protected void flushBufferAndCallbackAfterHeader(OutputProcessorChain outputProcessorChain, Deque<XMLSecEvent> xmlSecEventDeque) throws XMLStreamException, XMLSecurityException
-
-