Package cn.ucloud.common.middlewares
Class CredentialMiddleware
- java.lang.Object
-
- cn.ucloud.common.middleware.BaseMiddleware
-
- cn.ucloud.common.middlewares.CredentialMiddleware
-
- All Implemented Interfaces:
Middleware
public class CredentialMiddleware extends BaseMiddleware implements Middleware
CredentialMiddleware is the middleware to calculate signature and inject into request
-
-
Constructor Summary
Constructors Constructor Description CredentialMiddleware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequesthandleRequest(Context context)Handle the context includes request object-
Methods inherited from class cn.ucloud.common.middleware.BaseMiddleware
handleException, handleResponse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cn.ucloud.common.middleware.Middleware
handleException, handleResponse
-
-
-
-
Method Detail
-
handleRequest
public Request handleRequest(Context context) throws UCloudException
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
-
-