Top Description Fields Constructors Methods
org.apache.http.client.methods

public Class HttpGet

extends HttpRequestBase
Class Inheritance
Imports
java.net.URI

Deprecated

as a consequence of HttpRequestBase being deprecated. See corresponding docs for further information.

HTTP GET method.

The HTTP GET method is defined in section 9.3 of RFC2616:

The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI. If the Request-URI refers to a data-producing process, it is the produced data which shall be returned as the entity in the response and not the source text of the process, unless that text happens to be the output of the process.
Since
4.0

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
public
public
HttpGet(final URI uri)

public
HttpGet(final String uri)

Method Summary

Modifier and TypeMethod and Description
public String
getMethod()

Implements abstract org.apache.http.client.methods.HttpRequestBase.getMethod.

Implements org.apache.http.client.methods.HttpUriRequest.getMethod.

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
Inherited from org.apache.http.client.methods.HttpRequestBase:
getConfiggetProtocolVersiongetRequestLinegetURIreleaseConnectionsetConfigsetProtocolVersionsetURIstartedtoString

Field Detail

METHOD_NAMEback to summary
public static final String METHOD_NAME

Constructor Detail

HttpGetback to summary
public HttpGet()
HttpGetback to summary
public HttpGet(final URI uri)
HttpGetback to summary
public HttpGet(final String uri)
Exceptions
IllegalArgumentException:
if the uri is invalid.

Method Detail

getMethodback to summary
public String getMethod()

Implements abstract org.apache.http.client.methods.HttpRequestBase.getMethod.

Implements org.apache.http.client.methods.HttpUriRequest.getMethod.

Doc from org.apache.http.client.methods.HttpUriRequest.getMethod.

Returns the HTTP method this request uses, such as GET, PUT, POST, or other.

Annotations
@Override