io.searchbox.client.http.apache.HttpDeleteWithEntity Maven / Gradle / Ivy
package io.searchbox.client.http.apache;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import java.net.URI;
/**
* @author ferhat
*/
public class HttpDeleteWithEntity extends HttpEntityEnclosingRequestBase {
public HttpDeleteWithEntity() {
super();
}
public HttpDeleteWithEntity(URI uri) {
super();
setURI(uri);
}
public HttpDeleteWithEntity(String uri) {
super();
setURI(URI.create(uri));
}
@Override
public String getMethod() {
return HttpDelete.METHOD_NAME;
}
}