public class DownloadLifeCycle extends Object implements MethodAnnotationLifeCycle<DownloadFile,Object>
Constructor and Description |
---|
DownloadLifeCycle() |
Modifier and Type | Method and Description |
---|---|
void |
onInvokeMethod(ForestRequest request,
ForestMethod method,
Object[] args) |
void |
onMethodInitialized(ForestMethod method,
DownloadFile annotation) |
void |
onSuccess(Object data,
ForestRequest request,
ForestResponse response)
请求成功后调用该方法
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onError
addAttribute, afterExecute, beforeExecute, getAttribute, getAttribute, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsString, getAttributes, onLoadCookie, onProgress, onSaveCookie
public void onMethodInitialized(ForestMethod method, DownloadFile annotation)
onMethodInitialized
in interface MethodAnnotationLifeCycle<DownloadFile,Object>
public void onInvokeMethod(ForestRequest request, ForestMethod method, Object[] args)
onInvokeMethod
in interface Interceptor<Object>
public void onSuccess(Object data, ForestRequest request, ForestResponse response)
OnSuccess
onSuccess
in interface OnSuccess<Object>
onSuccess
in interface MethodAnnotationLifeCycle<DownloadFile,Object>
data
- 请求响应返回后经过序列化后的数据request
- Forest请求对象response
- Forest响应对象Copyright © 2020. All rights reserved.