序列化表格
-
程序包 com.dtflys.forest.backend.httpclient
-
类 com.dtflys.forest.backend.httpclient.HttpclientCookie
class HttpclientCookie extends ForestCookie implements Serializable
-
-
程序包 com.dtflys.forest.backend.okhttp3
-
类 com.dtflys.forest.backend.okhttp3.OkHttp3Cookie
class OkHttp3Cookie extends ForestCookie implements Serializable
-
-
程序包 com.dtflys.forest.config
-
类 com.dtflys.forest.config.ForestConfiguration
class ForestConfiguration extends Object implements Serializable-
序列化字段
-
ASYNC_POOL_LOCK
Object ASYNC_POOL_LOCK
Forest异步请求线程池同步锁 -
asyncMode
ForestAsyncMode asyncMode
异步模式 -
asyncPool
ThreadPoolExecutor asyncPool
Forest异步请求线程池- 从以下版本开始:
- 1.5.29
-
asyncRejectPolicyClass
Class<? extends RejectedExecutionHandler> asyncRejectPolicyClass
异步线程池拒绝策略类型 -
autoRedirection
boolean autoRedirection
是否自动重定向开关 -
backend
HttpBackend backend
HTTP后端 -
backendClientCache
ForestCache<String,
Object> backendClientCache 后端客户端对象缓存 -
backendClientCacheExpireTime
Duration backendClientCacheExpireTime
后端客户端对象缓存过期时间 -
backendClientCacheMaxSize
Integer backendClientCacheMaxSize
后端客户端对象缓存最大空间大小 -
backendName
String backendName
HTTP后端名称现有后端包括:okhttp3 和 httpclient 两个
-
baseAddress
ForestAddress baseAddress
全局默认地址(主机名/域名/ip地址 + 端口号) -
baseAddressSourceClass
Class<? extends AddressSource> baseAddressSourceClass
全局默认的主机地址信息动态来源接口实现类 -
cacheEnabled
boolean cacheEnabled
是否缓存请求接口实例 -
charset
String charset
全局的请求数据字符集 -
CLIENT_PROXY_FACTORY_CACHE
Map<Class<?>,
ProxyFactory<?>> CLIENT_PROXY_FACTORY_CACHE -
connectTimeout
Integer connectTimeout
全局的请求连接超时时间,单位为毫秒 -
converterMap
Map<ForestDataType,
ForestConverter> converterMap 全局数据转换器表 -
defaultHeaders
List<RequestNameValue> defaultHeaders
全局默认请求头信息 -
defaultParameters
List<RequestNameValue> defaultParameters
全局默认请求参数列表 -
filterRegisterMap
Map<String,
Class> filterRegisterMap 全局过滤器注册表 -
forestObjectFactory
ForestObjectFactory forestObjectFactory
Forest对象实例化工厂 -
httpBackendSelector
HttpBackendSelector httpBackendSelector
HTTP后端选择器 -
id
String id
-
instanceCache
Map<Class,
Object> instanceCache 请求接口的实例缓存,用于缓存请求接口的动态代理的实例 -
interceptorFactory
InterceptorFactory interceptorFactory
拦截器工厂 -
interceptors
List<Class<? extends Interceptor>> interceptors
全局拦截器列表 -
jsonConverterSelector
JSONConverterSelector jsonConverterSelector
全局JSON数据转换器选择器 -
logEnabled
boolean logEnabled
是否允许打印请求/响应日志 -
logHandler
ForestLogHandler logHandler
日志处理器 -
logRequest
boolean logRequest
是否允许打印请求/响应日志 -
logResponseContent
boolean logResponseContent
是否允许打印响应内容日志 -
logResponseStatus
boolean logResponseStatus
是否允许打印响应状态日志 -
maxAsyncQueueSize
Integer maxAsyncQueueSize
最大异步线程池队列大小 -
maxAsyncThreadSize
Integer maxAsyncThreadSize
最大异步线程池大小 -
maxConnections
Integer maxConnections
maximum number of conntections allowed -
maxRequestQueueSize
Integer maxRequestQueueSize
最大请求等待队列大小 -
maxRetryCount
Integer maxRetryCount
全局的最大请求失败重试次数 -
maxRetryInterval
long maxRetryInterval
全局的最大请求重试之间的时间间隔,单位为毫秒 -
maxRouteConnections
Integer maxRouteConnections
maximum number of connections allowed per route -
pool
ForestRequestPool pool
Forest请求池 -
properties
ForestProperties properties
Properties配置属性 -
readTimeout
Integer readTimeout
全局的请求读取超时时间,单位为毫秒 -
retryer
Class retryer
全局的请求失败重试策略类 -
retryWhenClass
Class<? extends RetryWhen> retryWhenClass
全局重试条件回调函数 -
sslKeyStores
Map<String,
SSLKeyStore> sslKeyStores SSL的Key Store集合 -
sslProtocol
String sslProtocol
全局的单向HTTPS请求的SSL协议,默认为 TLSv1.2 -
successWhenClass
Class<? extends SuccessWhen> successWhenClass
全局请求成功条件回调函数类 -
timeout
Integer timeout
全局的请求超时时间,单位为毫秒 -
variables
Map<String,
ForestVariableValue> variables 全局变量表
-
-
-
-
程序包 com.dtflys.forest.converter.json
-
类 com.dtflys.forest.converter.json.JSONConverterSelector
class JSONConverterSelector extends Object implements Serializable-
序列化字段
-
cachedJsonConverter
ForestJsonConverter cachedJsonConverter
-
-
-
-
程序包 com.dtflys.forest.converter.protobuf
-
类 com.dtflys.forest.converter.protobuf.ForestProtobufConverterManager
class ForestProtobufConverterManager extends Object implements Serializable-
序列化字段
-
forestProtobufConverter
ForestProtobufConverter forestProtobufConverter
-
messageClass
Class messageClass
-
supportProtobuf
Boolean supportProtobuf
-
-
-
-
程序包 com.dtflys.forest.exceptions
-
异常错误 com.dtflys.forest.exceptions.ForestAbortException
class ForestAbortException extends ForestPoolException implements Serializable-
序列化字段
-
pool
ForestRequestPool pool
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestAsyncAbortException
class ForestAsyncAbortException extends ForestPoolException implements Serializable-
序列化字段
-
pool
ThreadPoolExecutor pool
-
task
Runnable task
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestConvertException
class ForestConvertException extends ForestRuntimeException implements Serializable-
序列化字段
-
converterClass
Class<? extends org.joda.time.convert.Converter> converterClass
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestFileNotFoundException
class ForestFileNotFoundException extends ForestRuntimeException implements Serializable-
序列化字段
-
filePath
String filePath
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestHandlerException
class ForestHandlerException extends ForestRuntimeException implements Serializable-
序列化字段
-
request
ForestRequest request
-
response
ForestResponse response
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestInterceptorDefineException
class ForestInterceptorDefineException extends ForestRuntimeException implements Serializable-
序列化字段
-
interceptorClass
Class<?> interceptorClass
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestNetworkException
class ForestNetworkException extends ForestRuntimeException implements Serializable-
序列化字段
-
response
ForestResponse response
-
statusCode
Integer statusCode
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestNoFileNameException
class ForestNoFileNameException extends ForestRuntimeException implements Serializable-
序列化字段
-
parameterType
Class<?> parameterType
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestPoolException
class ForestPoolException extends ForestRuntimeException implements Serializable-
序列化字段
-
request
ForestRequest request
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestRetryException
class ForestRetryException extends ForestRuntimeException implements Serializable-
序列化字段
-
currentRetryCount
int currentRetryCount
-
maxRetryCount
int maxRetryCount
-
needRetry
boolean needRetry
-
request
ForestRequest request
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestReturnException
class ForestReturnException extends ForestRuntimeException implements Serializable-
序列化字段
-
classOfReturnTypeParameter
Class<?> classOfReturnTypeParameter
ReturnType注解所修饰的参数的类型
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestRuntimeException
class ForestRuntimeException extends RuntimeException implements Serializable -
异常错误 com.dtflys.forest.exceptions.ForestTemplateSyntaxError
class ForestTemplateSyntaxError extends ForestRuntimeException implements Serializable -
异常错误 com.dtflys.forest.exceptions.ForestUnsupportException
class ForestUnsupportException extends ForestRuntimeException implements Serializable-
序列化字段
-
unsupported
String unsupported
-
-
-
异常错误 com.dtflys.forest.exceptions.ForestVariableUndefinedException
class ForestVariableUndefinedException extends ForestRuntimeException implements Serializable-
序列化字段
-
annotationType
Class<? extends Annotation> annotationType
-
attributeName
String attributeName
-
method
ForestMethod method
-
source
String source
-
variableName
String variableName
-
-
-
-
程序包 com.dtflys.forest.http
-
类 com.dtflys.forest.http.ForestCookie
class ForestCookie extends Object implements Serializable-
序列化字段
-
createTime
Date createTime
创建时间 -
domain
String domain
域名 -
hostOnly
boolean hostOnly
是否仅限主机名匹配 -
httpOnly
boolean httpOnly
是否仅限HTTP方式读取 -
maxAge
Duration maxAge
最大时长 -
name
String name
Cookie名称 -
path
String path
路径 -
persistent
boolean persistent
是否持久化 -
secure
boolean secure
是否仅限HTTPS -
value
String value
Cookie内容
-
-
-
-
程序包 com.dtflys.forest.lifecycles.authorization
-
类 com.dtflys.forest.lifecycles.authorization.OAuth2Token
class OAuth2Token extends Object implements Serializable-
序列化字段
-
access_token
String access_token
access token字符串 -
errcode
Object errcode
- 另请参阅:
-
OAuth2Token.error
-
errmsg
Object errmsg
- 另请参阅:
-
OAuth2Token.error_description
-
error
Object error
错误代码。 错误代码的KEY,在 Spring Security OAuth2 情况下通常是 error,但是发现在微信公众号的返回是 errcode -
error_description
Object error_description
错误内容描述。 错误内容描述的KEY,在 Spring Security OAuth2 情况下通常是 error_description,但是发现在微信公众号的返回是 errmsg -
expires_in
Long expires_in
超时时间 -
refresh_token
String refresh_token
refresh token字符串 -
token_type
String token_type
token类型
-
-
-