Skip navigation links

Oracle Communications Services Gatekeeper Java API Reference
5.0

E21717-02


com.bea.wlcp.wlng.api.interceptor
Interface InterceptorManager


public interface InterceptorManager

InterceptorManager interface. It is responsible to handle the registration, unregistration and invocation of the interceptors.


Method Summary
 List getInterceptors(InterceptionPoint ip)
          Returns the list of interceptors available at the given position.
 Map getInterceptorsAndIndice(InterceptionPoint ip)
          Returns the list of interceptors and their indice available at the given position.
 void register(Interceptor interceptor, InterceptionPoint ip, int index)
          Registers an interceptor at a given index and position.
 void registerListener(InterceptorManagerListener listener)
          Register a listener.
 void unregister(Interceptor interceptor, InterceptionPoint ip)
          Unregisters an interceptor.
 void unregister(int index, InterceptionPoint ip)
          Unregister an interceptor.
 void unregisterListener(InterceptorManagerListener listener)
          Unregister a listener.
 void update()
          Updates the current interceptors with any changes that have been made since the last call to update().

 

Method Detail

getInterceptors

public List getInterceptors(InterceptionPoint ip)
Returns the list of interceptors available at the given position.
Parameters:
ip - The interception point to get the interceptors
Returns:
The interceptors found at the given position

getInterceptorsAndIndice

public Map getInterceptorsAndIndice(InterceptionPoint ip)
Returns the list of interceptors and their indice available at the given position.
Parameters:
ip - The interception point to get the interceptors
Returns:
The interceptors found at the given position

register

public void register(Interceptor interceptor,
                     InterceptionPoint ip,
                     int index)
Registers an interceptor at a given index and position. The index indicates where the interceptor will be located in the flow of interceptors for a given position. The index can be any positive (MAX_INT) or negative integer (MIN_INT): the interceptors will be executed from the lowest to the biggest index. Note: the method update() must be called for this action to take effect
Parameters:
interceptor - The interceptor to register
ip - The interception point of the request at which the interceptor should be invoked
index - The index where the interceptor will be located in the flow

registerListener

public void registerListener(InterceptorManagerListener listener)
Register a listener.
Parameters:
listener - listener

unregister

public void unregister(Interceptor interceptor,
                       InterceptionPoint ip)
Unregisters an interceptor. Note: the method update() must be called for this action to take effect
Parameters:
interceptor - The interceptor to unregister
ip - The interception point of the request at which the interceptor should be invoked

unregister

public void unregister(int index,
                       InterceptionPoint ip)
Unregister an interceptor. Note: the method update() must be called for this action to take effect
Parameters:
index -
ip - The interception point of the request at which the interceptor should be invoked

unregisterListener

public void unregisterListener(InterceptorManagerListener listener)
Unregister a listener.
Parameters:
listener - listener

update

public void update()
Updates the current interceptors with any changes that have been made since the last call to update().

Skip navigation links

Oracle Communications Services Gatekeeper Java API Reference
5.0

E21717-02


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.