/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package neembuu.uploader.httpclient.httprequest;
import java.net.URI;
/**
* Custom HttpGet.
* It is like <a href="https://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.2.3/httpclient/src/main/java/org/apache/http/client/methods/HttpGet.java">this</a>.
* @author davidepastore
*/
public class NUHttpGet extends NUHttpRequestBase{
/**
* Method name.
*/
public final static String METHOD_NAME = "GET";
public NUHttpGet() {
super();
}
public NUHttpGet(final URI uri) {
super();
setURI(uri);
}
/**
* @throws IllegalArgumentException if the uri is invalid.
*/
public NUHttpGet(final String uri) {
super();
setURI(URI.create(uri));
}
@Override
public String getMethod() {
return METHOD_NAME;
}
}