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

All Known Subinterfaces:
InputProcessorChain, OutputProcessorChain
All Known Implementing Classes:
InputProcessorChainImpl, OutputProcessorChainImpl

public interface ProcessorChain

Basic interface for Output- and Input-Processor chains

Version:
$Revision: 1544623 $ $Date: 2013-11-22 18:05:02 +0000 (Fri, 22 Nov 2013) $
Author:
$Author: giger $

Method Summary
 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.
 void reset()
          resets the chain so that the next event will go again to the first processor in the chain.
 

Method Detail

reset

void reset()
resets the chain so that the next event will go again to the first processor in the chain.


doFinal

void doFinal()
             throws XMLStreamException,
                    XMLSecurityException
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. InputProcessors should call it before doing other stuff to keep the processing order. Remember the input-chain is in principle processed in the reverse order since we "leech" the events through the chain. So that means that we should do the same for the doFinal method, otherwise we may run into troubles.

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.