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