|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.security.stax.ext.AbstractOutputProcessor
public abstract class AbstractOutputProcessor
An abstract OutputProcessor class for reusabilty
| Field Summary | |
|---|---|
protected XMLSecurityConstants.Action |
action
|
protected XMLSecurityProperties |
securityProperties
|
| Constructor Summary | |
|---|---|
protected |
AbstractOutputProcessor()
|
| Method Summary | |
|---|---|
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)
|
abstract void |
processEvent(XMLSecEvent xmlSecEvent,
OutputProcessorChain outputProcessorChain)
|
void |
processNextEvent(XMLSecEvent xmlSecEvent,
OutputProcessorChain outputProcessorChain)
Will be called from the framework for every XMLEvent |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XMLSecurityProperties securityProperties
protected XMLSecurityConstants.Action action
| Constructor Detail |
|---|
protected AbstractOutputProcessor()
throws XMLSecurityException
XMLSecurityException| Method Detail |
|---|
public void setXMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
OutputProcessor
setXMLSecurityProperties in interface OutputProcessorpublic void setAction(XMLSecurityConstants.Action action)
OutputProcessor
setAction in interface OutputProcessor
public void init(OutputProcessorChain outputProcessorChain)
throws XMLSecurityException
OutputProcessor
init in interface OutputProcessorXMLSecurityExceptionpublic XMLSecurityConstants.Phase getPhase()
OutputProcessor
getPhase in interface OutputProcessorpublic void setPhase(XMLSecurityConstants.Phase phase)
public void addBeforeProcessor(Object processor)
OutputProcessor
addBeforeProcessor in interface OutputProcessorpublic Set<Object> getBeforeProcessors()
OutputProcessor
getBeforeProcessors in interface OutputProcessorpublic void addAfterProcessor(Object processor)
OutputProcessor
addAfterProcessor in interface OutputProcessorpublic Set<Object> getAfterProcessors()
OutputProcessor
getAfterProcessors in interface OutputProcessorpublic XMLSecurityProperties getSecurityProperties()
public XMLSecurityConstants.Action getAction()
public abstract void processEvent(XMLSecEvent xmlSecEvent,
OutputProcessorChain outputProcessorChain)
throws XMLStreamException,
XMLSecurityException
XMLStreamException
XMLSecurityException
public void processNextEvent(XMLSecEvent xmlSecEvent,
OutputProcessorChain outputProcessorChain)
throws XMLStreamException,
XMLSecurityException
OutputProcessor
processNextEvent in interface OutputProcessorxmlSecEvent - The next XMLEvent to process
XMLStreamException - thrown when a streaming error occurs
XMLSecurityException - thrown when a Security failure occurs
public void doFinal(OutputProcessorChain outputProcessorChain)
throws XMLStreamException,
XMLSecurityException
OutputProcessor
doFinal in interface OutputProcessorXMLStreamException - thrown when a streaming error occurs
XMLSecurityException - thrown when a Security failure occurs
public 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
XMLStreamException
XMLSecurityException
public XMLSecStartElement createStartElementAndOutputAsEvent(OutputProcessorChain outputProcessorChain,
QName element,
boolean outputLocalNs,
List<XMLSecAttribute> attributes)
throws XMLStreamException,
XMLSecurityException
XMLStreamException
XMLSecurityExceptionpublic XMLSecEndElement createEndElement(QName element)
public void createEndElementAndOutputAsEvent(OutputProcessorChain outputProcessorChain,
QName element)
throws XMLStreamException,
XMLSecurityException
XMLStreamException
XMLSecurityException
public void createCharactersAndOutputAsEvent(OutputProcessorChain outputProcessorChain,
String characters)
throws XMLStreamException,
XMLSecurityException
XMLStreamException
XMLSecurityException
public void createCharactersAndOutputAsEvent(OutputProcessorChain outputProcessorChain,
char[] text)
throws XMLStreamException,
XMLSecurityException
XMLStreamException
XMLSecurityExceptionpublic 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
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
XMLStreamException
XMLSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||