Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Implementing Oracle API Platform Cloud Service

You're reading from   Implementing Oracle API Platform Cloud Service Design, deploy, and manage your APIs in Oracle's new API Platform

Arrow left icon
Product type Paperback
Published in May 2018
Publisher
ISBN-13 9781788478656
Length 518 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (4):
Arrow left icon
Luis Weir Luis Weir
Author Profile Icon Luis Weir
Luis Weir
Philip Wilkins Philip Wilkins
Author Profile Icon Philip Wilkins
Philip Wilkins
Andrew Bell Andrew Bell
Author Profile Icon Andrew Bell
Andrew Bell
Sander Rensen Sander Rensen
Author Profile Icon Sander Rensen
Sander Rensen
Arrow right icon
View More author details
Toc

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.

APIs to access call data

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image