org.apache.wsif
Interface WSIFInterceptor


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.

Author:
Sanjiva Weerawarana , Paul Fremantle

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.

Parameters:
request - the incoming service request
response - the outgoing service response
Returns:
true or false, indicating whether the request should continue to be processed or not.
Throws:
WSIFException - if something unexpected happens.

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.

Parameters:
request - the incoming service request
response - the outgoing service response
Returns:
true or false, indicating whether the response should continue to be processed or not.
Throws:
WSIFException - if something unexpected happens.

destroy

public void destroy()
Destroy this interceptor.



Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.