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

io.searchbox.client.http.apache.HttpGetWithEntity Maven / Gradle / Ivy

There is a newer version: 6.3.1
Show newest version
package io.searchbox.client.http.apache;

/**
 * @author ferhat sobay
 */

import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import org.apache.http.client.methods.HttpGet;

import java.net.URI;

public class HttpGetWithEntity extends HttpEntityEnclosingRequestBase {

    public HttpGetWithEntity() {
        super();
    }

    public HttpGetWithEntity(URI uri) {
        super();
        setURI(uri);
    }

    public HttpGetWithEntity(String uri) {
        super();
        setURI(URI.create(uri));
    }

    @Override
    public String getMethod() {
        return HttpGet.METHOD_NAME;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy