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, wait
processEvent
protected XMLSecurityProperties securityProperties
protected XMLSecurityConstants.Action action
protected AbstractOutputProcessor() throws XMLSecurityException
XMLSecurityException
public void setXMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
OutputProcessor
setXMLSecurityProperties
in interface OutputProcessor
public void setAction(XMLSecurityConstants.Action action)
OutputProcessor
setAction
in interface OutputProcessor
public void init(OutputProcessorChain outputProcessorChain) throws XMLSecurityException
OutputProcessor
init
in interface OutputProcessor
XMLSecurityException
public XMLSecurityConstants.Phase getPhase()
OutputProcessor
getPhase
in interface OutputProcessor
public void setPhase(XMLSecurityConstants.Phase phase)
public void addBeforeProcessor(Object processor)
OutputProcessor
addBeforeProcessor
in interface OutputProcessor
public Set<Object> getBeforeProcessors()
OutputProcessor
getBeforeProcessors
in interface OutputProcessor
public void addAfterProcessor(Object processor)
OutputProcessor
addAfterProcessor
in interface OutputProcessor
public Set<Object> getAfterProcessors()
OutputProcessor
getAfterProcessors
in interface OutputProcessor
public XMLSecurityProperties getSecurityProperties()
public XMLSecurityConstants.Action getAction()
public void doFinal(OutputProcessorChain outputProcessorChain) throws XMLStreamException, XMLSecurityException
OutputProcessor
doFinal
in interface OutputProcessor
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurspublic XMLSecStartElement addAttributes(XMLSecStartElement xmlSecStartElement, List<XMLSecAttribute> attributeList) throws XMLStreamException
XMLStreamException
public 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.