org.apache.http.client.methods
Class HttpGet
java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.client.methods.HttpGet
- All Implemented Interfaces:
- AbortableHttpRequest, HttpUriRequest, org.apache.http.HttpMessage, org.apache.http.HttpRequest
public class HttpGet
- extends org.apache.http.message.AbstractHttpMessage
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.
GetMethods will follow redirect requests from the http server by default.
This behavour can be disabled by calling setFollowRedirects(false).
- Since:
- 4.0
- Version:
- $Revision: 528433 $
Methods inherited from class org.apache.http.message.AbstractHttpMessage |
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.http.HttpMessage |
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
METHOD_NAME
public static final java.lang.String METHOD_NAME
- See Also:
- Constant Field Values
HttpGet
public HttpGet()
HttpGet
public HttpGet(java.net.URI uri)
HttpGet
public HttpGet(java.lang.String uri)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod
in interface HttpUriRequest
getProtocolVersion
public org.apache.http.ProtocolVersion getProtocolVersion()
- Specified by:
getProtocolVersion
in interface org.apache.http.HttpMessage
getURI
public java.net.URI getURI()
- Specified by:
getURI
in interface HttpUriRequest
getRequestLine
public org.apache.http.RequestLine getRequestLine()
- Specified by:
getRequestLine
in interface org.apache.http.HttpRequest
setURI
public void setURI(java.net.URI uri)
setReleaseTrigger
public void setReleaseTrigger(ConnectionReleaseTrigger releaseTrigger)
- Specified by:
setReleaseTrigger
in interface AbortableHttpRequest
abort
public void abort()
- Specified by:
abort
in interface AbortableHttpRequest
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.