public class OutputProcessorChainImpl extends Object implements OutputProcessorChain
Modifier and Type | Field and Description |
---|---|
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.
|
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()
ProcessorChain
reset
in interface ProcessorChain
public OutboundSecurityContext getSecurityContext()
OutputProcessorChain
getSecurityContext
in interface OutputProcessorChain
public DocumentContext getDocumentContext()
OutputProcessorChain
getDocumentContext
in interface OutputProcessorChain
public void addProcessor(OutputProcessor newOutputProcessor)
OutputProcessorChain
addProcessor
in interface OutputProcessorChain
newOutputProcessor
- The OutputProcessor which should be placed in the chainpublic void removeProcessor(OutputProcessor outputProcessor)
OutputProcessorChain
removeProcessor
in interface OutputProcessorChain
outputProcessor
- to removepublic List<OutputProcessor> getProcessors()
OutputProcessorChain
getProcessors
in interface OutputProcessorChain
public void processEvent(XMLSecEvent xmlSecEvent) throws XMLStreamException, XMLSecurityException
OutputProcessorChain
processEvent
in interface OutputProcessorChain
xmlSecEvent
- 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
ProcessorChain
doFinal
in interface ProcessorChain
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurspublic OutputProcessorChain createSubChain(OutputProcessor outputProcessor) throws XMLStreamException, XMLSecurityException
OutputProcessorChain
createSubChain
in interface OutputProcessorChain
outputProcessor
- 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 OutputProcessorChain
XMLStreamException
XMLSecurityException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.