|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.security.stax.impl.InputProcessorChainImpl
public class InputProcessorChainImpl
Implementation of a InputProcessorChain
Field Summary | |
---|---|
protected static boolean |
isDebugEnabled
|
protected static org.slf4j.Logger |
log
|
Constructor Summary | |
---|---|
|
InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext)
|
|
InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext,
DocumentContextImpl documentContext)
|
protected |
InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext,
DocumentContextImpl documentContextImpl,
int startPos,
List<InputProcessor> inputProcessors)
|
|
InputProcessorChainImpl(InboundSecurityContext inboundSecurityContext,
int startPos)
|
Method Summary | |
---|---|
void |
addProcessor(InputProcessor newInputProcessor)
Adds an InputProcessor to the chain. |
InputProcessorChain |
createSubChain(InputProcessor inputProcessor)
Create a new SubChain. |
void |
doFinal()
Will finally be called when the whole document is processed |
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. |
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 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)
Method Detail |
---|
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 occurs
XMLSecurityException
- thrown when a Security failure occurspublic XMLSecEvent processEvent() throws XMLStreamException, XMLSecurityException
InputProcessorChain
processEvent
in interface InputProcessorChain
XMLStreamException
- thrown when a streaming error occurs
XMLSecurityException
- thrown when a Security failure occurspublic void doFinal() throws XMLStreamException, XMLSecurityException
ProcessorChain
doFinal
in interface ProcessorChain
XMLStreamException
- thrown when a streaming error occurs
XMLSecurityException
- 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 occurs
XMLSecurityException
- thrown when a Security failure occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |