Messaging and Interceptors
One of the important elements of CXF architecture is the Interceptor components.
Interceptors are components that intercept the messages exchanged or passed
between web service clients and server components. In CXF, this is implemented
through the concept of Interceptor chains. The concept of Interceptor chaining is
the core functionality of CXF runtime.
The interceptors act on the messages which are sent and received from the web
service and are processed in chains. Each interceptor in a chain is configurable, and
the user has the ability to control its execution.
The core of the framework is the Interceptor interface. It defines two abstract
methods—handleMessage and handleFault. Each of the methods takes the object
of type Message as a parameter. A developer implements the handleMessage to
process or act upon the message. The handleFault method is implemented to
handle the error condition. Interceptors are usually processed in chains with every
interceptor in the chain performing some processing on the message in sequence,
and the chain moves forward. Whenever an error condition arises, a handleFault
method is invoked on each interceptor, and the chain unwinds or moves backwards.
Interceptors are often organized or grouped into phases. Interceptors providing
common functionality can be grouped into one phase. Each phase performs specific
message processing. Each phase is then added to the interceptor chain. The chain,
therefore, is a list of ordered interceptor phases. The chain can be created for both
inbound and outbound messages. A typical web service endpoint will have three
interceptor chains:
• Inbound messages chain
• Outbound messages chain
• Error messages chain
There are built-in interceptors such as logging, security, and so on, and the
developers can also choose to create custom interceptors.
相关推荐
Extensible Messaging and Presence Protocol (XMPP)_ Core
The Server-side Java market has exploded and use of messaging as a means of integrating applications and processes is as strong, if not stronger, than ever. This book offers a customer-focused ...
(2003 Wiley)Mobile Messaging Technologies and Services:SMS,EMS and MMS.rar
extensible messaging and presence protocol xmpp co.pdf
Learn how to use messaging technologies to build responsive and resilient applications for mobile devices and web browsers. With this hands-on guide, you’ll use the STOMP and MQTT messaging protocols...
Lotus.Instant.Messaging.and.Web.Conferencing.Data.and.Directory.Access.Toolkit.v6.5.1-ACMELotus公司的即时通讯和网络会议软件(Lotus Instant Messaging and Web Conferencing)的前身是Lotus Sametime,多年...
Lotus公司的即时通讯和网络会议软件(Lotus Instant Messaging and Web Conferencing)的前身是Lotus Sametime,多年以来在商用IM领域中一直是独占鳌头。它具有丰富的功能和互操作性。支持跨平台,可提高个人和团队...
Enterprise.Integration.Patterns.Designing.Building.And.Deploying.Messaging.Solutions
移动消息:短信,彩信等
Exactly Once Delivery and Transactional Messaging in Kafka
Lotus.Instant.Messaging.and.Web.Conferencing.Java.Toolkit.v6.5.1-ACMELotus公司的即时通讯和网络会议软件(Lotus Instant Messaging and Web Conferencing)的前身是Lotus Sametime,多年以来在商用IM领域中一直...
Mobile Messaging Technologies and Services SMS EMS and MMS 2nd Edition.pdf
介绍移动通信SMS、EMS、MMS的一本书,非常详尽,不用到处找规范文档了。
The Server-side Java market has exploded and use of messaging as a means of integrating applications and processes is as strong, if not stronger, than ever. This book offers a customer-focused ...
Lotus公司的即时通讯和网络会议软件(Lotus Instant Messaging and Web Conferencing)的前身是Lotus Sametime,多年以来在商用IM领域中一直是独占鳌头。它具有丰富的功能和互操作性。支持跨平台,可提高个人和团队...
赠送jar包:spring-messaging-5.0.8.RELEASE.jar; 赠送原API文档:spring-messaging-5.0.8.RELEASE-javadoc.jar; 赠送源代码:spring-messaging-5.0.8.RELEASE-sources.jar; 赠送Maven依赖信息文件:spring-...
John Wiley & Sons - Mobile Messaging Technologies And Services Sms, Ems And Mms
nstant messaging apps like Whatsapp, Kik Messenger, and Snapchat are hot right now and there are some existing instant messaging protocols that could be used to build your own Delphi XE6 Firemonkey ...