org.apache.http.client.methods

## Class HttpDelete

- java.lang.Object
- - org.apache.http.message.AbstractHttpMessage
  - - org.apache.http.client.methods.AbstractExecutionAwareRequest
    - - org.apache.http.client.methods.HttpRequestBase
      - - org.apache.http.client.methods.HttpDelete

- All Implemented Interfaces:
    Cloneable ， AbortableHttpRequest ， Configurable ， HttpExecutionAware ， HttpUriRequest ， HttpMessage ， HttpRequest

      public class HttpDelete
      extends HttpRequestBase

  HTTP DELETE方法

  HTTP DELETE方法在RFC2616的 9.7节中定义 ：

  > The DELETE method requests that the origin server delete the resource identified by the Request-URI. [...] The client cannot be guaranteed that the operation has been carried out, even if the status code returned from the origin server indicates that the action has been completed successfully.

  从以下版本开始：
    4

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `METHOD_NAME`

    - ### Fields inherited from class org.apache.http.message.AbstractHttpMessage

      `headergroup, params`

  - ### 构造方法摘要

    构造方法
    Constructor and Description
    `HttpDelete()`
    `HttpDelete(String uri)`
    `HttpDelete(URI uri)`

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getMethod()` 返回该请求使用HTTP方法，如 `GET` ， `PUT` ， `POST` ，或其他。

    - ### Methods inherited from class org.apache.http.client.methods.HttpRequestBase

      `getConfig, getProtocolVersion, getRequestLine, getURI, releaseConnection, setConfig, setProtocolVersion, setURI, started, toString`

    - ### Methods inherited from class org.apache.http.client.methods.AbstractExecutionAwareRequest

      `abort, clone, completed, isAborted, reset, setCancellable, setConnectionRequest, setReleaseTrigger`

    - ### Methods inherited from class org.apache.http.message.AbstractHttpMessage

      `addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.apache.http.client.methods.HttpUriRequest

      `abort, isAborted`

    - ### Methods inherited from interface org.apache.http.HttpMessage

      `addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams`

- - ### 字段详细信息

    - #### METHOD_NAME

          public static final String METHOD_NAME

      另请参见：
        Constant Field Values

  - ### 构造方法详细信息

    - #### HttpDelete

          public HttpDelete()

    - #### HttpDelete

          public HttpDelete(URI uri)

    - #### HttpDelete

          public HttpDelete(String uri)

      异常
        `IllegalArgumentException` - 如果uri无效。

  - ### 方法详细信息

    - #### getMethod

          public String getMethod()

      说明从界面： `HttpUriRequest`复制
      返回该请求使用HTTP方法，如 `GET` ， `PUT` ， `POST` ，或其他。
      Specified by:
        `getMethod`在接口 `HttpUriRequest`
      Specified by:
        `getMethod`在 `HttpRequestBase`

Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.

本帮助文档是使用 《谷歌翻译》翻译，请与英文版配合使用 by--QQ:654638585