public abstract class HttpMessage extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected Integer |
connectTimeout |
protected static String |
CONTENT_LENGTH |
protected static String |
CONTENT_MD5 |
protected static String |
CONTENT_TYPE |
protected String |
encoding |
protected Map<String,String> |
headers |
protected byte[] |
httpContent |
protected FormatType |
httpContentType |
protected Integer |
readTimeout |
| 构造器和说明 |
|---|
HttpMessage() |
HttpMessage(String strUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getHeaderValue(String name) |
byte[] |
getHttpContent() |
String |
getHttpContentString() |
FormatType |
getHttpContentType() |
Integer |
getSysConnectTimeout() |
String |
getSysEncoding() |
Map<String,String> |
getSysHeaders() |
MethodType |
getSysMethod() |
Integer |
getSysReadTimeout() |
String |
getSysUrl() |
static String |
md5Sum(byte[] buff) |
void |
putHeaderParameter(String name,
String value) |
void |
setHttpContent(byte[] content,
String encoding,
FormatType format) |
void |
setHttpContentType(FormatType httpContentType) |
void |
setSysConnectTimeout(Integer connectTimeout) |
void |
setSysEncoding(String encoding) |
void |
setSysMethod(MethodType method) |
void |
setSysReadTimeout(Integer readTimeout) |
void |
setSysUrl(String url) |
protected FormatType httpContentType
protected byte[] httpContent
protected String encoding
protected Integer connectTimeout
protected Integer readTimeout
public HttpMessage(String strUrl)
public HttpMessage()
public FormatType getHttpContentType()
public void setHttpContentType(FormatType httpContentType)
public byte[] getHttpContent()
public void setHttpContent(byte[] content,
String encoding,
FormatType format)
throws NoSuchAlgorithmException
public static String md5Sum(byte[] buff) throws NoSuchAlgorithmException
public String getHttpContentString() throws CredentialException
public String getSysUrl()
public void setSysUrl(String url)
public MethodType getSysMethod()
public void setSysMethod(MethodType method)
public String getSysEncoding()
public void setSysEncoding(String encoding)
public Integer getSysConnectTimeout()
public void setSysConnectTimeout(Integer connectTimeout)
public Integer getSysReadTimeout()
public void setSysReadTimeout(Integer readTimeout)
Copyright © 2020. All rights reserved.