Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.wsif
Interface WSIFInterceptor  view WSIFInterceptor download WSIFInterceptor.java


public interface WSIFInterceptor

An interceptor gets the opportunity to pre- or post-process a service request or response, respectively, that's travelling through the WSIF. The interceptor also gets the opportunity to inform WSIF that the service is to be denied; i.e., that the service request (or response) should not be processed further.


Method Summary
 void destroy()
          Destroy this interceptor.
 void init(WSIFInterceptorConfig ic)
          Initialize the interceptor.
 boolean interceptIncoming(WSIFRequest request, WSIFResponse response)
          This method is invoked to allow the interceptor to process the incoming request.
 boolean interceptOutgoing(WSIFRequest request, WSIFResponse response)
          This method is invoked to allow the interceptor to process the outgoing response.
 

Method Detail

init

public void init(WSIFInterceptorConfig ic)
Initialize the interceptor.


interceptIncoming

public boolean interceptIncoming(WSIFRequest request,
                                 WSIFResponse response)
                          throws WSIFException
This method is invoked to allow the interceptor to process the incoming request. If the request should not be processed further, then this method should return false. The response object is also made available in case the interceptor wishes to manipulate that too.


interceptOutgoing

public boolean interceptOutgoing(WSIFRequest request,
                                 WSIFResponse response)
                          throws WSIFException
This method is invoked to allow the interceptor to process the outgoing response. If the response should not be processed further, then this method should return false.


destroy

public void destroy()
Destroy this interceptor.