Class JacksonAsyncHttpClientResponseEntityMapper<T>

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

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

    • JacksonAsyncHttpClientResponseEntityMapper

      public JacksonAsyncHttpClientResponseEntityMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.JavaType jacksonType)
    • JacksonAsyncHttpClientResponseEntityMapper

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

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

    • apply

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