Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 2.53 KB

README.md

File metadata and controls

46 lines (30 loc) · 2.53 KB

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