public interface OutputProcessor
XMLSecurityConstants.Phase (required)-1 it will be ignored.
The action order thus only defines the order between two processors if both these processors have an
action order != -1.
| Modifier and Type | Method and Description |
|---|---|
void |
addAfterProcessor(Class<? extends OutputProcessor> processor)
Add this processor after the given processor
|
void |
addBeforeProcessor(Class<? extends OutputProcessor> processor)
Add this processor before the given processor
|
void |
doFinal(OutputProcessorChain outputProcessorChain)
Will be called when the whole document is processed.
|
XMLSecurityConstants.Action |
getAction() |
int |
getActionOrder() |
Set<Class<? extends OutputProcessor>> |
getAfterProcessors()
This OutputProcessor will be added after the processors in this set
|
Set<Class<? extends OutputProcessor>> |
getBeforeProcessors()
This OutputProcessor will be added before the processors in this set
|
XMLSecurityConstants.Phase |
getPhase()
The Phase in which this OutputProcessor should be applied
|
void |
init(OutputProcessorChain outputProcessorChain)
Method will be called after setting the properties
|
void |
processEvent(XMLSecEvent xmlSecEvent,
OutputProcessorChain outputProcessorChain)
Will be called from the framework for every XMLEvent
|
void |
setAction(XMLSecurityConstants.Action action,
int actionOrder)
setter for the Action after instantiation of the processor
|
void |
setXMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
setter for the XMLSecurityProperties after instantiation of the processor
|
void setXMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
xmlSecurityProperties - void setAction(XMLSecurityConstants.Action action, int actionOrder)
action - The action this processor belongs to, possibly null for no particular action.actionOrder - The action order of this processor, possibly -1 for no particular action order.XMLSecurityConstants.Action getAction()
null.int getActionOrder()
-1.void init(OutputProcessorChain outputProcessorChain) throws XMLSecurityException
XMLSecurityExceptionvoid addBeforeProcessor(Class<? extends OutputProcessor> processor)
processor - Set<Class<? extends OutputProcessor>> getBeforeProcessors()
void addAfterProcessor(Class<? extends OutputProcessor> processor)
processor - Set<Class<? extends OutputProcessor>> getAfterProcessors()
XMLSecurityConstants.Phase getPhase()
void processEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
xmlSecEvent - The next XMLEvent to processoutputProcessorChain - XMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occursvoid doFinal(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
outputProcessorChain - XMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occursCopyright © 2000–2023 The Apache Software Foundation. All rights reserved.