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.
相关推荐
XMPP(Extensible Messaging and Presence Protocol)是一种开源的即时通讯(IM)协议,它基于可扩展标记语言(XML)的特性,提供接近实时的数据交换能力,适用于任何两个或多个网络实体之间。XMPP最初由IETF...
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 ...
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...
《(2003 Wiley)Mobile Messaging Technologies and Services:SMS,EMS and MMS》是一部深入探讨移动消息技术和服务的专业著作,主要聚焦于短信(SMS)、增强型消息服务(EMS)和多媒体消息服务(MMS)这三种早期的...
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
- **定义与发展**:增强型信息服务(Enhanced Messaging Service,简称EMS)是在SMS基础上发展起来的一种技术,旨在提供比SMS更丰富的消息体验。它允许用户发送带有更多表情符号、音调和简单图像的消息。 - **工作...
移动消息:短信,彩信等
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
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 ...
赠送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-...
Lotus公司的即时通讯和网络会议软件(Lotus Instant Messaging and Web Conferencing)的前身是Lotus Sametime,多年以来在商用IM领域中一直是独占鳌头。它具有丰富的功能和互操作性。支持跨平台,可提高个人和团队...
Flex Messaging系列JAR包是Adobe Flex与Java之间进行通信的核心组件,主要负责建立富互联网应用程序(RIA)与服务器之间的消息传递。这些JAR文件包含了多种服务和协议的支持,使得Flex客户端能够与Java后端无缝交互...
Lotus Instant Messaging and Web Conferencing Links Toolkit 是一个用于开发即时通讯和网络会议应用的工具集。这个工具包可能包含了各种控件、源码以及相关的资源,帮助开发者构建功能丰富的在线交流平台。 即时...
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 ...
Spring Boot Messaging: Messaging APIs for Enterprise and Integration Solutions by Felipe Gutierrez English | 5 Jun. 2017 | ISBN: 1484212258 | 196 Pages | PDF | 6.36 MB Build messaging applications ...