|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xml.security.stax.impl.OutputProcessorChainImpl
public class OutputProcessorChainImpl
Implementation of a OutputProcessorChain
| Field Summary | |
|---|---|
protected static boolean |
isDebugEnabled
|
protected static org.slf4j.Logger |
log
|
| Constructor Summary | |
|---|---|
|
OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext)
|
|
OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext,
DocumentContextImpl documentContext)
|
protected |
OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext,
DocumentContextImpl documentContextImpl,
int startPos,
List<OutputProcessor> outputProcessors)
|
|
OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext,
int startPos)
|
| Method Summary | |
|---|---|
void |
addProcessor(OutputProcessor newOutputProcessor)
Adds an OutputProcessor to the chain. |
OutputProcessorChain |
createSubChain(OutputProcessor outputProcessor)
Create a new SubChain. |
OutputProcessorChain |
createSubChain(OutputProcessor outputProcessor,
XMLSecStartElement parentXMLSecStartElement)
|
void |
doFinal()
Will finally be called when the whole document is processed Important note: Every processor in the chain has to call doFinal() in its own doFinal() method. |
DocumentContext |
getDocumentContext()
The actual processed document's document context |
List<OutputProcessor> |
getProcessors()
Returns a list with the active processors. |
OutboundSecurityContext |
getSecurityContext()
The actual processed document's security context |
void |
processEvent(XMLSecEvent xmlSecEvent)
Forwards the XMLEvent to the next processor in the chain. |
void |
removeProcessor(OutputProcessor outputProcessor)
Removes the specified OutputProcessor from this chain. |
void |
reset()
resets the chain so that the next event will go again to the first processor in the chain. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final transient org.slf4j.Logger log
protected static final transient boolean isDebugEnabled
| Constructor Detail |
|---|
public OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext)
public OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext,
int startPos)
public OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext,
DocumentContextImpl documentContext)
protected OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext,
DocumentContextImpl documentContextImpl,
int startPos,
List<OutputProcessor> outputProcessors)
| Method Detail |
|---|
public void reset()
ProcessorChain
reset in interface ProcessorChainpublic OutboundSecurityContext getSecurityContext()
OutputProcessorChain
getSecurityContext in interface OutputProcessorChainpublic DocumentContext getDocumentContext()
OutputProcessorChain
getDocumentContext in interface OutputProcessorChainpublic void addProcessor(OutputProcessor newOutputProcessor)
OutputProcessorChain
addProcessor in interface OutputProcessorChainnewOutputProcessor - The OutputProcessor which should be placed in the chainpublic void removeProcessor(OutputProcessor outputProcessor)
OutputProcessorChain
removeProcessor in interface OutputProcessorChainoutputProcessor - to removepublic List<OutputProcessor> getProcessors()
OutputProcessorChain
getProcessors in interface OutputProcessorChain
public void processEvent(XMLSecEvent xmlSecEvent)
throws XMLStreamException,
XMLSecurityException
OutputProcessorChain
processEvent in interface OutputProcessorChainxmlSecEvent - The XMLEvent which should be forwarded to the next processor
XMLStreamException - thrown when a streaming error occurs
XMLSecurityException - thrown when a Security failure occurs
public void doFinal()
throws XMLStreamException,
XMLSecurityException
ProcessorChain
doFinal in interface ProcessorChainXMLStreamException - thrown when a streaming error occurs
XMLSecurityException - thrown when a Security failure occurs
public OutputProcessorChain createSubChain(OutputProcessor outputProcessor)
throws XMLStreamException,
XMLSecurityException
OutputProcessorChain
createSubChain in interface OutputProcessorChainoutputProcessor - The OutputProcessor position the XMLEvents should be processed over this SubChain.
XMLStreamException - thrown when a streaming error occurs
XMLSecurityException - thrown when a Security failure occurs
public OutputProcessorChain createSubChain(OutputProcessor outputProcessor,
XMLSecStartElement parentXMLSecStartElement)
throws XMLStreamException,
XMLSecurityException
createSubChain in interface OutputProcessorChainXMLStreamException
XMLSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||