Skip to content

isabella232/com.adobe.acs.bundles.retrofit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACS Embedded Retrofit Bundle

This projects makes the Retrofit API available as an OSGi bundle inside a content package suitable for deployment on CQ/AEM.

This package depends upon Google GSON which should be available as-is as it is distributed as an OSGi bundle. For convenience, a content package is available from Adobe Consulting Services' Github Organization.

Logging

By default, Retrofit will log to System.out. To have it logged through the standard Sling/AEM logging system, this bundle includes an adapter for Slf4j which logs under the category name retrofit. To use this adapter, call setLog() during the construction of the RestAdapter:

RestAdapter restAdapter = new RestAdapter.Builder()
      .setEndpoint(API_URL)
      .setLogLevel(LogLevel.FULL)
      .setLog(Slf4jLog.INSTANCE)
      .build();

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%