com.hannesdorfmann.httpkit.httpclient.HttpDeleteWithBody Maven / Gradle / Ivy
package com.hannesdorfmann.httpkit.httpclient;
import java.net.URI;
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
/**
* This class do a HTTP DELETE Request by sending the data as part of the http
* body / entity
*
* @author Hannes Dorfmann
*
*/
public class HttpDeleteWithBody extends HttpEntityEnclosingRequestBase {
public static final String METHOD_NAME = "DELETE";
@Override
public String getMethod() {
return METHOD_NAME;
}
public HttpDeleteWithBody(final String uri) {
super();
setURI(URI.create(uri));
}
public HttpDeleteWithBody(final URI uri) {
super();
setURI(uri);
}
public HttpDeleteWithBody() {
super();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy