Record Class AccessDecision.RerouteWithParameter<T>
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.authorization.navigation.AccessDecision.RerouteWithParameter<T>
- Type Parameters:
T- parameter type- Record Components:
target- the target routeparameter- the route parameter
- All Implemented Interfaces:
AccessDecision
- Enclosing interface:
AccessDecision
public static record AccessDecision.RerouteWithParameter<T>(String target, T parameter)
extends Record
implements AccessDecision
Access is denied and should reroute with one route parameter.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AccessDecision
AccessDecision.Granted, AccessDecision.Reroute, AccessDecision.RerouteToError, AccessDecision.RerouteWithParameter<T>, AccessDecision.RerouteWithParameters<T>Modifier and TypeInterfaceDescriptionstatic final recordAccess is granted.static final recordAccess is denied and should redirect to a target route.static final recordAccess is denied and should reroute to an error page.static final recordAccess is denied and should reroute with one route parameter.static final recordAccess is denied and should reroute with multiple route parameters. -
Constructor Summary
ConstructorsConstructorDescriptionRerouteWithParameter(String target, T parameter) Creates an instance of aRerouteWithParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparameterrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RerouteWithParameter
-
-
Method Details
-
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). -
target
-
parameter
-