How Groovy custom policies work?

Custom policies work by providing a means for the policy to incorporate some Groovy code that is then executed by the gateway. The Groovy policies have the means to interact with the gateway engine through some language interface classes. The use of Groovy is also subject to some constraints due to the way that the language is optimized for runtime. In the following sections, the interface layer and then constraints will be explained and illustrated with a real example.

Get Implementing Oracle API Platform Cloud Service now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.