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 SummaryConstructorsConstructorDescriptionExpiresConfiguration(ExpiresFilter.StartingPoint startingPoint, List<ExpiresFilter.Duration> durations) Creates an instance of aExpiresConfigurationrecord class.
- 
Method SummaryModifier 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- 
ExpiresConfigurationpublic ExpiresConfiguration(ExpiresFilter.StartingPoint startingPoint, List<ExpiresFilter.Duration> durations) Creates an instance of aExpiresConfigurationrecord class.- Parameters:
- startingPoint- the value for the- startingPointrecord component
- durations- the value for the- durationsrecord component
 
 
- 
- 
Method Details- 
getDurations
- 
getStartingPoint
- 
toString
- 
hashCode
- 
equalsIndicates 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).
- 
startingPointReturns the value of thestartingPointrecord component.- Returns:
- the value of the startingPointrecord component
 
- 
durations
 
-