Module org.apache.santuario.xmlsec
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
public abstract class AbstractBufferingOutputProcessor extends AbstractOutputProcessor
An abstract OutputProcessor class for reusabilty
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, actionOrder, 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, Deque<org.apache.xml.security.stax.ext.stax.XMLSecEvent> xmlSecEventDeque)protected Deque<org.apache.xml.security.stax.ext.stax.XMLSecEvent>getXmlSecEventBuffer()voidprocessEvent(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)Will be called from the framework for every XMLEventprotected 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, getActionOrder, getAfterProcessors, getBeforeProcessors, getPhase, getSecurityProperties, init, outputAsEvent, outputDOMElement, securePartMatches, securePartMatches, setAction, setPhase, setXMLSecurityProperties
-
-
-
-
Constructor Detail
-
AbstractBufferingOutputProcessor
protected AbstractBufferingOutputProcessor() throws XMLSecurityException- Throws:
XMLSecurityException
-
-
Method Detail
-
getXmlSecEventBuffer
protected Deque<org.apache.xml.security.stax.ext.stax.XMLSecEvent> getXmlSecEventBuffer()
-
processEvent
public void processEvent(org.apache.xml.security.stax.ext.stax.XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityExceptionDescription copied from interface:OutputProcessorWill be called from the framework for every XMLEvent- Parameters:
xmlSecEvent- The next XMLEvent to process- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
doFinal
public void doFinal(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
Description copied from interface:OutputProcessorWill be called when the whole document is processed.- Specified by:
doFinalin interfaceOutputProcessor- Overrides:
doFinalin 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<org.apache.xml.security.stax.ext.stax.XMLSecEvent> xmlSecEventDeque) throws XMLStreamException, XMLSecurityException
-
-