public class InputProcessorChainImpl extends Object implements InputProcessorChain
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Modifier | Constructor and Description |
|---|---|
|
InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext) |
|
InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext,
DocumentContextImpl documentContext) |
protected |
InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext,
DocumentContextImpl documentContextImpl,
int startPos,
List<InputProcessor> inputProcessors) |
|
InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext,
int startPos) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(InputProcessor newInputProcessor)
Adds an InputProcessor to the chain.
|
InputProcessorChain |
createSubChain(InputProcessor inputProcessor)
Create a new SubChain.
|
InputProcessorChain |
createSubChain(InputProcessor inputProcessor,
boolean clone)
Create a new SubChain.
|
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<InputProcessor> |
getProcessors()
Returns a list with the active processors.
|
InboundSecurityContext |
getSecurityContext()
The actual processed document's security context
|
XMLSecEvent |
processEvent()
Requests the next XMLEvent from the next processor in the chain.
|
XMLSecEvent |
processHeaderEvent()
Requests the next security header XMLEvent from the next processor in the chain.
|
void |
removeProcessor(InputProcessor inputProcessor)
Removes the specified InputProcessor from this chain.
|
void |
reset()
resets the chain so that the next event will go again to the first processor in the chain.
|
public InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext)
public InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext, int startPos)
public InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext, DocumentContextImpl documentContext)
protected InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext, DocumentContextImpl documentContextImpl, int startPos, List<InputProcessor> inputProcessors)
public void reset()
ProcessorChainreset in interface ProcessorChainpublic InboundSecurityContext getSecurityContext()
InputProcessorChaingetSecurityContext in interface InputProcessorChainpublic DocumentContext getDocumentContext()
InputProcessorChaingetDocumentContext in interface InputProcessorChainpublic void addProcessor(InputProcessor newInputProcessor)
InputProcessorChainaddProcessor in interface InputProcessorChainnewInputProcessor - The InputProcessor which should be placed in the chainpublic void removeProcessor(InputProcessor inputProcessor)
InputProcessorChainremoveProcessor in interface InputProcessorChaininputProcessor - to removepublic List<InputProcessor> getProcessors()
InputProcessorChaingetProcessors in interface InputProcessorChainpublic XMLSecEvent processHeaderEvent() throws XMLStreamException, XMLSecurityException
InputProcessorChainprocessHeaderEvent in interface InputProcessorChainXMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occurspublic XMLSecEvent processEvent() throws XMLStreamException, XMLSecurityException
InputProcessorChainprocessEvent in interface InputProcessorChainXMLStreamException - 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 InputProcessorChain createSubChain(InputProcessor inputProcessor) throws XMLStreamException, XMLSecurityException
InputProcessorChaincreateSubChain in interface InputProcessorChaininputProcessor - The InputProcessor position the XMLEvents should be processed over this SubChain.XMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occurspublic InputProcessorChain createSubChain(InputProcessor inputProcessor, boolean clone) throws XMLStreamException, XMLSecurityException
InputProcessorChaincreateSubChain in interface InputProcessorChaininputProcessor - The InputProcessor position the XMLEvents should be processed over this SubChain.clone - if true the associated DocumentContext will be cloned otherwise the DocumentContext will be referenced.XMLStreamException - thrown when a streaming error occursXMLSecurityException - thrown when a Security failure occursCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.