public class HttpGet extends HttpRequestBase
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.
Modifier and Type | Field and Description |
---|---|
static String |
METHOD_NAME |
Constructor and Description |
---|
HttpGet() |
HttpGet(String uri) |
HttpGet(URI uri) |
Modifier and Type | Method and Description |
---|---|
String |
getMethod()
Returns the HTTP method this request uses, such as
GET ,
PUT , POST , or other. |
getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toString
abort, clone, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
abort, isAborted
public static final String METHOD_NAME
public HttpGet()
public HttpGet(URI uri)
public HttpGet(String uri)
IllegalArgumentException
- if the uri is invalid.public String getMethod()
HttpUriRequest
GET
,
PUT
, POST
, or other.getMethod
in interface HttpUriRequest
getMethod
in class HttpRequestBase
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.