Record Class AccessDecision.Reroute
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.authorization.navigation.AccessDecision.Reroute
- Record Components:
target- the route to redirect toasForward- if true, use forward instead of reroute
- All Implemented Interfaces:
AccessDecision
- Enclosing interface:
AccessDecision
public static record AccessDecision.Reroute(String target, boolean asForward)
extends Record
implements AccessDecision
Access is denied and should redirect to a target route.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theasForwardrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Reroute
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
target
-
asForward
-