Class ControllerConfigurationProperties

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean DEFAULT_ENABLED
      The default enable value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPath()  
      boolean isEnabled()  
      void setEnabled​(boolean enabled)
      Enables the controller.
      void setPath​(java.lang.String path)
      Path to the controller.
      • 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 enable value.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ControllerConfigurationProperties

        public ControllerConfigurationProperties​(java.lang.String path)
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface io.micronaut.core.util.Toggleable
        Returns:
        true if you want to enable the Controller.
      • getPath

        @NonNull
        public java.lang.String getPath()
        Specified by:
        getPath in interface ControllerConfiguration
        Returns:
        the path where the controller is enabled.
      • setEnabled

        public void setEnabled​(boolean enabled)
        Enables the controller. Default value true
        Parameters:
        enabled - True if it is enabled
      • setPath

        public void setPath​(java.lang.String path)
        Path to the controller.
        Parameters:
        path - The path