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 aExpiresConfiguration
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedurations
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thestartingPoint
record 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 aExpiresConfiguration
record class.- Parameters:
startingPoint
- the value for thestartingPoint
record componentdurations
- the value for thedurations
record 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 thestartingPoint
record component.- Returns:
- the value of the
startingPoint
record component
-
durations
-