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()
ProcessorChain
reset
in interface ProcessorChain
public InboundSecurityContext getSecurityContext()
InputProcessorChain
getSecurityContext
in interface InputProcessorChain
public DocumentContext getDocumentContext()
InputProcessorChain
getDocumentContext
in interface InputProcessorChain
public void addProcessor(InputProcessor newInputProcessor)
InputProcessorChain
addProcessor
in interface InputProcessorChain
newInputProcessor
- The InputProcessor which should be placed in the chainpublic void removeProcessor(InputProcessor inputProcessor)
InputProcessorChain
removeProcessor
in interface InputProcessorChain
inputProcessor
- to removepublic List<InputProcessor> getProcessors()
InputProcessorChain
getProcessors
in interface InputProcessorChain
public XMLSecEvent processHeaderEvent() throws XMLStreamException, XMLSecurityException
InputProcessorChain
processHeaderEvent
in interface InputProcessorChain
XMLStreamException
- thrown when a streaming error occursXMLSecurityException
- thrown when a Security failure occurspublic XMLSecEvent processEvent() throws XMLStreamException, XMLSecurityException
InputProcessorChain
processEvent
in interface InputProcessorChain
XMLStreamException
- 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 InputProcessorChain createSubChain(InputProcessor inputProcessor) throws XMLStreamException, XMLSecurityException
InputProcessorChain
createSubChain
in interface InputProcessorChain
inputProcessor
- 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
InputProcessorChain
createSubChain
in interface InputProcessorChain
inputProcessor
- 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.