com.aliyuncs.http
类 HttpRequest

java.lang.Object
  继承者 com.aliyuncs.http.HttpRequest
直接已知子类:
AcsRequest, HttpResponse

public class HttpRequest
extends Object


字段摘要
protected  Integer connectTimeout
           
protected  byte[] content
           
protected static String CONTENT_LENGTH
           
protected static String CONTENT_MD5
           
protected static String CONTENT_TYPE
           
protected  FormatType contentType
           
protected  String encoding
           
protected  Map<String,String> headers
           
protected  Integer readTimeout
           
 
构造方法摘要
HttpRequest()
           
HttpRequest(String strUrl)
           
HttpRequest(String strUrl, Map<String,String> tmpHeaders)
           
 
方法摘要
 Integer getConnectTimeout()
           
 byte[] getContent()
           
 FormatType getContentType()
           
 String getEncoding()
           
 Map<String,String> getHeaders()
           
 String getHeaderValue(String name)
           
 HttpURLConnection getHttpConnection()
           
 MethodType getMethod()
           
 Integer getReadTimeout()
           
 String getUrl()
           
 void putHeaderParameter(String name, String value)
           
 void setConnectTimeout(Integer connectTimeout)
           
 void setContent(byte[] content, String encoding, FormatType format)
           
 void setContentType(FormatType contentType)
           
 void setEncoding(String encoding)
           
 void setMethod(MethodType method)
           
 void setReadTimeout(Integer readTimeout)
           
protected  void setUrl(String url)
           
 
从类 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.