// 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;

    /**
     * @return {@code true} is the current exception is linked to a connectivity problem with Internet.
     * @see #isConnectivityProblem(Throwable)
     */
    public final boolean isConnectivityProblem()
    {
      return WebServiceClient.CallException.isConnectivityProblem(this);
    }

  }

  /**
   * Is responsible for converting the given URI parameters into a stringified URI.
   *
   * @param methodUriPrefix the prefix of the URI
   * @param methodUriSuffix the suffix of the URI, not containing the query parameters. A <code>/</code> will split the methodUriPrefix and methodUriSuffix
   *                        parameters in the final URI
   * @param uriParameters   a map of key/values that will be used as query parameters in the final URI
   * @return a properly encoded URI
   */
  String computeUri(String methodUriPrefix, String methodUriSuffix, Map<String, String> uriParameters);

  /**
   * Is responsible to actually run the relevant HTTP method.
   *
   * @param uri the URI against which the HTTP request should be run
   * @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;


    /**
     * @return {@code true} is the current exception is linked to a connectivity problem with Internet.
     * @see #isConnectivityProblem(Throwable)
     */
    public final boolean isConnectivityProblem()
    {
      return WebServiceClient.CallException.isConnectivityProblem(this);
    }

  }

  /**
   * Is responsible for converting the given URI parameters into a stringified URI.
   *
   * @param methodUriPrefix the prefix of the URI
   * @param methodUriSuffix the suffix of the URI, not containing the query parameters. A <code>/</code> will split the methodUriPrefix and methodUriSuffix
   *                        parameters in the final URI
   * @param uriParameters   a map of key/values that will be used as query parameters in the final URI
   * @return a properly encoded URI
   */
  String computeUri(String methodUriPrefix, String methodUriSuffix, Map<String, String> uriParameters);

  /**
   * Is responsible to actually run the relevant HTTP method.
   *
   * @param uri the URI against which the HTTP request should be run
   * @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)