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

public Class HttpPost

extends HttpEntityEnclosingRequestBase
Class Inheritance
Imports
java.net.URI

Deprecated

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

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:
Since
4.0

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
public
public
HttpPost(final URI uri)

public
HttpPost(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.HttpEntityEnclosingRequestBase:
cloneexpectContinuegetEntitysetEntity

Field Detail

METHOD_NAMEback to summary
public static final String METHOD_NAME

Constructor Detail

HttpPostback to summary
public HttpPost()
HttpPostback to summary
public HttpPost(final URI uri)
HttpPostback to summary
public HttpPost(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