public abstract class BaseMiddleware extends Object implements Middleware
| Constructor and Description |
|---|
BaseMiddleware() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleException(Context context)
Handle the context includes exception object
|
Request |
handleRequest(Context context)
Handle the context includes request object
|
Response |
handleResponse(Context context)
Handle the context includes response object
|
public Request handleRequest(Context context) throws UCloudException
MiddlewarehandleRequest in interface Middlewarecontext - Context of invoking lifecycleUCloudException - the exception during invokingpublic Response handleResponse(Context context) throws UCloudException
MiddlewarehandleResponse in interface Middlewarecontext - Context of invoking lifecycleUCloudException - the exception during invokingpublic void handleException(Context context) throws UCloudException
MiddlewarehandleException in interface Middlewarecontext - Context of invoking lifecycleUCloudException - the exception during invokingCopyright © 2024. All rights reserved.