接口 Middleware
public interface Middleware
-
方法概要
修饰符和类型方法说明voidhandleException(Context context) Handle the context includes exception objecthandleRequest(Context context) Handle the context includes request objecthandleResponse(Context context) Handle the context includes response object
-
方法详细资料
-
handleRequest
Handle the context includes request object- 参数:
context- Context of invoking lifecycle- 返回:
- request object that modified
- 抛出:
UCloudException- the exception during invoking
-
handleResponse
Handle the context includes response object- 参数:
context- Context of invoking lifecycle- 返回:
- response object that modified
- 抛出:
UCloudException- the exception during invoking
-
handleException
Handle the context includes exception object- 参数:
context- Context of invoking lifecycle- 抛出:
UCloudException- the exception during invoking
-