All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.catools.ws.rest.CHttpRestFormClient Maven / Gradle / Ivy

package org.catools.ws.rest;

import org.catools.common.tests.CTest;
import org.catools.ws.enums.CHttpRequestType;
import org.catools.ws.model.CRequestParameters;

public abstract class CHttpRestFormClient extends CHttpClient {

  public CHttpRestFormClient(
      T testInstance,
      CHttpRequestType requestType,
      String targetURL,
      CRequestParameters formParameters) {
    this(testInstance, requestType, targetURL, null, formParameters);
  }

  public CHttpRestFormClient(
      T testInstance,
      CHttpRequestType requestType,
      String targetURL,
      String targetPath,
      CRequestParameters formParameters) {
    super(testInstance, requestType, targetURL, targetPath);
    if (formParameters != null) {
      this.getRequest().getFormParameters().putAll(formParameters);
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy