Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

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


public interface Context

Interface defining interceptor context.


Method Summary
abstract  java.lang.Object[] getArguments()
          Returns the arguments that will be used in the method targeted by this request.
abstract  InterceptionPoint getInterceptionPoint()
          Returns the interception point of the request.
abstract  java.lang.reflect.Method getMethod()
          Returns the method targeted by this request.
abstract  java.util.List getPluginHolders(RequestInfo requestInfo)
          Returns a list of plug-ins that matches the specified RequestInfo.
abstract  RequestContext getRequestContext()
          Returns current the WLNG RequestContext object.
abstract  java.util.Set getRequestInfos()
          Returns the set of RequestInfo that are available for the request.
abstract  java.lang.Object getTarget()
          Returns the target object of the request.
abstract  java.lang.Class getType()
          Returns the type of plug-in targeted by this request.
abstract  java.lang.Object invokeNext(Interceptor current)
          Invokes the next interceptor if it is available.
abstract  void setPluginHolders(RequestInfo requestInfo, java.util.List pluginHolders)
          Sets the list of plug-ins matching the specificed RequestInfo.
 

Method Detail

getArguments

public java.lang.Object[] getArguments()
Returns the arguments that will be used in the method targeted by this request. Note that the arguments can be modified by accessing the individual element of the returned array.

Returns:
the arguments.

getInterceptionPoint

public InterceptionPoint getInterceptionPoint()
Returns the interception point of the request.

Returns:
The interception point of the request.

getMethod

public java.lang.reflect.Method getMethod()
Returns the method targeted by this request.

Returns:
the method of the request.

getPluginHolders

public java.util.List getPluginHolders(RequestInfo requestInfo)
Returns a list of plug-ins that matches the specified RequestInfo.

Parameters:
requestInfo - The RequestInfo object.
Returns:
a list of plug-ins matching the RequestInfo object.

getRequestContext

public RequestContext getRequestContext()
Returns current the WLNG RequestContext object.

Returns:
the current WLNG RequestContext object.

getRequestInfos

public java.util.Set getRequestInfos()
Returns the set of RequestInfo that are available for the request.

Returns:
a set of RequestInfo.

getTarget

public java.lang.Object getTarget()
Returns the target object of the request. The target is usually used for MO request only.

Returns:
The target object of the request.

getType

public java.lang.Class getType()
Returns the type of plug-in targeted by this request.

Returns:
the type of plug-in.

invokeNext

public java.lang.Object invokeNext(Interceptor current)
                            throws java.lang.Exception
Invokes the next interceptor if it is available.

Parameters:
current - The current interceptor.
Returns:
The value returned by the next interceptor.
Throws:
java.lang.Exception - An exception thrown by the interceptor to deny the request.

setPluginHolders

public void setPluginHolders(RequestInfo requestInfo,
                             java.util.List pluginHolders)
Sets the list of plug-ins matching the specificed RequestInfo.

Parameters:
requestInfo - the RequestInfo object.
pluginHolders - the list of plug-ins.

Oracle Communications Services Gatekeeper Java API Reference
7.0.0.1

E96578-01

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