// Path: library/src/main/java/com/smartnsoft/droid4me/ws/WebServiceCaller.java
// public static final class HttpResponse
// {
// 
//   public final Map<String, List<String>> headers;
// 
//   public final int statusCode;
// 
//   public final InputStream inputStream;
// 
//   public final InputStream errorInputStream;
// 
//   public HttpResponse(Map<String, List<String>> headers, int statusCode, InputStream inputStream,
//       InputStream errorInputStream)
//   {
//     this.headers = headers;
//     this.statusCode = statusCode;
//     this.inputStream = inputStream;
//     this.errorInputStream = errorInputStream;
//   }
// 
// }
// 
// Path: library/src/main/java/com/smartnsoft/droid4me/ws/WebServiceCaller.java
// public static final class MultipartFile
// {
// 
//   public final String name;
// 
//   public final String fileName;
// 
//   public final String contentType;
// 
//   public final InputStream inputStream;
// 
//   public MultipartFile(String name, String fileName, String contentType, InputStream inputStream)
//   {
//     this.name = name;
//     this.fileName = fileName;
//     this.contentType = contentType;
//     this.inputStream = inputStream;
//   }
// 
// }


import com.smartnsoft.droid4me.ws.WebServiceCaller.HttpResponse;
import com.smartnsoft.droid4me.ws.WebServiceCaller.MultipartFile;
import java.io.InterruptedIOException;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import java.util.List;
import java.util.Map;
import javax.net.ssl.SSLException;
// The MIT License (MIT)
//
// Copyright (c) 2017 Smart&Soft
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

package com.smartnsoft.droid4me.ws;



/**
 * A minimalist contract when creating a web service client.
 *
 * @author Édouard Mercier
 * @since 2011.08.17
 */
public interface WebServiceClient
{

  /**
   * An HTTP method type.
   */
  enum Verb
  {
    Get, Post, Put, Delete, Patch, Head, Options
  }

  /**
   * Defines the way the HTTP method is run, and enables to link a call code with it.
   */
// Path: library/src/main/java/com/smartnsoft/droid4me/ws/WebServiceCaller.java
// public static final class HttpResponse
// {
// 
//   public final Map<String, List<String>> headers;
// 
//   public final int statusCode;
// 
//   public final InputStream inputStream;
// 
//   public final InputStream errorInputStream;
// 
//   public HttpResponse(Map<String, List<String>> headers, int statusCode, InputStream inputStream,
//       InputStream errorInputStream)
//   {
//     this.headers = headers;
//     this.statusCode = statusCode;
//     this.inputStream = inputStream;
//     this.errorInputStream = errorInputStream;
//   }
// 
// }
// 
// Path: library/src/main/java/com/smartnsoft/droid4me/ws/WebServiceCaller.java
// public static final class MultipartFile
// {
// 
//   public final String name;
// 
//   public final String fileName;
// 
//   public final String contentType;
// 
//   public final InputStream inputStream;
// 
//   public MultipartFile(String name, String fileName, String contentType, InputStream inputStream)
//   {
//     this.name = name;
//     this.fileName = fileName;
//     this.contentType = contentType;
//     this.inputStream = inputStream;
//   }
// 
// }


// Path: library/src/main/java/com/smartnsoft/droid4me/ws/WebServiceClient.java
import com.smartnsoft.droid4me.ws.WebServiceCaller.HttpResponse;
import com.smartnsoft.droid4me.ws.WebServiceCaller.MultipartFile;
import java.io.InterruptedIOException;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import java.util.List;
import java.util.Map;
import javax.net.ssl.SSLException;

// The MIT License (MIT)
//
// Copyright (c) 2017 Smart&Soft
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

package com.smartnsoft.droid4me.ws;



/**
 * A minimalist contract when creating a web service client.
 *
 * @author Édouard Mercier
 * @since 2011.08.17
 */
public interface WebServiceClient
{

  /**
   * An HTTP method type.
   */
  enum Verb
  {
    Get, Post, Put, Delete, Patch, Head, Options
  }

  /**
   * Defines the way the HTTP method is run, and enables to link a call code with it.
   */
  final class CallType