Enum AccessEventDiscriminator.FieldName

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AccessEventDiscriminator.FieldName>
    Enclosing class:
    AccessEventDiscriminator

    public static enum AccessEventDiscriminator.FieldName
    extends java.lang.Enum<AccessEventDiscriminator.FieldName>
    At present time the followed fields can be designated: COOKIE, REQUEST_ATTRIBUTE, SESSION_ATTRIBUTE, REMOTE_ADDRESS, LOCAL_PORT,REQUEST_URI

    The first three fields require an additional key. For the SESSION_ATTRIBUTE field, the additional key named "id" has special meaning as it is mapped to the session id of the current http request.

    • Method Detail

      • values

        public static AccessEventDiscriminator.FieldName[] 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 (AccessEventDiscriminator.FieldName c : AccessEventDiscriminator.FieldName.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AccessEventDiscriminator.FieldName valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null