com.aliyun.oss.common.comm

## 类 RequestMessage

- java.lang.Object
- - com.aliyun.oss.common.comm.HttpMesssage
  - - com.aliyun.oss.common.comm.RequestMessage

-     public class RequestMessage
      extends HttpMesssage

  Represent HTTP requests sent to OSS.

- - ### 构造器概要

    构造器
    构造器和说明
    `RequestMessage(String bucketName, String key)`
    `RequestMessage(WebServiceRequest originalRequest, String bucketName, String key)`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addParameter(String key, String value)`
    `URL` | `getAbsoluteUrl()`
    `String` | `getBucket()`
    `URI` | `getEndpoint()`
    `String` | `getKey()`
    `HttpMethod` | `getMethod()`
    `WebServiceRequest` | `getOriginalRequest()`
    `Map<String,String>` | `getParameters()`
    `String` | `getResourcePath()`
    `boolean` | `isRepeatable()` Indicate whether the request should be repeatedly sent.
    `boolean` | `isUseChunkEncoding()`
    `boolean` | `isUseUrlSignature()`
    `void` | `removeParameter(String key)`
    `void` | `setAbsoluteUrl(URL absoluteUrl)`
    `void` | `setBucket(String bucket)`
    `void` | `setEndpoint(URI endpoint)`
    `void` | `setKey(String key)`
    `void` | `setMethod(HttpMethod method)`
    `void` | `setParameters(Map<String,String> parameters)`
    `void` | `setResourcePath(String resourcePath)`
    `void` | `setUseChunkEncoding(boolean useChunkEncoding)`
    `void` | `setUseUrlSignature(boolean useUrlSignature)`
    `String` | `toString()`

    - ### 从类继承的方法 com.aliyun.oss.common.comm.HttpMesssage

      `addHeader, close, getContent, getContentLength, getHeaders, setContent, setContentLength, setHeaders`

    - ### 从类继承的方法 java.lang.Object

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

- - ### 构造器详细资料

    - #### RequestMessage

          public RequestMessage(String bucketName,
                        String key)

    - #### RequestMessage

          public RequestMessage(WebServiceRequest originalRequest,
                        String bucketName,
                        String key)

  - ### 方法详细资料

    - #### getMethod

          public HttpMethod getMethod()

    - #### setMethod

          public void setMethod(HttpMethod method)

    - #### getEndpoint

          public URI getEndpoint()

    - #### setEndpoint

          public void setEndpoint(URI endpoint)

    - #### getResourcePath

          public String getResourcePath()

    - #### setResourcePath

          public void setResourcePath(String resourcePath)

    - #### getParameters

          public Map<String,String> getParameters()

    - #### setParameters

          public void setParameters(Map<String,String> parameters)

    - #### addParameter

          public void addParameter(String key,
                          String value)

    - #### removeParameter

          public void removeParameter(String key)

    - #### isRepeatable

          public boolean isRepeatable()

      Indicate whether the request should be repeatedly sent.

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`

    - #### getAbsoluteUrl

          public URL getAbsoluteUrl()

    - #### setAbsoluteUrl

          public void setAbsoluteUrl(URL absoluteUrl)

    - #### isUseUrlSignature

          public boolean isUseUrlSignature()

    - #### setUseUrlSignature

          public void setUseUrlSignature(boolean useUrlSignature)

    - #### isUseChunkEncoding

          public boolean isUseChunkEncoding()

    - #### setUseChunkEncoding

          public void setUseChunkEncoding(boolean useChunkEncoding)

    - #### getOriginalRequest

          public WebServiceRequest getOriginalRequest()

    - #### getBucket

          public String getBucket()

    - #### setBucket

          public void setBucket(String bucket)

    - #### getKey

          public String getKey()

    - #### setKey

          public void setKey(String key)

Copyright © 2020. All Rights Reserved.