Package io.vrap.rmf.base.client
Interface ResponseSerializer
- All Known Implementing Classes:
DatadogResponseSerializer
,DatadogResponseSerializer
,NewrelicResponseSerializer
,OpenTelemetryResponseSerializer
public interface ResponseSerializer
Interface to deserialize a response to a specified output type
-
Method Summary
Modifier and TypeMethodDescription<O> ApiHttpResponse<O>
convertResponse
(ApiHttpResponse<byte[]> response, com.fasterxml.jackson.core.type.TypeReference<O> outputType) <O> ApiHttpResponse<O>
convertResponse
(ApiHttpResponse<byte[]> response, JavaType outputType) <O> ApiHttpResponse<O>
convertResponse
(ApiHttpResponse<byte[]> response, Class<O> outputType) static ResponseSerializer
of()
static ResponseSerializer
of
(ObjectMapper mapper) byte[]
toJsonByteArray
(Object value)
-
Method Details
-
convertResponse
-
convertResponse
-
convertResponse
<O> ApiHttpResponse<O> convertResponse(ApiHttpResponse<byte[]> response, com.fasterxml.jackson.core.type.TypeReference<O> outputType) -
toJsonByteArray
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
of
-
of
-