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

com.kintone.client.HttpResponseImpl Maven / Gradle / Ivy

// Generated by delombok at Fri Jan 21 13:34:53 JST 2022
package com.kintone.client;

import com.kintone.client.model.HttpResponse;
import java.io.IOException;
import java.io.InputStream;
import org.apache.http.client.methods.CloseableHttpResponse;

class HttpResponseImpl implements HttpResponse {
    private final CloseableHttpResponse response;

    @Override
    public Long getContentLength() {
        return response.getEntity().getContentLength();
    }

    @Override
    public String getContentType() {
        return response.getEntity().getContentType().getValue();
    }

    @Override
    public InputStream getContent() throws IOException {
        return response.getEntity().getContent();
    }

    @Override
    public void close() throws IOException {
        response.close();
    }

    @java.beans.ConstructorProperties({"response"})
    @java.lang.SuppressWarnings("all")
    HttpResponseImpl(final CloseableHttpResponse response) {
        this.response = response;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy