
com.parse.internal.signpost.commonshttp.HttpResponseAdapter Maven / Gradle / Ivy
package com.parse.internal.signpost.commonshttp;
import java.io.IOException;
import java.io.InputStream;
import com.parse.internal.signpost.http.HttpResponse;
@SuppressWarnings("all")
public class HttpResponseAdapter implements HttpResponse {
private org.apache.http.HttpResponse response;
public HttpResponseAdapter(org.apache.http.HttpResponse response) {
this.response = response;
}
public InputStream getContent() throws IOException {
return response.getEntity().getContent();
}
public int getStatusCode() throws IOException {
return response.getStatusLine().getStatusCode();
}
public String getReasonPhrase() throws Exception {
return response.getStatusLine().getReasonPhrase();
}
public Object unwrap() {
return response;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy