| java.lang.Object com.nabhinc.ws.server.InterceptorChain
InterceptorChain | public class InterceptorChain (Code) | | Represents a chain of interceptors associated with a Web service
request. A new instance of this class is created for every service
request.
author: Padmanabh Dabke author: (c) 2005 Nabh Information Systems, Inc. All Rights Reserved. |
InterceptorChain | public InterceptorChain(InterceptorInfo[] interceptors)(Code) | | Constructs a new interceptor chain consisting of
supplied interceptors
Parameters: interceptors - Array of interceptors that constitute the chain |
doIntercept | public void doIntercept(RequestInfo reqInfo) throws WebServiceException, IOException(Code) | | Workhorse method in the interceptor chaining mechanism. It invokes
the next interceptor in the chain. If the current interceptor is
the last one, it invokes the Web service method. If an interceptor
throws and exception and it is marked critical, it fails the
method invocation. Otherwise, it simply logs the occurance and
continues
Parameters: reqInfo - Current request info throws: WebServiceException - throws: IOException - |
getCurrentPosition | public int getCurrentPosition()(Code) | | Get position of the current interceptor.
Current interceptor position |
setCurrentPosition | public void setCurrentPosition(int pos)(Code) | | Set current interceptor position.
Parameters: pos - New current position |
|
|