com.microsoft.tfs.core.httpclient.methods
Class PatchMethod

java.lang.Object
  extended by com.microsoft.tfs.core.httpclient.HttpMethodBase
      extended by com.microsoft.tfs.core.httpclient.methods.ExpectContinueMethod
          extended by com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod
              extended by com.microsoft.tfs.core.httpclient.methods.PutMethod
                  extended by com.microsoft.tfs.core.httpclient.methods.PatchMethod
All Implemented Interfaces:
HttpMethod

public class PatchMethod
extends PutMethod

Implements the HTTP PATCH method.

The HTTP PATCH method is defined in section 19.6.1.1 of RFC2068:

The PATCH method is similar to PUT except that the entity contains a list of differences between the original version of the resource identified by the Request-URI and the desired content of the resource after the PATCH action has been applied.


Field Summary
 
Fields inherited from class com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod
CONTENT_LENGTH_AUTO, CONTENT_LENGTH_CHUNKED
 
Fields inherited from class com.microsoft.tfs.core.httpclient.HttpMethodBase
effectiveVersion, statusLine
 
Constructor Summary
PatchMethod()
          No-arg constructor.
PatchMethod(java.lang.String uri)
          Constructor specifying a URI.
 
Method Summary
 java.lang.String getName()
          Return "PATCH".
 
Methods inherited from class com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod
addContentLengthRequestHeader, addRequestHeaders, clearRequestBody, generateRequestBody, generateRequestEntity, getFollowRedirects, getRequestCharSet, getRequestContentLength, getRequestEntity, hasRequestContent, recycle, setContentChunked, setFollowRedirects, setRequestBody, setRequestBody, setRequestContentLength, setRequestContentLength, setRequestEntity, writeRequestBody
 
Methods inherited from class com.microsoft.tfs.core.httpclient.methods.ExpectContinueMethod
getUseExpectHeader, setUseExpectHeader
 
Methods inherited from class com.microsoft.tfs.core.httpclient.HttpMethodBase
abort, addCookieRequestHeader, addHostRequestHeader, addProxyConnectionHeader, addRequestHeader, addRequestHeader, addResponseFooter, addUserAgentRequestHeader, checkNotUsed, checkUsed, execute, generateRequestLine, getContentCharSet, getDoAuthentication, getEffectiveVersion, getHostAuthState, getHostConfiguration, getMethodRetryHandler, getParams, getPath, getProxyAuthState, getQueryString, getRecoverableExceptionCount, getRequestHeader, getRequestHeaderGroup, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaderGroup, getResponseHeaders, getResponseHeaders, getResponseStream, getResponseTrailerHeaderGroup, getStatusCode, getStatusLine, getStatusText, getURI, hasBeenUsed, isAborted, isConnectionCloseForced, isHttp11, isRequestSent, isStrictMode, processCookieHeaders, processResponseBody, processResponseHeaders, processStatusLine, readResponse, readResponseBody, readResponseHeaders, readStatusLine, releaseConnection, removeRequestHeader, removeRequestHeader, responseBodyConsumed, setConnectionCloseForced, setDoAuthentication, setHostConfiguration, setHttp11, setMethodRetryHandler, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setResponseStream, setStrictMode, setURI, shouldCloseConnection, validate, writeRequest, writeRequestHeaders, writeRequestLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatchMethod

public PatchMethod()
No-arg constructor.


PatchMethod

public PatchMethod(java.lang.String uri)
Constructor specifying a URI.

Parameters:
uri - either an absolute or relative URI
Method Detail

getName

public java.lang.String getName()
Return "PATCH".

Specified by:
getName in interface HttpMethod
Overrides:
getName in class PutMethod
Returns:
"PATCH"


© 2015 Microsoft. All rights reserved.