org.mule.interceptors
Class JXPathNormalizerInterceptor

java.lang.Object
  extended byorg.mule.interceptors.MessageNormalizerInterceptor
      extended byorg.mule.interceptors.JXPathNormalizerInterceptor
All Implemented Interfaces:
UMOInterceptor

public class JXPathNormalizerInterceptor
extends MessageNormalizerInterceptor

JXPathNormalizerInterceptor can be used as a simple pre/post message transformer for a given component.

Users can set JXPath expressions to execute before and after the component reeives the event. The beforeExpressions can be a single expression or a comma separated list of expressions, each of which result in an object that will be used as an argument to the method called on the component. The afterExpression is a single expression that will be used to set a value on the orginal payload.

Version:
$Revision: 1.1.1.1 $
Author:
Ross Mason

Constructor Summary
JXPathNormalizerInterceptor()
           
 
Method Summary
 UMOMessage after(Invocation invocation)
          This method is invoked after the event has been processed
 UMOMessage before(Invocation invocation)
          This method is invoked before the event is processed
 java.lang.String getAfterExpression()
           
 java.lang.String getBeforeExpressions()
           
 void setAfterExpression(java.lang.String afterExpression)
           
 void setBeforeExpressions(java.lang.String beforeExpressions)
           
 
Methods inherited from class org.mule.interceptors.MessageNormalizerInterceptor
getOriginalPayload, intercept, setOriginalPayload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JXPathNormalizerInterceptor

public JXPathNormalizerInterceptor()
Method Detail

before

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

Specified by:
before in class MessageNormalizerInterceptor
Parameters:
invocation - the message invocation being processed
Throws:
UMOException

after

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

Specified by:
after in class MessageNormalizerInterceptor
Parameters:
invocation - the message invocation being processed
Throws:
UMOException

getBeforeExpressions

public java.lang.String getBeforeExpressions()

setBeforeExpressions

public void setBeforeExpressions(java.lang.String beforeExpressions)

getAfterExpression

public java.lang.String getAfterExpression()

setAfterExpression

public void setAfterExpression(java.lang.String afterExpression)


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