Custom Java policies

As previously introduced, the API platform can support the development of custom Java API policies. The rest of this chapter will focus on this subject. There are many ways that this can be approached as a developer.

As the different aspects of build a policy are addressed, the steps that are recommended to be taken are identified.

Rather than including all the code for the custom Java policy in these pages, the source has been provided at https://github.com/APIPlatform-Book/GeoIPJavaPolicy. The rest of the section will include fragments of code to help illustrate and highlight specific details of the way custom policies work.

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.