Index Changes

Difference between version and version     

Back to Fuji Interceptors, or Fuji Interceptors Info


At line 1 added 1 line.
[{Image src='fuji-logo8.gif' link='https://fuji.dev.java.net/' alt='Fuji Home' align='left'}]
At line 7 changed 1 line.
!! How to write a interceptor :
!! How to write an interceptor :
At line 11 changed 1 line.
# Has a single parameter of type com.sun.jbi.framework.osgi.ServiceMessage OR javax.jbi.messaging.MessageExchange OR java.util.Properties. Based on the parameter type the method intercepts : Messages, Message Exchanges or Message Properties.
# Has a single parameter. Based on the parameter type the method intercepts : Messages, Message Exchanges or Message Payloads. For instance if the parameter type is javax.jbi.messaging. MessageExchange then the method intercepts the exchange if the type is java.lang.String and the Message has an Object payload of type java.lang.String then the method intercepts the payload. If the parameter type does not match any of the message exchange content, then the interceptor method will not be invoked.
At line 28 changed 1 line.
@Intercept
@Intercept()
At line 35 changed 1 line.
@Intercept
@Intercept()
At line 42 changed 1 line.
@Intercept
@Intercept()
At line 50 changed 1 line.
@Intercept
@Intercept()
At line 54 removed 5 lines.
* A read-only message properties interceptor
{{{
@Intercept
public void myInterceptorMethod(Properties msgProperties)%%
}}}
At line 60 removed 1 line.
At line 70 changed 1 line.
public void myInterceptorMethod(Properties msgProperties)
public void myInterceptorMethod(MessageExchange exchange)
At line 77 changed 1 line.
Since there will be many such interceptor methods defined, and one interceptor might need to be called before another. For example a message needs to be decrypted befor validating the signature, in this case a higher priority can be assigned to the decryption interceptor method, by specifying the priority on the Intercept Annotation :
Since there will be many such interceptor methods defined, and one interceptor might need to be called before another. For example a message needs to be decrypted before validating the signature, in this case a higher priority can be assigned to the decryption interceptor method, by specifying the priority on the Intercept Annotation :
At line 82 changed 1 line.
@Intercept (priority="10")
@Intercept (priority="0")
At line 85 changed 1 line.
@Intercept (priority="9")
@Intercept (priority="1")
At line 91 changed 1 line.
The values for priority are in the range [ 0 .. Integer.MAX_VALUE ], with 0 being the highest priority and Integer.MAX_VALUE being the lowest. The default priority if not specified is 100.
At line 106 changed 1 line.
int priority() default 0;
int priority() default 100;
At line 135 changed 1 line.
!Interceptor Wrapper
![ Interceptor Wrapper | http://wiki.open-esb.java.net/attach/FujiInterceptors/InterceptorWrapper.java ]
At line 144 removed 2 lines.

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-18) was last changed on 02-Oct-08 22:23 PM, -0700 by Mark Saunders