Package cn.ucloud.common.middlewares
Class ValidationMiddleware
java.lang.Object
cn.ucloud.common.middleware.BaseMiddleware
cn.ucloud.common.middlewares.ValidationMiddleware
- All Implemented Interfaces:
Middleware
ValidationMiddleware is a middleware to inject common configuration
-
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
-
ValidationMiddleware
public ValidationMiddleware()
-
-
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
-