For the Groovy policies to be of value, they obviously need to be able to access the information relating to the API call. This is solved by providing several java interfaces that can be invoked by Groovy without needing an import statement. These APIs are common to both the Groovy approach and the Java approach for building the API policies.
The following table describes the roles of the key interfaces and classes and how they can be used:
Class/Interface |
Description |
Interface ApiRequest |
The ApiRequest object. Defines an object to provide information about an incoming API request. The ApiRequest object provides data including parameter name and values, attributes, the body of the message, as well as additional ... |