public abstract class HttpMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
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 |
| Constructor and Description |
|---|
HttpMessage() |
HttpMessage(String strUrl) |
| Modifier and Type | Method and Description |
|---|---|
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 static final String CONTENT_TYPE
protected static final String CONTENT_MD5
protected static final String CONTENT_LENGTH
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
NoSuchAlgorithmExceptionpublic static String md5Sum(byte[] buff) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic String getHttpContentString() throws CredentialException
CredentialExceptionpublic 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.