Package org.spincast.core.config
Class SpincastConstants.RequestScopedVariables
java.lang.Object
org.spincast.core.config.SpincastConstants.RequestScopedVariables
- Enclosing class:
- SpincastConstants
Request scoped variables that Spincast may set.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
If an "Exception" route is run, this variable will contain the exception that occured.static final String
If a request is forwaded, this is going to be the forwarding message (taken from theForwardRouteException
exception) The associated value is of type: String.static final String
When a route is forwarded, this is the new URL.static final String
If an "Exception" route is run, this variable will be set totrue
.static final String
If a "Not Found" route is run, this variable will be set and its value will betrue
.static final String
If a "Not Found" route is run because of aNotFoundException
has being thrown, the exception message, if any, is public and will be added using this variable.static final String
This is going to be set to the original routing result, if an "Exception" route or a "Not Found" routing process is started.static final String
The number of time a request has been forwarded.static final String
The current route handler match.static final String
The current routing result. -
Constructor Summary
-
Method Summary
-
Field Details
-
ROUTING_RESULT
The current routing result. The associated value is of type: IRoutingResult<R>. -
ROUTE_HANDLER_MATCH
The current route handler match. The associated value is of type: RouteHandlerMatch<R>. -
IS_NOT_FOUND_ROUTE
If a "Not Found" route is run, this variable will be set and its value will betrue
. The associated value is of type: boolean. -
NOT_FOUND_PUBLIC_MESSAGE
If a "Not Found" route is run because of aNotFoundException
has being thrown, the exception message, if any, is public and will be added using this variable. The associated value is of type: String. -
IS_EXCEPTION_HANDLING
If an "Exception" route is run, this variable will be set totrue
. The associated value is of type: boolean. -
EXCEPTION
If an "Exception" route is run, this variable will contain the exception that occured. The associated value is of type: Throwable. -
ORIGINAL_ROUTING_RESULT
This is going to be set to the original routing result, if an "Exception" route or a "Not Found" routing process is started. That way, the route handlers may know what the original route was. The associated value is of type: IRoutingResult<R>. -
FORWARD_ROUTE_URL
When a route is forwarded, this is the new URL. The associated value is of type: String. -
FORWARD_ROUTE_EXCEPTION_MESSAGE
If a request is forwaded, this is going to be the forwarding message (taken from theForwardRouteException
exception) The associated value is of type: String. -
ROUTE_FORWARDED_NBR
The number of time a request has been forwarded. The associated value is of type: int.
-
-
Constructor Details
-
RequestScopedVariables
public RequestScopedVariables()
-