Class FinalOutputProcessor
java.lang.Object
org.apache.xml.security.stax.ext.AbstractOutputProcessor
org.apache.xml.security.stax.impl.processor.output.FinalOutputProcessor
- All Implemented Interfaces:
OutputProcessor
Processor which outputs the XMLEvents to an outputStream
This Processor can be extended to allow to write to a StAX writer instead of directly to an output stream
-
Field Summary
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
-
Constructor Summary
ConstructorsConstructorDescriptionFinalOutputProcessor
(OutputStream outputStream, String encoding) FinalOutputProcessor
(XMLStreamWriter xmlStreamWriter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doFinal
(OutputProcessorChain outputProcessorChain) Will be called when the whole document is processed.void
processEvent
(XMLSecEvent xmlSecEvent, 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 Details
-
FinalOutputProcessor
- Throws:
XMLSecurityException
-
FinalOutputProcessor
- Throws:
XMLSecurityException
-
-
Method Details
-
processEvent
public void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException - Specified by:
processEvent
in classAbstractOutputProcessor
- Throws:
XMLStreamException
XMLSecurityException
-
doFinal
Description copied from interface:OutputProcessor
Will be called when the whole document is processed.- Specified by:
doFinal
in interfaceOutputProcessor
- Overrides:
doFinal
in classAbstractOutputProcessor
- Throws:
XMLSecurityException
- thrown when a Security failure occurs
-