Class RedirectConfigurationProperties.ForbiddenRedirectConfigurationProperties

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean DEFAULT_ENABLED
      The default enabled value for forbidden.
      static java.lang.String DEFAULT_FORBIDDEN
      The default forbidden rejection target URL.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getUrl()  
      boolean isEnabled()  
      void setEnabled​(boolean enabled)
      Whether it should redirect on forbidden rejections.
      void setUrl​(java.lang.String url)
      Where the user is redirected to after trying to access a secured route which he is forbidden to access.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_ENABLED

        public static final boolean DEFAULT_ENABLED
        The default enabled value for forbidden.
        See Also:
        Constant Field Values
      • DEFAULT_FORBIDDEN

        public static final java.lang.String DEFAULT_FORBIDDEN
        The default forbidden rejection target URL.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ForbiddenRedirectConfigurationProperties

        public ForbiddenRedirectConfigurationProperties()
    • Method Detail

      • setUrl

        public void setUrl​(@NonNull
                           java.lang.String url)
        Where the user is redirected to after trying to access a secured route which he is forbidden to access. Default value ("/").
        Parameters:
        url - The URL
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface io.micronaut.core.util.Toggleable
      • setEnabled

        public void setEnabled​(boolean enabled)
        Whether it should redirect on forbidden rejections. Default value (true).
        Parameters:
        enabled - The enabled flag