All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy