Enum Class Expires

java.lang.Object
java.lang.Enum<Expires>
de.businesscode.bcdui.web.cacheControl.Expires
All Implemented Interfaces:
Serializable, Comparable<Expires>, Constable

public enum Expires extends 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 Details

    • 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
    • ExpiresNever

      public static final Expires ExpiresNever
  • Method Details

    • values

      public static Expires[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Expires valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • computeExpirationValue

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