Package org.forgerock.json.resource.http
Interface HttpContextFactory
-
- All Known Implementing Classes:
SecurityContextFactory
public interface HttpContextFactory
A factory which is responsible for creating new requestContext
s for each JSON request. The returned context must include aRootContext
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Context
createContext(Context parent, Request request)
Returns the context which should be used for the provided HTTP request.
-
-
-
Method Detail
-
createContext
Context createContext(Context parent, Request request) throws ResourceException
Returns the context which should be used for the provided HTTP request.- Parameters:
parent
- The parent context.request
- The HTTP request which is about to be processed.- Returns:
- The context which should be used for the provided HTTP request.
- Throws:
ResourceException
- If a request context could not be obtained.
-
-