org.apache.xml.security.stax.ext
Interface OutputProcessor

All Known Implementing Classes:
AbstractBufferingOutputProcessor, AbstractEncryptEndingOutputProcessor, AbstractEncryptOutputProcessor, AbstractEncryptOutputProcessor.AbstractInternalEncryptionOutputProcessor, AbstractOutputProcessor, AbstractSignatureEndingOutputProcessor, AbstractSignatureEndingOutputProcessor.SignedInfoProcessor, AbstractSignatureOutputProcessor, AbstractSignatureOutputProcessor.InternalSignatureOutputProcessor, FinalOutputProcessor, XMLEncryptOutputProcessor, XMLSignatureEndingOutputProcessor, XMLSignatureOutputProcessor

public interface OutputProcessor

This is the Interface which every OutputProcessor must implement.

Version:
$Revision: 1395267 $ $Date: 2012-10-07 11:02:46 +0100 (Sun, 07 Oct 2012) $
Author:
$Author: giger $

Method Summary
 void addAfterProcessor(Object processor)
          Add this processor after the given processor
 void addBeforeProcessor(Object processor)
          Add this processor before the given processor
 void doFinal(OutputProcessorChain outputProcessorChain)
          Will be called when the whole document is processed.
 Set<Object> getAfterProcessors()
          This OutputProcessor will be added after the processors in this set
 Set<Object> getBeforeProcessors()
          This OutputProcessor will be added before the processors in this set
 XMLSecurityConstants.Phase getPhase()
          The Phase in which this OutputProcessor should be applied
 void init(OutputProcessorChain outputProcessorChain)
          Method will be called after setting the properties
 void processNextEvent(XMLSecEvent xmlSecEvent, OutputProcessorChain outputProcessorChain)
          Will be called from the framework for every XMLEvent
 void setAction(XMLSecurityConstants.Action action)
          setter for the Action after instantiation of the processor
 void setXMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
          setter for the XMLSecurityProperties after instantiation of the processor
 

Method Detail

setXMLSecurityProperties

void setXMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
setter for the XMLSecurityProperties after instantiation of the processor

Parameters:
xmlSecurityProperties -

setAction

void setAction(XMLSecurityConstants.Action action)
setter for the Action after instantiation of the processor

Parameters:
action -

init

void init(OutputProcessorChain outputProcessorChain)
          throws XMLSecurityException
Method will be called after setting the properties

Throws:
XMLSecurityException

addBeforeProcessor

void addBeforeProcessor(Object processor)
Add this processor before the given processor

Parameters:
processor -

getBeforeProcessors

Set<Object> getBeforeProcessors()
This OutputProcessor will be added before the processors in this set

Returns:
The set with the named OutputProcessor

addAfterProcessor

void addAfterProcessor(Object processor)
Add this processor after the given processor

Parameters:
processor -

getAfterProcessors

Set<Object> getAfterProcessors()
This OutputProcessor will be added after the processors in this set

Returns:
The set with the named OutputProcessor

getPhase

XMLSecurityConstants.Phase getPhase()
The Phase in which this OutputProcessor should be applied

Returns:
The Phase

processNextEvent

void processNextEvent(XMLSecEvent xmlSecEvent,
                      OutputProcessorChain outputProcessorChain)
                      throws XMLStreamException,
                             XMLSecurityException
Will be called from the framework for every XMLEvent

Parameters:
xmlSecEvent - The next XMLEvent to process
outputProcessorChain -
Throws:
XMLStreamException - thrown when a streaming error occurs
XMLSecurityException - thrown when a Security failure occurs

doFinal

void doFinal(OutputProcessorChain outputProcessorChain)
             throws XMLStreamException,
                    XMLSecurityException
Will be called when the whole document is processed.

Parameters:
outputProcessorChain -
Throws:
XMLStreamException - thrown when a streaming error occurs
XMLSecurityException - thrown when a Security failure occurs


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.