public interface PolicyRuntimeInitContext
Modifier and Type | Interface and Description |
---|---|
static class |
PolicyRuntimeInitContext.GatewayTypeEnum
Enumeration to describe the type of gateway on which the policy is deployed
|
Modifier and Type | Method and Description |
---|---|
<T> void |
addSystemService(java.lang.Class<T> clazz, T service)
Adds or sets the service instance into the context
|
java.lang.String |
getApiId()
Returns unique API Id associated with this policy runtime
|
java.lang.String |
getApiUrl()
Returns the relative URL of the API endpoint
|
java.lang.String |
getGatewayId()
Returns the Id of the gateway instance on which the API is deployed
|
PolicyRuntimeInitContext.GatewayTypeEnum |
getGatewayType()
For those few "special" policies, where policy runtime behavior depends on the type of the gateway code is being executed on.
|
java.lang.String |
getIterationId()
Returns API iteration Id
|
java.lang.String |
getPolicyInstanceId()
Returns policy instance id
|
<T> T |
getSystemService(java.lang.Class<T> clazz)
Returns an instance of the "system"-provided service identified by the class name.
|
java.lang.String getApiId()
java.lang.String getApiUrl()
java.lang.String getIterationId()
java.lang.String getGatewayId()
java.lang.String getPolicyInstanceId()
PolicyRuntimeInitContext.GatewayTypeEnum getGatewayType()
<T> T getSystemService(java.lang.Class<T> clazz) throws java.lang.Exception
T
- the type of the serviceclazz
- class of of the service instancejava.lang.Exception
- if an error occurs while retrieving the service instance<T> void addSystemService(java.lang.Class<T> clazz, T service)
T
- the type of the service to setclazz
- class of of the service instance to set into the contextservice
- service instance to set into the context