Record Class AccessDecision.RerouteToError
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.authorization.navigation.AccessDecision.RerouteToError
- Record Components:
type- the exception class for the error pagemessage- optional error message (may be null)
- All Implemented Interfaces:
AccessDecision
- Enclosing interface:
AccessDecision
public static record AccessDecision.RerouteToError(Class<? extends Exception> type, String message)
extends Record
implements AccessDecision
Access is denied and should reroute to an error page.
-
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
ConstructorsConstructorDescriptionRerouteToError(Class<? extends Exception> type, String message) Creates an instance of aRerouteToErrorrecord 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.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
RerouteToError
-
-
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). -
type
-
message
-