Package io.micronaut.starter.feature
Record Class InterceptUrlMap
java.lang.Object
java.lang.Record
io.micronaut.starter.feature.InterceptUrlMap
- Record Components:
pattern- the URL pattern to interceptaccess- the access rule for the URL pattern
Represents a security URL pattern and its associated access rule.
-
Constructor Summary
ConstructorsConstructorDescriptionInterceptUrlMap(@NonNull String pattern, @NonNull String access) Creates an instance of aInterceptUrlMaprecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull Stringaccess()Returns the value of theaccessrecord component.static InterceptUrlMapanonymousAcccess(@NonNull String pattern) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull Stringpattern()Returns the value of thepatternrecord component.toMap()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
anonymousAcccess
-
toMap
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
access
Returns the value of theaccessrecord component.- Returns:
- the value of the
accessrecord component
-