|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.interceptors.MessageNormalizerInterceptor
MessageNormalizerInterceptor
can be used as a simple pre/post
message normalizer for a given component.
This is useful in situations where you have an existing component that may
accept a one or more child objects of the incoming object. For example, you may
Have a BankQuoteRequest object that contains customer, credit and loan details, but
one component is only interested in enriching the customer information. Rather than
have your component understand how to deal with a BankLoanRequest this interceptor
can be used to extract the customer and pass that to the component. Once the component
have finshed processing this interceptor update the BankLoanRequest with the new customer
information.
Constructor Summary | |
MessageNormalizerInterceptor()
|
Method Summary | |
abstract UMOMessage |
after(Invocation invocation)
This method is invoked after the event has been processed |
abstract UMOMessage |
before(Invocation invocation)
This method is invoked before the event is processed |
protected java.lang.Object |
getOriginalPayload()
|
UMOMessage |
intercept(Invocation invocation)
Invoked by the previous interceptor in the chain |
protected void |
setOriginalPayload(java.lang.Object originalPayload)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageNormalizerInterceptor()
Method Detail |
public abstract UMOMessage before(Invocation invocation) throws UMOException
invocation
- the message invocation being processed
UMOException
public abstract UMOMessage after(Invocation invocation) throws UMOException
invocation
- the message invocation being processed
UMOException
public final UMOMessage intercept(Invocation invocation) throws UMOException
UMOInterceptor
intercept
in interface UMOInterceptor
invocation
- the invocation containing info about the current message and component
UMOException
- if the invocation failsprotected java.lang.Object getOriginalPayload()
protected void setOriginalPayload(java.lang.Object originalPayload)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |