com.aliyuncs.http
类 HttpRequest
java.lang.Object
com.aliyuncs.http.HttpRequest
- 直接已知子类:
- AcsRequest, HttpResponse
public class HttpRequest
- extends Object
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTENT_TYPE
protected static final String CONTENT_TYPE
- 另请参见:
- 常量字段值
CONTENT_MD5
protected static final String CONTENT_MD5
- 另请参见:
- 常量字段值
CONTENT_LENGTH
protected static final String CONTENT_LENGTH
- 另请参见:
- 常量字段值
contentType
protected FormatType contentType
content
protected byte[] content
encoding
protected String encoding
headers
protected Map<String,String> headers
connectTimeout
protected Integer connectTimeout
readTimeout
protected Integer readTimeout
HttpRequest
public HttpRequest(String strUrl)
HttpRequest
public HttpRequest(String strUrl,
Map<String,String> tmpHeaders)
HttpRequest
public HttpRequest()
getUrl
public String getUrl()
setUrl
protected void setUrl(String url)
getEncoding
public String getEncoding()
setEncoding
public void setEncoding(String encoding)
getContentType
public FormatType getContentType()
setContentType
public void setContentType(FormatType contentType)
getMethod
public MethodType getMethod()
setMethod
public void setMethod(MethodType method)
getContent
public byte[] getContent()
getHeaderValue
public String getHeaderValue(String name)
getConnectTimeout
public Integer getConnectTimeout()
setConnectTimeout
public void setConnectTimeout(Integer connectTimeout)
getReadTimeout
public Integer getReadTimeout()
setReadTimeout
public void setReadTimeout(Integer readTimeout)
putHeaderParameter
public void putHeaderParameter(String name,
String value)
setContent
public void setContent(byte[] content,
String encoding,
FormatType format)
getHeaders
public Map<String,String> getHeaders()
getHttpConnection
public HttpURLConnection getHttpConnection()
throws IOException
- 抛出:
IOException
Copyright © 2017. All Rights Reserved.