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

io.camunda.common.http.HttpClient Maven / Gradle / Ivy

There is a newer version: 8.5.10
Show newest version
package io.camunda.common.http;

import com.google.common.reflect.TypeToken;
import io.camunda.common.auth.Product;
import java.util.Map;

/** Interface to enable swappable http client implementations */
public interface HttpClient {

  void init(String host, String basePath);

  void loadMap(Product product, Map, String> map);

   T get(Class responseType, Long key);

   T get(Class responseType, String id);

   T get(Class responseType, Class parameterType, TypeToken selector, Long key);

   String getXml(Class selector, Long key);

   T post(Class responseType, Class parameterType, TypeToken selector, U body);

   T delete(Class responseType, Class selector, Long key);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy