// 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;
      this.body = body;
      this.parameters = parameters;
      this.files = files;
    }

    @Override
    public String toString()
    {
      return "(" + callType + ") " + url;
    }

  }

  /**
   * The exception that will be thrown if any problem occurs during a web service call.
   */
  class CallException
      extends Exception
  {

    private static final long serialVersionUID = 4869741128441615773L;

    /**
     * Indicates whether the cause of the provided exception is due to a connectivity problem.
     *
     * @param throwable the exception to test
     * @return {@code true} if the {@link Throwable} was triggered because of a connectivity problem with Internet
     */
    public static boolean isConnectivityProblem(Throwable throwable)
    {
// 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;

      this.body = body;
      this.parameters = parameters;
      this.files = files;
    }

    @Override
    public String toString()
    {
      return "(" + callType + ") " + url;
    }

  }

  /**
   * The exception that will be thrown if any problem occurs during a web service call.
   */
  class CallException
      extends Exception
  {

    private static final long serialVersionUID = 4869741128441615773L;

    /**
     * Indicates whether the cause of the provided exception is due to a connectivity problem.
     *
     * @param throwable the exception to test
     * @return {@code true} if the {@link Throwable} was triggered because of a connectivity problem with Internet
     */
    public static boolean isConnectivityProblem(Throwable throwable)
    {
      Throwable cause;