Class CallerContextFactory
java.lang.Object
org.apache.synapse.commons.throttle.core.factory.CallerContextFactory
Factory for creating a CallerContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CallerContextcreateCaller(int throttletype, String id) To create a CallerContext(the run time data holder for a remote caller) for the given throttle type.
-
Constructor Details
-
CallerContextFactory
public CallerContextFactory()
-
-
Method Details
-
createCaller
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
-