Package cn.ucloud.common.middleware
Interface Middleware
-
- All Known Implementing Classes:
BaseMiddleware,CredentialMiddleware,LogMiddleware,ValidationMiddleware
public interface Middleware
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleException(Context context)Handle the context includes exception objectRequesthandleRequest(Context context)Handle the context includes request objectResponsehandleResponse(Context context)Handle the context includes response object
-
-
-
Method Detail
-
handleRequest
Request handleRequest(Context context) throws UCloudException
Handle the context includes request object- Parameters:
context- Context of invoking lifecycle- Returns:
- request object that modified
- Throws:
UCloudException- the exception during invoking
-
handleResponse
Response handleResponse(Context context) throws UCloudException
Handle the context includes response object- Parameters:
context- Context of invoking lifecycle- Returns:
- response object that modified
- Throws:
UCloudException- the exception during invoking
-
handleException
void handleException(Context context) throws UCloudException
Handle the context includes exception object- Parameters:
context- Context of invoking lifecycle- Throws:
UCloudException- the exception during invoking
-
-