Package io.camunda.common.http
Class DefaultHttpClient
java.lang.Object
io.camunda.common.http.DefaultHttpClient
- All Implemented Interfaces:
HttpClient
Default Http Client powered by Apache HttpClient
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpClient(Authentication authentication) DefaultHttpClient(Authentication authentication, org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient, JsonMapper jsonMapper, Map<Product, Map<Class<?>, String>> productMap) -
Method Summary
Modifier and TypeMethodDescription<T,V> T <T,V, W> T get(Class<T> responseType, Class<V> parameterType, com.google.common.reflect.TypeToken<W> selector, Long key) <T> T<T> T<T> Stringvoidvoid<T,V, W, U>
Tpost(Class<T> responseType, Class<V> parameterType, com.google.common.reflect.TypeToken<W> selector, U body)
-
Constructor Details
-
DefaultHttpClient
-
DefaultHttpClient
public DefaultHttpClient(Authentication authentication, org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient, JsonMapper jsonMapper, Map<Product, Map<Class<?>, String>> productMap)
-
-
Method Details
-
init
- Specified by:
initin interfaceHttpClient
-
loadMap
- Specified by:
loadMapin interfaceHttpClient
-
get
- Specified by:
getin interfaceHttpClient
-
get
- Specified by:
getin interfaceHttpClient
-
get
public <T,V, T getW> (Class<T> responseType, Class<V> parameterType, com.google.common.reflect.TypeToken<W> selector, Long key) - Specified by:
getin interfaceHttpClient
-
getXml
- Specified by:
getXmlin interfaceHttpClient
-
post
public <T,V, T postW, U> (Class<T> responseType, Class<V> parameterType, com.google.common.reflect.TypeToken<W> selector, U body) - Specified by:
postin interfaceHttpClient
-
delete
- Specified by:
deletein interfaceHttpClient
-