Class CallerContextFactory
- java.lang.Object
-
- org.apache.synapse.commons.throttle.core.factory.CallerContextFactory
-
public class CallerContextFactory extends Object
Factory for creating a CallerContext
-
-
Constructor Summary
Constructors Constructor Description CallerContextFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CallerContext
createCaller(int throttletype, String id)
To create a CallerContext(the run time data holder for a remote caller) for the given throttle type.
-
-
-
Method Detail
-
createCaller
public static CallerContext createCaller(int throttletype, String id) throws ThrottleException
To create a CallerContext(the run time data holder for a remote caller) for the given throttle type. Needs to provide the ID(ip | domain) of the remote caller (ip/domain according to the policy)- Parameters:
throttletype
- - The type of the throttleid
- - The id of the caller- Returns:
- caller - The corresponding caller context for the given throttle type
- Throws:
ThrottleException
- - Throws for if the throttle type is unknown
-
-