public class ObjectMapperUtil extends Object
| Constructor and Description |
|---|
ObjectMapperUtil() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
decode(feign.Response response,
Class<T> valueType)
Retrieves the response object decoded from the
Response body. |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
public <T> T decode(feign.Response response,
Class<T> valueType)
throws IOException
Retrieves the response object decoded from the Response body.
T - the specific kind of response objectresponse - ResponsevalueType - expected response object typeResponse bodyIOException - – If an I/O error occurspublic com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2022. All rights reserved.