org.mule.api.interceptor
Interface Interceptor
- All Superinterfaces:
- InterceptingMessageProcessor, MessageProcessor, MessageSource
- All Known Implementing Classes:
- AbstractEnvelopeInterceptor, InterceptorStack, LoggingInterceptor, ProcessingTimeInterceptor, TimerInterceptor
public interface Interceptor
- extends InterceptingMessageProcessor
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.
process
MuleEvent process(MuleEvent event)
throws MuleException
- Invoked when the component should be called. The implementation can call
next.process(event) to call the component or the next filer in the chain.
- Specified by:
process
in interface MessageProcessor
- Parameters:
event
- the event 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
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.