Skip to content
peacekeeper edited this page Jul 31, 2012 · 18 revisions

Interceptors are an important concept of the xdi2-messaging and xdi2-server components. They are used as an extensibility mechanism to augment the functionality of the server. For example, they can be used to implement security checks or trigger actions when certain events occur. They may also contribute data to the result of a message, however this is not their main purpose.

Implementation and Use of Interceptors

The interceptors of the xdi2-messaging component can augment the functionality of messaging targets. The EndpointServletInterceptor of the xdi2-server-logic component can augment the functionality to the endpoint servlet.

A single class can implement multiple interceptor interfaces. For example, an interceptor might need to be called before each message is executed, and when an operation is executed on an XDI statement or an XDI address. Therefore, this interceptor would implement the MessageInterceptor and the TargetInterceptor interfaces.

Interfaces and Classes

Clone this wiki locally