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

public Class HttpPatch

extends HttpEntityEnclosingRequestBase
Class Inheritance
Imports
java.net.URI

Deprecated

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

HTTP PATCH method.

The HTTP PATCH method is defined in RF5789:

The PATCH method requests that a set of changes described in the request entity be applied to the resource identified by the Request- URI. Differs from the PUT method in the way the server processes the enclosed entity to modify the resource identified by the Request-URI. In a PUT request, the enclosed entity origin server, and the client is requesting that the stored version be replaced. With PATCH, however, the enclosed entity contains a set of instructions describing how a resource currently residing on the origin server should be modified to produce a new version.
Since
4.2

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
public
public
HttpPatch(final URI uri)

public
HttpPatch(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

HttpPatchback to summary
public HttpPatch()
HttpPatchback to summary
public HttpPatch(final URI uri)
HttpPatchback to summary
public HttpPatch(final String uri)

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