![JAR search and dependency download from the Maven repository](/logo.png)
io.github.juniqlim.apicall.http.HttpApiCallResult Maven / Gradle / Ivy
package io.github.juniqlim.apicall.http;
import java.util.Map;
import org.springframework.http.HttpMethod;
/**
* interface
*/
public class HttpApiCallResult {
private final HttpMethod httpMethod;
private final String url;
private final Map header;
private final Object request;
private final HttpResponse response;
private HttpApiCallResult(HttpMethod httpMethod, String url, Map header, Object request,
HttpResponse response) {
this.httpMethod = httpMethod;
this.url = url;
this.header = header;
this.request = request;
this.response = response;
}
public static HttpApiCallResult of(HttpMethod httpMethod, String url, Map header, Object request,
HttpResponse response) {
return new HttpApiCallResult(httpMethod, url, header, request, response);
}
public HttpMethod httpMethod() {
return httpMethod;
}
public String url() {
return url;
}
public Map header() {
return header;
}
public Object request() {
return request;
}
public HttpResponse response() {
return response;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy