Class JacksonReaderHttpClientResponseEntityMapper<T>

java.lang.Object
ru.tinkoff.kora.json.jackson.module.http.client.JacksonReaderHttpClientResponseEntityMapper<T>
All Implemented Interfaces:
ru.tinkoff.kora.common.Mapping.MappingFunction, ru.tinkoff.kora.http.client.common.response.HttpClientResponseMapper<ru.tinkoff.kora.http.common.HttpResponseEntity<T>>

public class JacksonReaderHttpClientResponseEntityMapper<T> extends Object implements ru.tinkoff.kora.http.client.common.response.HttpClientResponseMapper<ru.tinkoff.kora.http.common.HttpResponseEntity<T>>
  • Constructor Details

    • JacksonReaderHttpClientResponseEntityMapper

      public JacksonReaderHttpClientResponseEntityMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.core.type.TypeReference<T> type)
    • JacksonReaderHttpClientResponseEntityMapper

      public JacksonReaderHttpClientResponseEntityMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ru.tinkoff.kora.application.graph.TypeRef<T> type)
  • Method Details

    • apply

      @Nullable public ru.tinkoff.kora.http.common.HttpResponseEntity<T> apply(@Nonnull ru.tinkoff.kora.http.client.common.response.HttpClientResponse response) throws IOException, ru.tinkoff.kora.http.client.common.HttpClientDecoderException
      Specified by:
      apply in interface ru.tinkoff.kora.http.client.common.response.HttpClientResponseMapper<T>
      Throws:
      IOException
      ru.tinkoff.kora.http.client.common.HttpClientDecoderException