Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.api.interceptor
Interface Interceptor

All Known Implementing Classes:
  AbstractComponent, AbstractJavaComponent, AbstractWebServiceWrapperComponent, DefaultJavaComponent, EnvelopeInterceptor, InterceptorStack, JcaComponent, LoggingInterceptor, PassThroughComponent, PooledJavaComponent, ProcessComponent, RestServiceWrapper, ScriptComponent, SimpleCallableJavaComponent, TimerInterceptor, WebServiceWrapperComponent, WebServiceWrapperComponent

    public interface Interceptor

`Interceptor` is based on a similar concept of servlet filters and works much the same way. This method is more commonally known as the interceptor pattern and it allows for pre and processing of invocations on the object being intercepted.

Method Summary
`MuleMessage` | `intercept(Invocation invocation)` Invoked when the component should be called.

Method Detail

### intercept

    MuleMessage intercept(Invocation invocation)
                          throws MuleException

  Invoked when the component should be called. The implementation can call `Invocation.invoke()` to call the component.

  Parameters:
    `invocation` - the invocation containing info about the current message and service
  Returns:
    A result message that may have been altered by this invocation
  Throws:
    `MuleException` - if the invocation fails

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.