org.apache.http.client.methods
Class HttpPost
java.lang.Object
org.apache.http.message.AbstractHttpMessage
org.apache.http.client.methods.HttpPost
- All Implemented Interfaces:
- AbortableHttpRequest, HttpUriRequest, org.apache.http.HttpEntityEnclosingRequest, org.apache.http.HttpMessage, org.apache.http.HttpRequest
public class HttpPost
- extends org.apache.http.message.AbstractHttpMessage
HTTP POST method.
The HTTP POST method is defined in section 9.5 of
RFC2616:
The POST method is used to request that the origin server accept the entity
enclosed in the request as a new subordinate of the resource identified by
the Request-URI in the Request-Line. POST is designed to allow a uniform
method to cover the following functions:
- Annotation of existing resources
- Posting a message to a bulletin board, newsgroup, mailing list, or
similar group of articles
- Providing a block of data, such as the result of submitting a form,
to a data-handling process
- Extending a database through an append operation
- Since:
- 4.0
- Version:
- $Revision: 528433 $
Methods inherited from class org.apache.http.message.AbstractHttpMessage |
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, 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.HttpRequest |
getRequestLine |
Methods inherited from interface org.apache.http.HttpMessage |
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getHttpVersion, getLastHeader, getParams, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams |
METHOD_NAME
public static final java.lang.String METHOD_NAME
- See Also:
- Constant Field Values
HttpPost
public HttpPost()
HttpPost
public HttpPost(java.net.URI uri)
HttpPost
public HttpPost(java.lang.String uri)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod
in interface HttpUriRequest
getEntity
public org.apache.http.HttpEntity getEntity()
- Specified by:
getEntity
in interface org.apache.http.HttpEntityEnclosingRequest
setEntity
public void setEntity(org.apache.http.HttpEntity entity)
- Specified by:
setEntity
in interface org.apache.http.HttpEntityEnclosingRequest
expectContinue
public boolean expectContinue()
- Specified by:
expectContinue
in interface org.apache.http.HttpEntityEnclosingRequest
getHttpVersion
public org.apache.http.HttpVersion getHttpVersion()
- Specified by:
getHttpVersion
in interface HttpUriRequest
- Specified by:
getHttpVersion
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.