Class 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 the 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.

    • Method Detail

      • asContext

        public final <T extends org.forgerock.services.context.Context> T asContext​(Class<T> clazz)
        Specified by:
        asContext in interface org.forgerock.services.context.Context
      • getContext

        public final org.forgerock.services.context.Context getContext​(String contextName)
        Specified by:
        getContext in interface org.forgerock.services.context.Context
      • containsContext

        public final boolean containsContext​(Class<? extends org.forgerock.services.context.Context> clazz)
        Specified by:
        containsContext in interface org.forgerock.services.context.Context
      • containsContext

        public final boolean containsContext​(String contextName)
        Specified by:
        containsContext in interface org.forgerock.services.context.Context
      • getId

        public final String getId()
        Specified by:
        getId in interface org.forgerock.services.context.Context
      • getRootId

        public String getRootId()
        Specified by:
        getRootId in interface org.forgerock.services.context.Context
      • getParent

        public final org.forgerock.services.context.Context getParent()
        Specified by:
        getParent in interface org.forgerock.services.context.Context
      • isRootContext

        public final boolean isRootContext()
        Specified by:
        isRootContext in interface org.forgerock.services.context.Context
      • toJsonValue

        public final JsonValue toJsonValue()
        Specified by:
        toJsonValue in interface org.forgerock.services.context.Context
      • getContextName

        public final String getContextName()
        Specified by:
        getContextName in interface org.forgerock.services.context.Context