类 BinaryBodyLifeCycle
java.lang.Object
com.dtflys.forest.lifecycles.parameter.AbstractBodyLifeCycle<BinaryBody>
com.dtflys.forest.lifecycles.parameter.BinaryBodyLifeCycle
- 所有已实现的接口:
OnCanceled,OnError,OnLoadCookie,OnProgress,OnRedirection,OnRetry,OnSaveCookie,OnSuccess<Object>,Interceptor<Object>,ParameterAnnotationLifeCycle<BinaryBody,Object>
Forest @JSONBody注解的生命周期
- 从以下版本开始:
- 1.5.0-BETA9
- 作者:
- gongjun[dt_flys@hotmail.com]
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanbeforeExecute(ForestRequest request) 默认回调函数: 请求执行前调用该方法voidonParameterInitialized(ForestMethod method, MappingParameter parameter, BinaryBody annotation) 在被注解修饰的方法参数初始化时被调用从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.dtflys.forest.interceptor.Interceptor
addAttribute, afterExecute, getAttribute, getAttribute, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsString, getAttributes, onBodyEncode, onCanceled, onInvokeMethod, onLoadCookie, onProgress, onRedirection, onRetry, onSaveCookie从接口继承的方法 com.dtflys.forest.lifecycles.ParameterAnnotationLifeCycle
onError, onSuccess
-
构造器详细资料
-
BinaryBodyLifeCycle
public BinaryBodyLifeCycle()
-
-
方法详细资料
-
onParameterInitialized
public void onParameterInitialized(ForestMethod method, MappingParameter parameter, BinaryBody annotation) 从接口复制的说明:ParameterAnnotationLifeCycle在被注解修饰的方法参数初始化时被调用- 指定者:
onParameterInitialized在接口中ParameterAnnotationLifeCycle<BinaryBody,Object> - 覆盖:
onParameterInitialized在类中AbstractBodyLifeCycle<BinaryBody>- 参数:
method-ForestMethod对象parameter-MappingParameter对象annotation- 该生命周期类所绑定的注解对象
-
beforeExecute
从接口复制的说明:Interceptor默认回调函数: 请求执行前调用该方法其返回值为布尔类型,可以控制请求是否继续执行
默认为什么都不做
- 参数:
request- Forest请求对象- 返回:
true: 继续执行该请求, 否则中断请求
-