Skip to content

Extension of the droid4me framework which contains web service caller implementation

License

Notifications You must be signed in to change notification settings

smartnsoft-alumni/droid4me.ws

 
 

Repository files navigation

License: MIT TeamCity status

droid4me.ws

image

droid4me.ws a is an extension of the Android droid4me framework which contains several web service caller implementation.

droid4me.ws consists of several parts :

Note : a default implementation based on the URLConnection is available into the droid4me framework.

Usage

1. [DEPRECATED] httpclient

Android 6.0 release removes support for the Apache HTTP client (source)

2. okhttp (wiki)

This implementation is based based on the Square HTTP client and exposed two classes :

  • OkHttpClientWebServiceCaller : this class extends the droid4me class WebServiceCaller and is responsible to compute the http client, perform the http request, manage the cache and manage errors.
  • JacksonOkHttpClientWebServiceCaller : this class extends OkHttpClientWebServiceCaller and implements the droid4me.ext interface ObjectMapperComputer. This class provides an ObjectMapper attribute (from the Jackson library) in order to parse JSON.

Download

To add these implementations to your project, include the following in your app module build.gradle file:

dependencies
{ 
  //okhttp
  implementation ("com.smartnsoft:okhttpwebservicecaller:${latest.version}")
}

For the okhttp implementation, ${latest.version} is Download

License

This library is available under the MIT license. See the LICENSE file for more info.

Author

This library was proudly made by Smart&Soft, Paris FRANCE

About

Extension of the droid4me framework which contains web service caller implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 64.3%
  • Kotlin 35.7%