public class PutMethod extends EntityEnclosingMethod
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.
CONTENT_LENGTH_AUTO, CONTENT_LENGTH_CHUNKED| Constructor and Description |
|---|
PutMethod()
No-arg constructor.
|
PutMethod(String uri)
Constructor specifying a URI.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Return "PUT".
|
getFollowRedirects, getRequestCharSet, getRequestEntity, recycle, setContentChunked, setFollowRedirects, setRequestBody, setRequestBody, setRequestContentLength, setRequestContentLength, setRequestEntitygetUseExpectHeader, setUseExpectHeaderabort, addRequestHeader, addRequestHeader, addResponseFooter, execute, getAuthenticationRealm, getDoAuthentication, getEffectiveVersion, getHostAuthState, getHostConfiguration, getMethodRetryHandler, getParams, getPath, getProxyAuthenticationRealm, getProxyAuthState, getQueryString, getRecoverableExceptionCount, getRequestHeader, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaders, getResponseHeaders, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isAborted, isHttp11, isRequestSent, isStrictMode, releaseConnection, removeRequestHeader, removeRequestHeader, setDoAuthentication, setHostConfiguration, setHttp11, setMethodRetryHandler, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setStrictMode, setURI, validatepublic PutMethod()
public PutMethod(String uri)
uri - either an absolute or relative URIpublic String getName()
getName in interface HttpMethodgetName in class HttpMethodBaseCopyright © 2010 - 2020 Adobe. All Rights Reserved