Record Class AccessDecision.RerouteWithParameters<T>
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.authorization.navigation.AccessDecision.RerouteWithParameters<T>
- Type Parameters:
T- parameter type- Record Components:
target- the target routeparameters- route parameters
- All Implemented Interfaces:
AccessDecision
- Enclosing interface:
AccessDecision
public static record AccessDecision.RerouteWithParameters<T>(String target, List<T> parameters)
extends Record
implements AccessDecision
Access is denied and should reroute with multiple route parameters.
-
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
ConstructorsConstructorDescriptionRerouteWithParameters(String target, List<T> parameters) Creates an instance of aRerouteWithParametersrecord 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 theparametersrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RerouteWithParameters
Creates an instance of aRerouteWithParametersrecord class.- Parameters:
target- the value for thetargetrecord componentparameters- the value for theparametersrecord component
-
-
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
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-