Interface Interceptor
-
- All Known Subinterfaces:
EventSource,HostingService,WsDiscoveryClient,WsDiscoveryTargetService
- All Known Implementing Classes:
EventSourceInterceptor,HostedServiceInterceptor,HostingServiceInterceptor,WebService,WsAddressingClientInterceptor,WsAddressingServerInterceptor,WsDiscoveryClientInterceptor,WsDiscoveryTargetServiceInterceptor
public interface InterceptorInterface to designate interceptors.Invoked methods are identified by using the
MessageInterceptorannotation. An interceptor method accepts one parameter of a certain type depending on the message exchange pattern and message direction:- a
RequestResponseObjectin case of an input-output pattern on the outgoing direction. - a
RequestObjectin case of an input-output pattern or input pattern on the incoming direction. - a
NotificationObjectin case of an output pattern in the outgoing direction
An interceptor may throw RuntimeException which are then wrapped as
InterceptorExceptionand presented to the user. In order to trace the interceptor exceptions, interceptors should provide a meaningfultoString()override.- See Also:
- Web Services message exchange patterns