Module org.apache.santuario.xmlsec
Package org.apache.xml.security.stax.ext
Interface InputProcessor
-
- All Known Implementing Classes:
AbstractInputProcessor
public interface InputProcessorThis is the Interface which every InputProcessor must implement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAfterProcessor(Object processor)Add this processor after the given processorvoidaddBeforeProcessor(Object processor)Add this processor before the given processorvoiddoFinal(InputProcessorChain inputProcessorChain)Will be called when the whole document is processed.Set<Object>getAfterProcessors()This InputProcessor will be added after the processors in this setSet<Object>getBeforeProcessors()This InputProcessor will be added before the processors in this setXMLSecurityConstants.PhasegetPhase()The Phase in which this InputProcessor should be appliedorg.apache.xml.security.stax.ext.stax.XMLSecEventprocessEvent(InputProcessorChain inputProcessorChain)Will be called from the framework when the next XMLEvent is requestedorg.apache.xml.security.stax.ext.stax.XMLSecEventprocessHeaderEvent(InputProcessorChain inputProcessorChain)Will be called from the framework when the next security-header XMLEvent is requested
-
-
-
Method Detail
-
addBeforeProcessor
void addBeforeProcessor(Object processor)
Add this processor before the given processor- Parameters:
processor-
-
getBeforeProcessors
Set<Object> getBeforeProcessors()
This InputProcessor will be added before the processors in this set- Returns:
- The set with the named InputProcessors
-
addAfterProcessor
void addAfterProcessor(Object processor)
Add this processor after the given processor- Parameters:
processor-
-
getAfterProcessors
Set<Object> getAfterProcessors()
This InputProcessor will be added after the processors in this set- Returns:
- The set with the named InputProcessors
-
getPhase
XMLSecurityConstants.Phase getPhase()
The Phase in which this InputProcessor should be applied- Returns:
- The Phase
-
processHeaderEvent
org.apache.xml.security.stax.ext.stax.XMLSecEvent processHeaderEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
Will be called from the framework when the next security-header XMLEvent is requested- Parameters:
inputProcessorChain-- Returns:
- The next XMLSecEvent
- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
processEvent
org.apache.xml.security.stax.ext.stax.XMLSecEvent processEvent(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
Will be called from the framework when the next XMLEvent is requested- Parameters:
inputProcessorChain-- Returns:
- The next XMLSecEvent
- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
doFinal
void doFinal(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
Will be called when the whole document is processed.- Parameters:
inputProcessorChain-- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
-