public JerryExecutor(OkHttpClientSettings settings) {

    this.settings = settings;
    okHttpDispatcher = OkHttpDispatcher.getDispatcher();
    client = okHttpDispatcher.getClient();
    initDispatcher();
  }
 private void execute(HttpTaskHandler handler) {
   switch (type) {
     case POST:
       //                okHttpDispatcher.asyncRequest(settings, handler);
       //                break;
     case GET:
       //                okHttpDispatcher.asyncRequest(settings, handler);
       //                break;
     case PUT:
       //                okHttpDispatcher.asyncRequest(settings, handler);
       //                break;
     case DELETE:
       okHttpDispatcher.asyncRequest(settings, handler);
       break;
     case DOWNLOAD:
       okHttpDispatcher.downloadTask(settings, handler);
       break;
     default:
       break;
   }
 }
  @Deprecated
  public CallAttach callAttach() {

    return new CallAttach(okHttpDispatcher.getCall());
  }