Enum Expires

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Expires>

    public enum Expires
    extends java.lang.Enum<Expires>
    Enum with all supported expires values. Each value implements the method public long computeExpirationValue(String param) throws Exception for calculation next expiration date.
    • Enum Constant Detail

      • ExpiresAbsTime

        public static final Expires ExpiresAbsTime
      • ExpiresAbsDow

        public static final Expires ExpiresAbsDow
      • ExpiresAbsDatetime

        public static final Expires ExpiresAbsDatetime
      • ExpiresRelDays

        public static final Expires ExpiresRelDays
      • ExpiresRelTime

        public static final Expires ExpiresRelTime
      • CacheRequestDirective

        public static final Expires CacheRequestDirective
    • Method Detail

      • values

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

        public static Expires 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
      • computeExpirationValue

        public abstract long computeExpirationValue​(java.lang.String param)
                                             throws java.lang.Exception
        Method computeExpirationValue
        Parameters:
        param -
        Returns:
        the next expiration date depends on expire value.
        Throws:
        java.lang.Exception