Enum DefaultFilter

  • All Implemented Interfaces:
    Serializable, Comparable<DefaultFilter>

    public enum DefaultFilter
    extends Enum<DefaultFilter>
    Enum representing all of the default Shiro Filter instances available to web applications. Each filter instance is typically accessible in configuration the name of the enum constant.
    Since:
    1.0
    • Method Detail

      • values

        public static DefaultFilter[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DefaultFilter c : DefaultFilter.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DefaultFilter valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • newInstance

        public javax.servlet.Filter newInstance()
      • getFilterClass

        public Class<? extends javax.servlet.Filter> getFilterClass()
      • createInstanceMap

        public static Map<String,​javax.servlet.Filter> createInstanceMap​(javax.servlet.FilterConfig config)