Modifier and Type | Method and Description |
---|---|
static ConnectionFactory |
newConnectionFactory(org.forgerock.http.Handler handler,
URI uri)
Creates a new
ConnectionFactory that map back and forth JSON resource objects to CHF objects. |
static org.forgerock.http.Handler |
newHttpHandler(ConnectionFactory connectionFactory)
Creates a new JSON resource HTTP Handler with the provided connection
factory and no context factory.
|
static org.forgerock.http.Handler |
newHttpHandler(ConnectionFactory connectionFactory,
org.forgerock.services.context.Context parentContext)
Creates a new JSON resource HTTP Handler with the provided connection
factory and a context factory which will always return the provided
request context.
|
static org.forgerock.http.Handler |
newHttpHandler(ConnectionFactory connectionFactory,
HttpContextFactory contextFactory)
Creates a new JSON resource HTTP Handler with the provided connection
factory and context factory.
|
static org.forgerock.http.Handler |
newHttpHandler(RequestHandler handler)
Creates a new JSON resource HTTP handler with the provided CREST request handler.
|
static RequestHandler |
newRequestHandler(org.forgerock.http.Handler handler,
URI uri)
Creates a new
RequestHandler that map back and forth JSON resource objects to CHF objects. |
public static org.forgerock.http.Handler newHttpHandler(ConnectionFactory connectionFactory)
connectionFactory
- The connection factory.Handler
.public static org.forgerock.http.Handler newHttpHandler(ConnectionFactory connectionFactory, org.forgerock.services.context.Context parentContext)
connectionFactory
- The connection factory.parentContext
- The parent request context which should be used as the parent
context of each request context.public static org.forgerock.http.Handler newHttpHandler(ConnectionFactory connectionFactory, HttpContextFactory contextFactory)
connectionFactory
- The connection factory.contextFactory
- The context factory which will be used to obtain the parent
context of each request context.public static org.forgerock.http.Handler newHttpHandler(RequestHandler handler)
handler
- The RequestHandler
.public static RequestHandler newRequestHandler(org.forgerock.http.Handler handler, URI uri)
RequestHandler
that map back and forth JSON resource objects to CHF objects.handler
- HTTP Handler
responsible for emitting the HTTP request build from JSON resource Request
s.uri
- base URI used to build the target URI for built HTTP messageRequestHandler
public static ConnectionFactory newConnectionFactory(org.forgerock.http.Handler handler, URI uri)
ConnectionFactory
that map back and forth JSON resource objects to CHF objects.
Convenience method. Note that ConnectionFactory is going to be removed soon, so you may not need this.
handler
- HTTP Handler
responsible for emitting the HTTP request build from JSON resource Request
s.uri
- base URI used to build the target URI for built HTTP messageRequestHandler
Copyright 2010-2017 ForgeRock AS.