public abstract class AbstractOutputProcessor extends Object implements OutputProcessor
| Modifier and Type | Field and Description |
|---|---|
protected XMLSecurityConstants.Action |
action |
protected int |
actionOrder |
protected XMLSecurityProperties |
securityProperties |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOutputProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAfterProcessor(Class<? extends OutputProcessor> processor)
Add this processor after the given processor
|
XMLSecStartElement |
addAttributes(XMLSecStartElement xmlSecStartElement,
List<XMLSecAttribute> attributeList) |
void |
addBeforeProcessor(Class<? extends OutputProcessor> processor)
Add this processor before the given processor
|
XMLSecAttribute |
createAttribute(QName attribute,
String attributeValue) |
XMLSecCharacters |
createCharacters(char[] text) |
XMLSecCharacters |
createCharacters(String characters) |
void |
createCharactersAndOutputAsEvent(OutputProcessorChain outputProcessorChain,
char[] text) |
void |
createCharactersAndOutputAsEvent(OutputProcessorChain outputProcessorChain,
String characters) |
XMLSecEndElement |
createEndElement(QName element) |
void |
createEndElementAndOutputAsEvent(OutputProcessorChain outputProcessorChain,
QName element) |
XMLSecNamespace |
createNamespace(String prefix,
String uri) |
XMLSecStartElement |
createStartElementAndOutputAsEvent(OutputProcessorChain outputProcessorChain,
QName element,
boolean outputLocalNs,
List<XMLSecAttribute> attributes) |
void |
createStartElementAndOutputAsEvent(OutputProcessorChain outputProcessorChain,
QName element,
List<XMLSecNamespace> namespaces,
List<XMLSecAttribute> attributes) |
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
|
XMLSecurityProperties |
getSecurityProperties() |
void |
init(OutputProcessorChain outputProcessorChain)
Method will be called after setting the properties
|
protected void |
outputAsEvent(OutputProcessorChain outputProcessorChain,
XMLSecEvent xmlSecEvent) |
protected void |
outputDOMElement(Element element,
OutputProcessorChain outputProcessorChain) |
protected SecurePart |
securePartMatches(XMLSecStartElement xmlSecStartElement,
Map<Object,SecurePart> secureParts) |
protected SecurePart |
securePartMatches(XMLSecStartElement xmlSecStartElement,
OutputProcessorChain outputProcessorChain,
String dynamicParts) |
void |
setAction(XMLSecurityConstants.Action action,
int actionOrder)
setter for the Action after instantiation of the processor
|
void |
setPhase(XMLSecurityConstants.Phase phase) |
void |
setXMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
setter for the XMLSecurityProperties after instantiation of the processor
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessEventprotected XMLSecurityProperties securityProperties
protected XMLSecurityConstants.Action action
protected int actionOrder
protected AbstractOutputProcessor()
throws XMLSecurityException
XMLSecurityExceptionpublic void setXMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
OutputProcessorsetXMLSecurityProperties in interface OutputProcessorpublic void setAction(XMLSecurityConstants.Action action, int actionOrder)
OutputProcessorsetAction in interface OutputProcessoraction - 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.public void init(OutputProcessorChain outputProcessorChain) throws XMLSecurityException
OutputProcessorinit in interface OutputProcessorXMLSecurityExceptionpublic XMLSecurityConstants.Phase getPhase()
OutputProcessorgetPhase in interface OutputProcessorpublic void setPhase(XMLSecurityConstants.Phase phase)
public void addBeforeProcessor(Class<? extends OutputProcessor> processor)
OutputProcessoraddBeforeProcessor in interface OutputProcessorpublic Set<Class<? extends OutputProcessor>> getBeforeProcessors()
OutputProcessorgetBeforeProcessors in interface OutputProcessorpublic void addAfterProcessor(Class<? extends OutputProcessor> processor)
OutputProcessoraddAfterProcessor in interface OutputProcessorpublic Set<Class<? extends OutputProcessor>> getAfterProcessors()
OutputProcessorgetAfterProcessors in interface OutputProcessorpublic XMLSecurityProperties getSecurityProperties()
public XMLSecurityConstants.Action getAction()
getAction in interface OutputProcessornull.public int getActionOrder()
getActionOrder in interface OutputProcessor-1.public void doFinal(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
OutputProcessordoFinal in interface OutputProcessorXMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occurspublic XMLSecStartElement addAttributes(XMLSecStartElement xmlSecStartElement, List<XMLSecAttribute> attributeList) throws XMLStreamException
XMLStreamExceptionpublic void createStartElementAndOutputAsEvent(OutputProcessorChain outputProcessorChain, QName element, List<XMLSecNamespace> namespaces, List<XMLSecAttribute> attributes) throws XMLStreamException, XMLSecurityException
public XMLSecStartElement createStartElementAndOutputAsEvent(OutputProcessorChain outputProcessorChain, QName element, boolean outputLocalNs, List<XMLSecAttribute> attributes) throws XMLStreamException, XMLSecurityException
public XMLSecEndElement createEndElement(QName element)
public void createEndElementAndOutputAsEvent(OutputProcessorChain outputProcessorChain, QName element) throws XMLStreamException, XMLSecurityException
public void createCharactersAndOutputAsEvent(OutputProcessorChain outputProcessorChain, String characters) throws XMLStreamException, XMLSecurityException
public void createCharactersAndOutputAsEvent(OutputProcessorChain outputProcessorChain, char[] text) throws XMLStreamException, XMLSecurityException
public XMLSecCharacters createCharacters(String characters)
public XMLSecCharacters createCharacters(char[] text)
public XMLSecAttribute createAttribute(QName attribute, String attributeValue)
public XMLSecNamespace createNamespace(String prefix, String uri)
protected void outputAsEvent(OutputProcessorChain outputProcessorChain, XMLSecEvent xmlSecEvent) throws XMLStreamException, XMLSecurityException
protected SecurePart securePartMatches(XMLSecStartElement xmlSecStartElement, OutputProcessorChain outputProcessorChain, String dynamicParts)
protected SecurePart securePartMatches(XMLSecStartElement xmlSecStartElement, Map<Object,SecurePart> secureParts)
protected void outputDOMElement(Element element, OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
Copyright © 2000–2022 The Apache Software Foundation. All rights reserved.