// 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;
  /**
   * Is responsible to actually run the relevant HTTP method.
   *
   * @param uri            the URI against which the HTTP request should be run
   * @param callType       the type of HTTP method
   * @param postParameters the form-data parameters (body) of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @param body           the string body of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @return a {@link HttpResponse} object that wraps the headers and the input stream resulting to the HTTP request, which are taken from the response
   * @throws WebServiceClient.CallException in case an error occurred during the HTTP request execution, or if the HTTP request status code is not {@code 2XX}
   */
  HttpResponse runRequest(String uri, WebServiceClient.CallType callType, Map<String, String> postParameters,
      String body)
      throws WebServiceClient.CallException;

  /**
   * Is responsible to actually run the relevant HTTP method.
   *
   * @param uri            the URI against which the HTTP request should be run
   * @param callType       the type of HTTP method
   * @param postParameters the form-data parameters (body) of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @param body           the string body of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @param files          the files of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @return a {@link HttpResponse} object that wraps the headers and the input stream resulting to the HTTP request, which are taken from the response
   * @throws WebServiceClient.CallException in case an error occurred during the HTTP request execution, or if the HTTP request status code is not {@code 2XX}
   */
// 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;

  /**
   * Is responsible to actually run the relevant HTTP method.
   *
   * @param uri            the URI against which the HTTP request should be run
   * @param callType       the type of HTTP method
   * @param postParameters the form-data parameters (body) of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @param body           the string body of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @return a {@link HttpResponse} object that wraps the headers and the input stream resulting to the HTTP request, which are taken from the response
   * @throws WebServiceClient.CallException in case an error occurred during the HTTP request execution, or if the HTTP request status code is not {@code 2XX}
   */
  HttpResponse runRequest(String uri, WebServiceClient.CallType callType, Map<String, String> postParameters,
      String body)
      throws WebServiceClient.CallException;

  /**
   * Is responsible to actually run the relevant HTTP method.
   *
   * @param uri            the URI against which the HTTP request should be run
   * @param callType       the type of HTTP method
   * @param postParameters the form-data parameters (body) of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @param body           the string body of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @param files          the files of the HTTP method, in case of a {@link WebServiceClient.CallType#Post} or {@link WebServiceClient.CallType#Put} method;
   *                       {@code null} otherwise
   * @return a {@link HttpResponse} object that wraps the headers and the input stream resulting to the HTTP request, which are taken from the response
   * @throws WebServiceClient.CallException in case an error occurred during the HTTP request execution, or if the HTTP request status code is not {@code 2XX}
   */
  HttpResponse runRequest(String uri, CallType callType, Map<String, String> headers,