Package cn.ucloud.common.middlewares
Class CredentialMiddleware
java.lang.Object
cn.ucloud.common.middleware.BaseMiddleware
cn.ucloud.common.middlewares.CredentialMiddleware
- All Implemented Interfaces:
Middleware
CredentialMiddleware is the middleware to calculate signature and inject into request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleRequest(Context context) Handle the context includes request objectMethods inherited from class cn.ucloud.common.middleware.BaseMiddleware
handleException, handleResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cn.ucloud.common.middleware.Middleware
handleException, handleResponse
-
Constructor Details
-
CredentialMiddleware
public CredentialMiddleware()
-
-
Method Details
-
handleRequest
Description copied from interface:MiddlewareHandle the context includes request object- Specified by:
handleRequestin interfaceMiddleware- Overrides:
handleRequestin classBaseMiddleware- Parameters:
context- Context of invoking lifecycle- Returns:
- request object that modified
- Throws:
UCloudException- the exception during invoking
-