Module org.apache.santuario.xmlsec
Package org.apache.xml.security.stax.ext
Class AbstractInputProcessor
- java.lang.Object
-
- org.apache.xml.security.stax.ext.AbstractInputProcessor
-
- All Implemented Interfaces:
InputProcessor
public abstract class AbstractInputProcessor extends Object implements InputProcessor
An abstract InputProcessor class for reusabilty
-
-
Constructor Summary
Constructors Constructor Description AbstractInputProcessor(XMLSecurityProperties securityProperties)
-
Method Summary
All Methods Instance Methods Concrete 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 appliedAttributegetReferenceIDAttribute(org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement)XMLSecurityPropertiesgetSecurityProperties()voidsetPhase(XMLSecurityConstants.Phase phase)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.xml.security.stax.ext.InputProcessor
processEvent, processHeaderEvent
-
-
-
-
Constructor Detail
-
AbstractInputProcessor
public AbstractInputProcessor(XMLSecurityProperties securityProperties)
-
-
Method Detail
-
getPhase
public XMLSecurityConstants.Phase getPhase()
Description copied from interface:InputProcessorThe Phase in which this InputProcessor should be applied- Specified by:
getPhasein interfaceInputProcessor- Returns:
- The Phase
-
setPhase
public void setPhase(XMLSecurityConstants.Phase phase)
-
addBeforeProcessor
public void addBeforeProcessor(Object processor)
Description copied from interface:InputProcessorAdd this processor before the given processor- Specified by:
addBeforeProcessorin interfaceInputProcessor
-
getBeforeProcessors
public Set<Object> getBeforeProcessors()
Description copied from interface:InputProcessorThis InputProcessor will be added before the processors in this set- Specified by:
getBeforeProcessorsin interfaceInputProcessor- Returns:
- The set with the named InputProcessors
-
addAfterProcessor
public void addAfterProcessor(Object processor)
Description copied from interface:InputProcessorAdd this processor after the given processor- Specified by:
addAfterProcessorin interfaceInputProcessor
-
getAfterProcessors
public Set<Object> getAfterProcessors()
Description copied from interface:InputProcessorThis InputProcessor will be added after the processors in this set- Specified by:
getAfterProcessorsin interfaceInputProcessor- Returns:
- The set with the named InputProcessors
-
doFinal
public void doFinal(InputProcessorChain inputProcessorChain) throws XMLStreamException, XMLSecurityException
Description copied from interface:InputProcessorWill be called when the whole document is processed.- Specified by:
doFinalin interfaceInputProcessor- Throws:
XMLStreamException- thrown when a streaming error occursXMLSecurityException- thrown when a Security failure occurs
-
getSecurityProperties
public XMLSecurityProperties getSecurityProperties()
-
getReferenceIDAttribute
public Attribute getReferenceIDAttribute(org.apache.xml.security.stax.ext.stax.XMLSecStartElement xmlSecStartElement)
-
-