Interface Middleware

All Known Implementing Classes:
BaseMiddleware, CredentialMiddleware, LogMiddleware, ValidationMiddleware

public interface Middleware
  • Method Details

    • handleRequest

      Request handleRequest(Context context) throws UCloudException
      Handle the context includes request object
      Parameters:
      context - Context of invoking lifecycle
      Returns:
      request object that modified
      Throws:
      UCloudException - the exception during invoking
    • handleResponse

      Response handleResponse(Context context) throws UCloudException
      Handle the context includes response object
      Parameters:
      context - Context of invoking lifecycle
      Returns:
      response object that modified
      Throws:
      UCloudException - the exception during invoking
    • handleException

      void handleException(Context context) throws UCloudException
      Handle the context includes exception object
      Parameters:
      context - Context of invoking lifecycle
      Throws:
      UCloudException - the exception during invoking