Package org.forgerock.opendj.server.core
Class RoutingContext
- java.lang.Object
-
- org.forgerock.opendj.server.core.AbstractContext
-
- org.forgerock.opendj.server.core.RoutingContext
-
- All Implemented Interfaces:
org.forgerock.services.context.Context
public class RoutingContext extends AbstractContext
Allows sharing the sameRequestContext
across Operations (required for subtree searches).
-
-
Constructor Summary
Constructors Constructor Description RoutingContext(String backendId, org.forgerock.services.context.Context parent)
Creates a new routing context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBackendId()
Returns the id of the backend to use to process the request.RequestContext
getRequestContext()
Returns the request context associated to this context.-
Methods inherited from class org.forgerock.opendj.server.core.AbstractContext
asContext, containsContext, containsContext, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue, toString
-
-
-
-
Constructor Detail
-
RoutingContext
public RoutingContext(String backendId, org.forgerock.services.context.Context parent)
Creates a new routing context.- Parameters:
backendId
- The backendId to use.parent
- The parent context.
-
-
Method Detail
-
getRequestContext
public RequestContext getRequestContext()
Returns the request context associated to this context.- Returns:
- the request context
-
getBackendId
public String getBackendId()
Returns the id of the backend to use to process the request.- Returns:
- the backend id
-
-