public abstract class AbstractDJContext extends Object implements org.forgerock.services.context.Context
Context
interface for OpenDJ.
It is simpler and lighter than the one provided in chf-http-core because it does not need to support persistence.
Modifier | Constructor and Description |
---|---|
protected |
AbstractDJContext(org.forgerock.services.context.Context parent)
Constructs a new
AbstractContext with a null id . |
protected |
AbstractDJContext(String id,
org.forgerock.services.context.Context parent)
Constructs a new
AbstractContext . |
Modifier and Type | Method and Description |
---|---|
<T extends org.forgerock.services.context.Context> |
asContext(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 |
getId() |
org.forgerock.services.context.Context |
getParent() |
boolean |
isRootContext() |
org.forgerock.json.JsonValue |
toJsonValue() |
String |
toString() |
protected AbstractDJContext(org.forgerock.services.context.Context parent)
AbstractContext
with a null
id
.parent
- The parent context.protected AbstractDJContext(String id, org.forgerock.services.context.Context parent)
AbstractContext
.id
- The id of the context.parent
- The parent context.public final <T extends org.forgerock.services.context.Context> T asContext(Class<T> clazz)
asContext
in interface org.forgerock.services.context.Context
public final org.forgerock.services.context.Context getContext(String contextName)
getContext
in interface org.forgerock.services.context.Context
public final boolean containsContext(Class<? extends org.forgerock.services.context.Context> clazz)
containsContext
in interface org.forgerock.services.context.Context
public final boolean containsContext(String contextName)
containsContext
in interface org.forgerock.services.context.Context
public final String getId()
getId
in interface org.forgerock.services.context.Context
public final org.forgerock.services.context.Context getParent()
getParent
in interface org.forgerock.services.context.Context
public final boolean isRootContext()
isRootContext
in interface org.forgerock.services.context.Context
public org.forgerock.json.JsonValue toJsonValue()
toJsonValue
in interface org.forgerock.services.context.Context
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.