org.mule.interceptors
Class EnvelopeInterceptor

java.lang.Object
  extended byorg.mule.interceptors.EnvelopeInterceptor
All Implemented Interfaces:
UMOInterceptor
Direct Known Subclasses:
LoggingInterceptor

public abstract class EnvelopeInterceptor
extends java.lang.Object
implements UMOInterceptor

EnvelopeInterceptor is an intercepter that will fire before and after an event is received.

Version:
$Revision: 1.2 $
Author:
Ross Mason

Constructor Summary
EnvelopeInterceptor()
           
 
Method Summary
abstract  void after(Invocation invocation)
          This method is invoked after the event has been processed
abstract  void before(Invocation invocation)
          This method is invoked before the event is processed
 UMOMessage intercept(Invocation invocation)
          Invoked by the previous interceptor in the chain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvelopeInterceptor

public EnvelopeInterceptor()
Method Detail

before

public abstract void before(Invocation invocation)
                     throws UMOException
This method is invoked before the event is processed

Parameters:
invocation - the message invocation being processed
Throws:
UMOException

after

public abstract void after(Invocation invocation)
                    throws UMOException
This method is invoked after the event has been processed

Parameters:
invocation - the message invocation being processed
Throws:
UMOException

intercept

public final UMOMessage intercept(Invocation invocation)
                           throws UMOException
Description copied from interface: UMOInterceptor
Invoked by the previous interceptor in the chain

Specified by:
intercept in interface UMOInterceptor
Parameters:
invocation - the invocation containing info about the current message and component
Returns:
A result message that may have been altered by this invocation
Throws:
UMOException - if the invocation fails


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.