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
public class FinalOutputProcessor extends AbstractOutputProcessor
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 Modifier and Type Field Description private javax.xml.stream.XMLEventWriterxmlEventWriter-
Fields inherited from class org.apache.xml.security.stax.ext.AbstractOutputProcessor
action, securityProperties
-
-
Constructor Summary
Constructors Constructor Description FinalOutputProcessor(java.io.OutputStream outputStream, java.lang.String encoding)FinalOutputProcessor(javax.xml.stream.XMLStreamWriter xmlStreamWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoFinal(OutputProcessorChain outputProcessorChain)Will be called when the whole document is processed.voidprocessEvent(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 Detail
-
FinalOutputProcessor
public FinalOutputProcessor(java.io.OutputStream outputStream, java.lang.String encoding) throws XMLSecurityException- Throws:
XMLSecurityException
-
FinalOutputProcessor
public FinalOutputProcessor(javax.xml.stream.XMLStreamWriter xmlStreamWriter) throws XMLSecurityException- Throws:
XMLSecurityException
-
-
Method Detail
-
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 XMLSecurityException
Description copied from interface:OutputProcessorWill be called when the whole document is processed.- Specified by:
doFinalin interfaceOutputProcessor- Overrides:
doFinalin classAbstractOutputProcessor- Throws:
XMLSecurityException- thrown when a Security failure occurs
-
-