package com.dingzhuo.energy.project.common;
|
|
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
|
|
import java.net.URI;
|
|
/**
|
* @Description: TODO
|
* @author: yxw
|
* @date: 2022年03月18日 18:23
|
*/
|
public class HttpGetWithEntity extends HttpEntityEnclosingRequestBase {
|
public final static String METHOD_NAME = "GET";
|
|
public HttpGetWithEntity() {
|
super();
|
}
|
|
public HttpGetWithEntity(final URI uri) {
|
super();
|
setURI(uri);
|
}
|
|
public HttpGetWithEntity(final String uri) {
|
super();
|
setURI(URI.create(uri));
|
}
|
|
@Override
|
public String getMethod() {
|
// TODO Auto-generated method stub
|
return METHOD_NAME;
|
}
|
}
|