-
- All Known Implementing Classes:
JdkHttpClientHttpLayer
public interface HttpLayerHTTP layer abstraction forClient.This is considered a SPI and is susceptible to change at any time.
Use the
JdkHttpClientHttpLayer.configure()to configure and create the default implementation.- Since:
- 4.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceHttpLayer.HttpLayerFactoryContract to create theHttpLayer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(URI uri, Map<String,String> headers)DELETE operation.<T> Tget(URI uri, com.rabbitmq.http.client.ParameterizedTypeReference<T> typeReference)Get operation when the expected class uses generics, likeList<T>orPage<T>.<T> Tget(URI uri, Class<T> responseClass)GET operation when the expected class does not use generics.<T> Tpost(URI uri, Object requestBody, Class<T> responseClass)POST operation.voidput(URI uri, Object requestBody)PUT operation.
-
-
-
Method Detail
-
get
<T> T get(URI uri, Class<T> responseClass)
GET operation when the expected class does not use generics.- Type Parameters:
T-- Parameters:
uri-responseClass-- Returns:
-
get
<T> T get(URI uri, com.rabbitmq.http.client.ParameterizedTypeReference<T> typeReference)
Get operation when the expected class uses generics, likeList<T>orPage<T>.- Type Parameters:
T-- Parameters:
uri-typeReference-- Returns:
-
post
<T> T post(URI uri, Object requestBody, Class<T> responseClass)
POST operation.Response class is optional.
- Type Parameters:
T-- Parameters:
uri-requestBody-responseClass-- Returns:
-
-