|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.baidu.driver4j.bns.http.AbstractHttpRequestExecutor
public abstract class AbstractHttpRequestExecutor
Pre-implements serialization of Protobuf objects and deserialization of Protobuf objects.
| 字段摘要 | |
|---|---|
static String |
CONTENT_TYPE_SERIALIZED_OBJECT
Default content type: "application/x-java-serialized-object" |
protected static String |
ENCODING_GZIP
|
protected static String |
HTTP_HEADER_ACCEPT_ENCODING
|
protected static String |
HTTP_HEADER_ACCEPT_LANGUAGE
|
protected static String |
HTTP_HEADER_CONTENT_ENCODING
|
protected static String |
HTTP_HEADER_CONTENT_LENGTH
|
protected static String |
HTTP_HEADER_CONTENT_TYPE
|
protected static String |
HTTP_METHOD_GET
|
protected static String |
HTTP_METHOD_POST
|
| 构造方法摘要 | |
|---|---|
AbstractHttpRequestExecutor()
|
|
| 方法摘要 | |
|---|---|
int |
getConnectTimeout()
|
String |
getContentType()
Return the content type to use for sending HTTP invoker requests. |
int |
getReadTimeout()
|
boolean |
isAcceptGzipEncoding()
Return whether to accept GZIP encoding, that is, whether to send the HTTP "Accept-Encoding" header with "gzip" as value. |
void |
setAcceptGzipEncoding(boolean acceptGzipEncoding)
Set whether to accept GZIP encoding, that is, whether to send the HTTP "Accept-Encoding" header with "gzip" as value. |
void |
setConnectTimeout(int connectTimeout)
|
void |
setContentType(String contentType)
Specify the content type to use for sending HTTP invoker requests. |
void |
setReadTimeout(int readTimeout)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String CONTENT_TYPE_SERIALIZED_OBJECT
protected static final String HTTP_METHOD_POST
protected static final String HTTP_METHOD_GET
protected static final String HTTP_HEADER_ACCEPT_LANGUAGE
protected static final String HTTP_HEADER_ACCEPT_ENCODING
protected static final String HTTP_HEADER_CONTENT_ENCODING
protected static final String HTTP_HEADER_CONTENT_TYPE
protected static final String HTTP_HEADER_CONTENT_LENGTH
protected static final String ENCODING_GZIP
| 构造方法详细信息 |
|---|
public AbstractHttpRequestExecutor()
| 方法详细信息 |
|---|
public void setContentType(String contentType)
Default is "application/x-java-serialized-object".
public String getContentType()
public void setAcceptGzipEncoding(boolean acceptGzipEncoding)
Default is "true". Turn this flag off if you do not want GZIP response compression even if enabled on the HTTP server.
public boolean isAcceptGzipEncoding()
public void setConnectTimeout(int connectTimeout)
public int getConnectTimeout()
public void setReadTimeout(int readTimeout)
public int getReadTimeout()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||