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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe current route handler being run (may be a filter) and its associated information.protected RouteHandlerMatch<R>intThe current route handler position.protected RThe routing result for the current request, as returned by the router.booleanAre we currently on an "Exception" routing type?booleanIs the current route forwarded?booleanAre we currently on a "Not Found" routing type?
-
Constructor Details
-
SpincastRoutingRequestContextAddon
-
-
Method Details
-
getRequestContext
-
getCurrentRouteMatch
-
getPosition
public int getPosition()Description copied from interface:RoutingRequestContextAddonThe current route handler position. If < 0 : is a "before" handler. If == 0 : is the main handler. If > 0 : is an "after" handler.- Specified by:
getPositionin interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
getCurrentRouteHandlerMatch
Description copied from interface:RoutingRequestContextAddonThe current route handler being run (may be a filter) and its associated information.- Specified by:
getCurrentRouteHandlerMatchin interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
getRoutingResult
Description copied from interface:RoutingRequestContextAddonThe routing result for the current request, as returned by the router.- Specified by:
getRoutingResultin interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
isNotFoundRoute
public boolean isNotFoundRoute()Description copied from interface:RoutingRequestContextAddonAre we currently on a "Not Found" routing type?- Specified by:
isNotFoundRoutein interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
isExceptionRoute
public boolean isExceptionRoute()Description copied from interface:RoutingRequestContextAddonAre we currently on an "Exception" routing type?- Specified by:
isExceptionRoutein interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-
isForwarded
public boolean isForwarded()Description copied from interface:RoutingRequestContextAddonIs the current route forwarded?- Specified by:
isForwardedin interfaceRoutingRequestContextAddon<R extends RequestContext<R>>
-