public interface HttpContextFactory
Context
s for
each JSON request. The returned context must include a
RootContext
as its root and may include
zero or more sub-contexts.
As an example, a context factory may return a context chain which includes authentication state information.
Modifier and Type | Method and Description |
---|---|
org.forgerock.services.context.Context |
createContext(org.forgerock.services.context.Context parent,
org.forgerock.http.protocol.Request request)
Returns the context which should be used for the provided HTTP request.
|
org.forgerock.services.context.Context createContext(org.forgerock.services.context.Context parent, org.forgerock.http.protocol.Request request) throws ResourceException
parent
- The parent context.request
- The HTTP request which is about to be processed.ResourceException
- If a request context could not be obtained.Copyright 2010-2018 ForgeRock AS.