public class

HttpPut

extends HttpEntityEnclosingRequestBase
java.lang.Object
   ↳ org.apache.http.message.AbstractHttpMessage
     ↳ org.apache.http.client.methods.HttpRequestBase
       ↳ org.apache.http.client.methods.HttpEntityEnclosingRequestBase
         ↳ org.apache.http.client.methods.HttpPut

Class Overview

HTTP PUT method.

The HTTP PUT method is defined in section 9.6 of RFC2616:

The PUT method requests that the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a modified version of the one residing on the origin server.

Summary

Constants
String METHOD_NAME
[Expand]
Inherited Fields
From class org.apache.http.message.AbstractHttpMessage
Public Constructors
HttpPut()
HttpPut(URI uri)
HttpPut(String uri)
Public Methods
String getMethod()
Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
[Expand]
Inherited Methods
From class org.apache.http.client.methods.HttpEntityEnclosingRequestBase
From class org.apache.http.client.methods.HttpRequestBase
From class org.apache.http.message.AbstractHttpMessage
From class java.lang.Object
From interface org.apache.http.HttpEntityEnclosingRequest
From interface org.apache.http.HttpMessage
From interface org.apache.http.HttpRequest
From interface org.apache.http.client.methods.AbortableHttpRequest
From interface org.apache.http.client.methods.HttpUriRequest

Constants

public static final String METHOD_NAME

Since: API Level 1

Constant Value: "PUT"

Public Constructors

public HttpPut ()

Since: API Level 1

public HttpPut (URI uri)

Since: API Level 1

public HttpPut (String uri)

Since: API Level 1

Throws
IllegalArgumentException if the uri is invalid.

Public Methods

public String getMethod ()

Since: API Level 1

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