接口 LifeCycleHandler
- 所有已知实现类:
MethodLifeCycleHandler,NoneLifeCycleHandler
public interface LifeCycleHandler
Forest生命周期处理器
- 从以下版本开始:
- 2017-05-19 16:49
- 作者:
- gongjun[jun.gong@thebeastshop.com]
-
方法概要
修饰符和类型方法说明byte[]handleBodyEncode(ForestRequest request, ForestEncoder encoder, byte[] encodedData) voidhandleCanceled(ForestRequest request, ForestResponse response) handleError(ForestRequest request, ForestResponse response) handleError(ForestRequest request, ForestResponse response, Throwable ex) handleFuture(ForestRequest request, Future resultData) voidhandleInvokeMethod(ForestRequest request, ForestMethod method, Object[] args) voidhandleLoadCookie(ForestRequest request, ForestCookies cookies) voidhandleProgress(ForestRequest request, ForestProgress progress) handleResult(Object resultData) handleResultType(ForestRequest request, ForestResponse response) handleResultType(ForestRequest request, ForestResponse response, Type resultType, Class resultClass) voidhandleSaveCookie(ForestRequest request, ForestCookies cookies) voidhandleSuccess(Object resultData, ForestRequest request, ForestResponse response) handleSync(ForestRequest request, ForestResponse response) handleSyncWithException(ForestRequest request, ForestResponse response, Throwable ex)
-
方法详细资料
-
handleSync
-
handleSyncWithException
-
handleResultType
-
handleResultType
Object handleResultType(ForestRequest request, ForestResponse response, Type resultType, Class resultClass) -
handleSuccess
-
handleInvokeMethod
-
handleError
-
handleError
-
handleBodyEncode
-
handleCanceled
-
handleProgress
-
handleLoadCookie
-
handleSaveCookie
-
handleResult
-
handleFuture
-
getOnSuccessClassGenericType
Type getOnSuccessClassGenericType() -
getResultType
Type getResultType()
-