Package org.forgerock.opendj.server.core
Class AbstractContext
- java.lang.Object
-
- org.forgerock.opendj.server.core.AbstractContext
-
- All Implemented Interfaces:
org.forgerock.services.context.Context
- Direct Known Subclasses:
ConnectionContext
,RequestContext
,RoutingContext
public abstract class AbstractContext extends Object implements org.forgerock.services.context.Context
A base implementation of theContext
interface for OpenDJ.It is simpler and lighter than the one provided in chf-http-core because it does not need to support persistence.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.forgerock.services.context.Context>
TasContext(Class<T> clazz)
boolean
containsContext(Class<? extends org.forgerock.services.context.Context> clazz)
boolean
containsContext(String contextName)
org.forgerock.services.context.Context
getContext(String contextName)
String
getContextName()
String
getId()
org.forgerock.services.context.Context
getParent()
String
getRootId()
boolean
isRootContext()
JsonValue
toJsonValue()
String
toString()
-
-
-
Method Detail
-
asContext
public final <T extends org.forgerock.services.context.Context> T asContext(Class<T> clazz)
- Specified by:
asContext
in interfaceorg.forgerock.services.context.Context
-
getContext
public final org.forgerock.services.context.Context getContext(String contextName)
- Specified by:
getContext
in interfaceorg.forgerock.services.context.Context
-
containsContext
public final boolean containsContext(Class<? extends org.forgerock.services.context.Context> clazz)
- Specified by:
containsContext
in interfaceorg.forgerock.services.context.Context
-
containsContext
public final boolean containsContext(String contextName)
- Specified by:
containsContext
in interfaceorg.forgerock.services.context.Context
-
getId
public final String getId()
- Specified by:
getId
in interfaceorg.forgerock.services.context.Context
-
getRootId
public String getRootId()
- Specified by:
getRootId
in interfaceorg.forgerock.services.context.Context
-
getParent
public final org.forgerock.services.context.Context getParent()
- Specified by:
getParent
in interfaceorg.forgerock.services.context.Context
-
isRootContext
public final boolean isRootContext()
- Specified by:
isRootContext
in interfaceorg.forgerock.services.context.Context
-
toJsonValue
public final JsonValue toJsonValue()
- Specified by:
toJsonValue
in interfaceorg.forgerock.services.context.Context
-
getContextName
public final String getContextName()
- Specified by:
getContextName
in interfaceorg.forgerock.services.context.Context
-
-