Package org.forgerock.json.resource.http
Interface HttpContextFactory
-
- All Known Implementing Classes:
SecurityContextFactory
public interface HttpContextFactoryA factory which is responsible for creating new requestContexts for each JSON request. The returned context must include aRootContextas 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 ContextcreateContext(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.
-
-