org.apache.http.impl.client

## Class EntityEnclosingRequestWrapper

- java.lang.Object
- - org.apache.http.message.AbstractHttpMessage
  - - org.apache.http.impl.client.RequestWrapper
    - - org.apache.http.impl.client.EntityEnclosingRequestWrapper

- All Implemented Interfaces:
    HttpUriRequest ， HttpEntityEnclosingRequest ， HttpMessage ， HttpRequest

  已过时。
  （4.3）不要使用。

      @Deprecated
      public class EntityEnclosingRequestWrapper
      extends RequestWrapper
      implements HttpEntityEnclosingRequest

  `HttpEntityEnclosingRequest`的包装类，可用于更改当前请求的属性，而无需修改原始对象。

  该类还可以将请求标头重置为原始请求的状态。

  从以下版本开始：
    4

- - ### Field Summary

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

      `headergroup, params`

  - ### 构造方法摘要

    构造方法
    Constructor and Description
    `EntityEnclosingRequestWrapper(HttpEntityEnclosingRequest request)` 已过时。

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `expectContinue()` 已过时。
    `HttpEntity` | `getEntity()` 已过时。
    `boolean` | `isRepeatable()` 已过时。
    `void` | `setEntity(HttpEntity entity)` 已过时。

    - ### Methods inherited from class org.apache.http.impl.client.RequestWrapper

      `abort, getExecCount, getMethod, getOriginal, getProtocolVersion, getRequestLine, getURI, incrementExecCount, isAborted, resetHeaders, setMethod, setProtocolVersion, setURI`

    - ### 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

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

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

      `getRequestLine`

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

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

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

    - #### EntityEnclosingRequestWrapper

          public EntityEnclosingRequestWrapper(HttpEntityEnclosingRequest request)
                                        throws ProtocolException

      已过时。
      异常
        `ProtocolException`

  - ### 方法详细信息

    - #### getEntity

          public HttpEntity getEntity()

      已过时。
      Specified by:
        `getEntity`在接口 `HttpEntityEnclosingRequest`

    - #### setEntity

          public void setEntity(HttpEntity entity)

      已过时。
      Specified by:
        `setEntity`在接口 `HttpEntityEnclosingRequest`

    - #### expectContinue

          public boolean expectContinue()

      已过时。
      Specified by:
        `expectContinue`在接口 `HttpEntityEnclosingRequest`

    - #### isRepeatable

          public boolean isRepeatable()

      已过时。
      重写：
        `isRepeatable`在 `RequestWrapper`

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

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