Class AbstractBaseController

java.lang.Object
com.aquima.web.api.controller.v2.AbstractBaseController
Direct Known Subclasses:
AuthenticationController, DocumentController, FileDownloadController, FileUploadController, ImageBaseController, LanguageController, SessionController, StartControllerBase

public abstract class AbstractBaseController extends Object
Provides Exception handling for all API controllers in the ServerContext. Normally, all exceptions in this context are resolved through DefaultAquimaExceptionResolverController and that behavior is not changed for backwards compatibility. By extending this class, aforementioned global exception resolver is no longer considered.
Since:
11.0
Author:
j.koehoorn
  • Constructor Details Link icon

    • AbstractBaseController Link icon

      public AbstractBaseController()
  • Method Details Link icon

    • handleUnknownApplicationException Link icon

      @ExceptionHandler(com.aquima.interactions.portal.exception.UnknownApplicationException.class) @ResponseStatus(NOT_FOUND) @ResponseBody public JsonError handleUnknownApplicationException(com.aquima.interactions.portal.exception.UnknownApplicationException exception)
    • handleUnknownModuleException Link icon

      @ExceptionHandler(com.aquima.interactions.portal.exception.UnknownModuleException.class) @ResponseStatus(NOT_FOUND) @ResponseBody public JsonError handleUnknownModuleException(com.aquima.interactions.portal.exception.UnknownModuleException exception)
    • handleUnknownFlowException Link icon

      @ExceptionHandler(com.aquima.interactions.flow.exception.UnknownFlowException.class) @ResponseStatus(NOT_FOUND) @ResponseBody public JsonError handleUnknownFlowException(com.aquima.interactions.flow.exception.UnknownFlowException exception)
    • handleUnknownFunctionFlowException Link icon

      @ExceptionHandler(com.aquima.interactions.flow.exception.UnknownFunctionFlowException.class) @ResponseStatus(NOT_FOUND) @ResponseBody public JsonError handleUnknownFunctionFlowException(com.aquima.interactions.flow.exception.UnknownFunctionFlowException exception)
    • handleUnsupportedOpenApiSpecException Link icon

      @ExceptionHandler(UnsupportedOpenApiSpecException.class) @ResponseStatus(NOT_FOUND) @ResponseBody public JsonError handleUnsupportedOpenApiSpecException(UnsupportedOpenApiSpecException exception)
    • handleFlowEndedException Link icon

      @ExceptionHandler(FlowEndedException.class) @ResponseStatus(INTERNAL_SERVER_ERROR) @ResponseBody public JsonError handleFlowEndedException(FlowEndedException exception)
    • handleFunctionValidationException Link icon

      @ExceptionHandler(org.springframework.http.converter.HttpMessageNotReadableException.class) @ResponseStatus(BAD_REQUEST) @ResponseBody public JsonError handleFunctionValidationException(org.springframework.http.converter.HttpMessageNotReadableException exception)
    • handleFunctionValidationException Link icon

      @ExceptionHandler(com.aquima.interactions.portal.function.FunctionValidationException.class) @ResponseStatus(BAD_REQUEST) @ResponseBody public com.aquima.web.api.controller.v2.JsonValidationError handleFunctionValidationException(com.aquima.interactions.portal.function.FunctionValidationException exception)
    • handleConversionException Link icon

      @ExceptionHandler(org.springframework.core.convert.ConversionException.class) @ResponseStatus(INTERNAL_SERVER_ERROR) @ResponseBody public JsonError handleConversionException(org.springframework.core.convert.ConversionException exception)
    • handleForbiddenException Link icon

      @ExceptionHandler(ForbiddenException.class) @ResponseStatus(FORBIDDEN) @ResponseBody public JsonError handleForbiddenException(ForbiddenException exception)
    • handleUnknownSessionException Link icon

      @ExceptionHandler(com.blueriq.component.api.exception.UnknownSessionException.class) @ResponseStatus(NOT_FOUND) @ResponseBody public JsonError handleUnknownSessionException(com.blueriq.component.api.exception.UnknownSessionException exception)
    • handleRequestWardException Link icon

      @ExceptionHandler(RequestWardException.class) @ResponseStatus(BAD_REQUEST) @ResponseBody public JsonError handleRequestWardException(RequestWardException ex)
    • handleMethodArgumentTypeMismatchException Link icon

      @ExceptionHandler(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException.class) public JsonError handleMethodArgumentTypeMismatchException(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException exception, jakarta.servlet.http.HttpServletResponse response)
    • handleUnknownLanguageException Link icon

      @ExceptionHandler(com.aquima.interactions.metamodel.exception.UnknownLanguageException.class) @ResponseStatus(NOT_FOUND) @ResponseBody public JsonError handleUnknownLanguageException(com.aquima.interactions.metamodel.exception.UnknownLanguageException ex)
    • handleUnknownShortcutException Link icon

      @ExceptionHandler(UnknownShortcutException.class) @ResponseStatus(NOT_FOUND) @ResponseBody public JsonError handleUnknownShortcutException(UnknownShortcutException exception)
    • handleEmptySymptomException Link icon

      @ExceptionHandler(com.aquima.interactions.foundation.exception.EmptySymptomException.class) @ResponseStatus(BAD_REQUEST) @ResponseBody public JsonError handleEmptySymptomException(com.aquima.interactions.foundation.exception.EmptySymptomException exception)
    • handleDecisionTreeNotExposedException Link icon

      @ExceptionHandler(com.aquima.interactions.framework.handler.dtree.exceptions.DecisionTreeNotExposedException.class) @ResponseStatus(BAD_REQUEST) @ResponseBody public JsonError handleDecisionTreeNotExposedException(com.aquima.interactions.framework.handler.dtree.exceptions.DecisionTreeNotExposedException exception)
    • handleUnauthorizedException Link icon

      @ExceptionHandler(UnauthorizedException.class) @ResponseStatus(UNAUTHORIZED) @ResponseBody public JsonError handleUnauthorizedException()
    • clientParametersException Link icon

      @ExceptionHandler(ClientParameterException.class) @ResponseStatus(BAD_REQUEST) @ResponseBody public JsonError clientParametersException(ClientParameterException exception)
    • handleStartApplicationForbiddenException Link icon

      @ExceptionHandler(StartApplicationForbiddenException.class) @ResponseStatus(FORBIDDEN) @ResponseBody public JsonError handleStartApplicationForbiddenException(StartApplicationForbiddenException exception)
    • handleStartShortcutForbiddenException Link icon

      @ExceptionHandler(StartShortcutForbiddenException.class) @ResponseStatus(FORBIDDEN) @ResponseBody public JsonError handleStartShortcutForbiddenException(StartShortcutForbiddenException exception)
    • isAuthenticated Link icon

      protected final boolean isAuthenticated(com.aquima.interactions.project.IUserData user)