org.github.joeweh.http.Response Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-utils Show documentation
Show all versions of http-utils Show documentation
Wrapper library for java's HttpURLConnection to simplify java http development
The newest version!
package org.github.joeweh.http;
import java.util.List;
import java.util.Map;
public class Response {
private final boolean success;
private final int responseCode;
private final String responseBody;
private final Map> headers;
public Response(boolean success, int responseCode, Map> headers, String responseBody) {
this.success = success;
this.responseCode = responseCode;
this.headers = headers;
this.responseBody = responseBody;
}
public boolean isSuccessful()
{
return this.success;
}
public int getCode()
{
return this.responseCode;
}
public Map> getHeaders() { return this.headers; }
public String getBody()
{
return this.responseBody;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy