Class ErrorPageProvider.ErrorPageConfig

  • Enclosing class:
    ErrorPageProvider

    public static class ErrorPageProvider.ErrorPageConfig
    extends java.lang.Object
    Use this class to configure the error page you want to get.
    Author:
    sts
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean showErrorMessage
      Indicates if the error page should show error message.
      protected boolean showErrorType
      Indicates if the error page should show the error type.
      protected boolean showStatusCode
      Indicates if the error page should show the error status code.
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorPageConfig​(boolean showStatusCode, boolean showErrorMessage, boolean showErrorType)
      Constructor.
    • Field Detail

      • showStatusCode

        protected boolean showStatusCode
        Indicates if the error page should show the error status code.
      • showErrorMessage

        protected boolean showErrorMessage
        Indicates if the error page should show error message.
      • showErrorType

        protected boolean showErrorType
        Indicates if the error page should show the error type.
    • Constructor Detail

      • ErrorPageConfig

        public ErrorPageConfig​(boolean showStatusCode,
                               boolean showErrorMessage,
                               boolean showErrorType)
        Constructor.
        Parameters:
        showStatusCode - indicates if the status code should be shown.
        showErrorMessage - indicates if the error message should be shown.
        showErrorType - indicates if the error type should be shown.
    • Method Detail

      • allFalse

        public static ErrorPageProvider.ErrorPageConfig allFalse()
        Creates a ErrorPageConfig object with all parameters to false.
        Returns:
        a ErrorPageConfig object with all parameters to false.