Package org.spincast.plugins.routing
Class SpincastRoutingRequestContextAddon<R extends RequestContext<R>>
java.lang.Object
org.spincast.plugins.routing.SpincastRoutingRequestContextAddon<R>
- All Implemented Interfaces:
RoutingRequestContextAddon<R>
public class SpincastRoutingRequestContextAddon<R extends RequestContext<R>>
extends Object
implements RoutingRequestContextAddon<R>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe current route handler being run (may be a filter) and its associated information.protected RouteHandlerMatch<R>
int
The current route handler position.protected R
The routing result for the current request, as returned by the router.boolean
Are we currently on an "Exception" routing type?boolean
Is the current route forwarded?boolean
Are we currently on a "Not Found" routing type?
-
Constructor Details
-
SpincastRoutingRequestContextAddon
-
-
Method Details
-
getRequestContext
-
getCurrentRouteMatch
-
getPosition
public int getPosition()Description copied from interface:RoutingRequestContextAddon
The current route handler position. If < 0 : is a "before" handler. If == 0 : is the main handler. If > 0 : is an "after" handler.- Specified by:
getPosition
in interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
getCurrentRouteHandlerMatch
Description copied from interface:RoutingRequestContextAddon
The current route handler being run (may be a filter) and its associated information.- Specified by:
getCurrentRouteHandlerMatch
in interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
getRoutingResult
Description copied from interface:RoutingRequestContextAddon
The routing result for the current request, as returned by the router.- Specified by:
getRoutingResult
in interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
isNotFoundRoute
public boolean isNotFoundRoute()Description copied from interface:RoutingRequestContextAddon
Are we currently on a "Not Found" routing type?- Specified by:
isNotFoundRoute
in interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
isExceptionRoute
public boolean isExceptionRoute()Description copied from interface:RoutingRequestContextAddon
Are we currently on an "Exception" routing type?- Specified by:
isExceptionRoute
in interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
isForwarded
public boolean isForwarded()Description copied from interface:RoutingRequestContextAddon
Is the current route forwarded?- Specified by:
isForwarded
in interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-