-
public interface HttpLayer
HTTP 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 interface
HttpLayer.HttpLayerFactory
Contract to create theHttpLayer
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(URI uri, Map<String,String> headers)
DELETE operation.<T> T
get(URI uri, com.rabbitmq.http.client.ParameterizedTypeReference<T> typeReference)
Get operation when the expected class uses generics, likeList<T>
orPage<T>
.<T> T
get(URI uri, Class<T> responseClass)
GET operation when the expected class does not use generics.<T> T
post(URI uri, Object requestBody, Class<T> responseClass)
POST operation.void
put(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:
-
-