use of org.apache.xml.security.stax.ext.stax.XMLSecEvent in project santuario-java by apache.
the class AbstractBufferingOutputProcessor method flushBufferAndCallbackAfterHeader.
protected void flushBufferAndCallbackAfterHeader(OutputProcessorChain outputProcessorChain, Deque<XMLSecEvent> xmlSecEventDeque) throws XMLStreamException, XMLSecurityException {
this.processHeaderEvent(outputProcessorChain);
// loop through the rest of the document
while (!xmlSecEventDeque.isEmpty()) {
XMLSecEvent xmlSecEvent = xmlSecEventDeque.pop();
outputProcessorChain.reset();
outputProcessorChain.processEvent(xmlSecEvent);
}
outputProcessorChain.reset();
}
Aggregations