aio-lib-java-events-journal is Adobe I/O - Java SDK - Events Journal Library.
This Java library wraps http API endpoints exposed
by Adobe I/O Events Journaling API
JournalService journalService = JournalService.builder()
.authInterceptor(authInterceptor) // [1]
.workspace(workspace) // [2]
.url(journalUrl) // [3]
.build(); //
Entry entry = journalService.getOldest(); // [4]
while (!entry.isEmpty()) {
entry = journalService.get(entry.getNextLink()); // [5]
}
- [1] build your JournalService by passing a OpenFeign Authentication Request Interceptor.
You can use interceptors that our ims library provides,
or any other Open Feign RequestInterceptor
adding :
- an
Authorizationheader with a validBeareraccess token - a
x-api-keyheader associated with the above token
- an
- [2] set the workspace context expected by the ProviderService
- [3] pass your registration journaling endpoint URL
- [4] have this service retrieve the oldest entry available in your registration journal
- [5] you can then loop to retrieve them all following entries'
nextlinks
See our main() Test Drive
This Library is build with maven (it also runs the unit tests):
Contributions are welcomed! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.