public abstract class AbstractOutputProcessor extends Object implements OutputProcessor
| Modifier and Type | Field and Description |
|---|---|
protected XMLSecurityConstants.Action |
action |
protected XMLSecurityProperties |
securityProperties |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOutputProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAfterProcessor(Object processor)
Add this processor after the given processor
|
XMLSecStartElement |
addAttributes(XMLSecStartElement xmlSecStartElement,
List<XMLSecAttribute> attributeList) |
void |
addBeforeProcessor(Object 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() |
Set<Object> |
getAfterProcessors()
This OutputProcessor will be added after the processors in this set
|
Set<Object> |
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)
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 AbstractOutputProcessor()
throws XMLSecurityException
XMLSecurityExceptionpublic void setXMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
OutputProcessorsetXMLSecurityProperties in interface OutputProcessorpublic void setAction(XMLSecurityConstants.Action action)
OutputProcessorsetAction in interface OutputProcessorpublic 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(Object processor)
OutputProcessoraddBeforeProcessor in interface OutputProcessorpublic Set<Object> getBeforeProcessors()
OutputProcessorgetBeforeProcessors in interface OutputProcessorpublic void addAfterProcessor(Object processor)
OutputProcessoraddAfterProcessor in interface OutputProcessorpublic Set<Object> getAfterProcessors()
OutputProcessorgetAfterProcessors in interface OutputProcessorpublic XMLSecurityProperties getSecurityProperties()
public XMLSecurityConstants.Action getAction()
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–2020 The Apache Software Foundation. All rights reserved.