Record Class ExpiresFilter.ExpiresConfiguration
java.lang.Object
java.lang.Record
org.apache.catalina.filters.ExpiresFilter.ExpiresConfiguration
- Record Components:
startingPoint- Starting point of the elapse to set in the response.durations- List of duration elements.
- Enclosing class:
ExpiresFilter
public static record ExpiresFilter.ExpiresConfiguration(ExpiresFilter.StartingPoint startingPoint, List<ExpiresFilter.Duration> durations)
extends Record
Main piece of configuration of the filter.
Can be expressed like 'access plus 1 month 15 days 2 hours'.
-
Constructor Summary
ConstructorsConstructorDescriptionExpiresConfiguration(ExpiresFilter.StartingPoint startingPoint, List<ExpiresFilter.Duration> durations) Creates an instance of aExpiresConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedurationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestartingPointrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ExpiresConfiguration
public ExpiresConfiguration(ExpiresFilter.StartingPoint startingPoint, List<ExpiresFilter.Duration> durations) Creates an instance of aExpiresConfigurationrecord class.- Parameters:
startingPoint- the value for thestartingPointrecord componentdurations- the value for thedurationsrecord component
-
-
Method Details
-
getDurations
-
getStartingPoint
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
startingPoint
Returns the value of thestartingPointrecord component.- Returns:
- the value of the
startingPointrecord component
-
durations
-