public class OutputProcessorChainImpl extends Object implements OutputProcessorChain
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
isDebugEnabled |
protected static org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
|
OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext) |
|
OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext,
DocumentContextImpl documentContext) |
protected |
OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext,
DocumentContextImpl documentContextImpl,
int startPos,
List<OutputProcessor> outputProcessors) |
|
OutputProcessorChainImpl(OutboundSecurityContext outboundSecurityContext,
int startPos) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected static final transient org.slf4j.Logger log
protected static final transient boolean isDebugEnabled
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)
public void reset()
ProcessorChainreset in interface ProcessorChainpublic OutboundSecurityContext getSecurityContext()
OutputProcessorChaingetSecurityContext in interface OutputProcessorChainpublic DocumentContext getDocumentContext()
OutputProcessorChaingetDocumentContext in interface OutputProcessorChainpublic void addProcessor(OutputProcessor newOutputProcessor)
OutputProcessorChainaddProcessor in interface OutputProcessorChainnewOutputProcessor - The OutputProcessor which should be placed in the chainpublic void removeProcessor(OutputProcessor outputProcessor)
OutputProcessorChainremoveProcessor in interface OutputProcessorChainoutputProcessor - to removepublic List<OutputProcessor> getProcessors()
OutputProcessorChaingetProcessors in interface OutputProcessorChainpublic void processEvent(XMLSecEvent xmlSecEvent) throws XMLStreamException, XMLSecurityException
OutputProcessorChainprocessEvent in interface OutputProcessorChainxmlSecEvent - The XMLEvent which should be forwarded to the next processorXMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occurspublic void doFinal()
throws XMLStreamException,
XMLSecurityException
ProcessorChaindoFinal in interface ProcessorChainXMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occurspublic OutputProcessorChain createSubChain(OutputProcessor outputProcessor) throws XMLStreamException, XMLSecurityException
OutputProcessorChaincreateSubChain in interface OutputProcessorChainoutputProcessor - The OutputProcessor position the XMLEvents should be processed over this SubChain.XMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occurspublic OutputProcessorChain createSubChain(OutputProcessor outputProcessor, XMLSecStartElement parentXMLSecStartElement) throws XMLStreamException, XMLSecurityException
createSubChain in interface OutputProcessorChainXMLStreamExceptionXMLSecurityExceptionCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.