Class RoutingContext
java.lang.Object
org.forgerock.services.context.AbstractContext
org.forgerock.openig.handler.router.RoutingContext
- All Implemented Interfaces:
Context
Context implementation to maintain a record of the route that accepted the request.-
Field Summary
FieldsFields inherited from class org.forgerock.services.context.AbstractContext
data -
Constructor Summary
ConstructorsConstructorDescriptionRoutingContext(Context parent, String routeId, String routeName) Create a new instance of aRoutingContext. -
Method Summary
Modifier and TypeMethodDescriptionGet the route ID.Get the route name.static StringReturn the route ID from theContextif it contains aRoutingContextor theDEFAULT_ROUTE_IDif not found.Methods inherited from class org.forgerock.services.context.AbstractContext
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
-
Field Details
-
DEFAULT_ROUTE_ID
- See Also:
-
-
Constructor Details
-
RoutingContext
Create a new instance of aRoutingContext.- Parameters:
parent- the parent contextrouteId- the route IDrouteName- the route name
-
-
Method Details
-
getRouteId
Get the route ID.- Returns:
- the route ID
-
getRouteName
Get the route name.- Returns:
- the route name
-
routeId
Return the route ID from theContextif it contains aRoutingContextor theDEFAULT_ROUTE_IDif not found.- Parameters:
context- theContext- Returns:
- the route ID from the
Contextif it contains aRoutingContextor theDEFAULT_ROUTE_IDif not found.
-