All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.transform.JsonRxUnmarshallerContextImpl Maven / Gradle / Ivy

package com.amazonaws.transform;

import com.fasterxml.jackson.core.JsonParser;

import io.reactivex.netty.protocol.http.client.HttpResponseHeaders;

import com.amazonaws.http.HttpResponse;

import com.amazonaws.transform.JsonUnmarshallerContextImpl;

public class JsonRxUnmarshallerContextImpl extends JsonUnmarshallerContextImpl {
  final HttpResponseHeaders httpHeaders;

  public JsonRxUnmarshallerContextImpl(JsonParser jsonParser, HttpResponseHeaders httpHeaders) {
    super(jsonParser);
    this.httpHeaders = httpHeaders;
  }

  @Override
  public String getHeader(String header) {
    if (httpHeaders == null) return null;
    return httpHeaders.get(header);
  }

  @Override
  public HttpResponse getHttpResponse() {
    throw new UnsupportedOperationException("apache client not supported");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy