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