public class ClientHandler extends Object implements org.forgerock.http.Handler
HttpClient
.
{
"name": "ClientHandler",
"type": "ClientHandler",
"config": {
"connections": 64,
"disableReuseConnection": true,
"disableRetries": true,
"hostnameVerifier": "ALLOW_ALL",
"sslContextAlgorithm": "TLS",
"soTimeout": "10 seconds",
"connectionTimeout": "10 seconds",
"numberOfWorkers": 6,
"keyManager": [ "RefToKeyManager", ... ],
"trustManager": [ "RefToTrustManager", ... ],
"sslEnabledProtocols": [ "SSLv2", ... ],
"sslCipherSuites": [ "TLS_DH_anon_WITH_AES_256_CBC_SHA256", ... ],
"temporaryStorage": {reference to or inline declaration of a TemporaryStorage}
}
}
Note: This implementation does not verify hostnames for
outgoing SSL connections by default. This is because the gateway will usually access the
SSL endpoint using a raw IP address rather than a fully-qualified hostname.
KeyManager
(and TrustManager
respectively). They support singleton value (use a single
reference) as well as multi-valued references (a list):
"keyManager": "SingleKeyManagerReference",
"trustManager": [ "RefOne", "RefTwo" ]
The soTimeout optional attribute specifies a socket timeout (the given amount of time a connection
will live before being considered a stalled and automatically destroyed). It defaults to 10 seconds.
The numberOfWorkers optional attribute specifies the number of threads dedicated to process outgoing requests. It defaults to the number of CPUs available to the JVM. This attribute is only used if an asynchronous Http client engine is used (that is the default).
The sslEnabledProtocols optional attribute specifies the protocol versions to be enabled for use on the connection.
The sslCipherSuites optional attribute specifies cipher suite names used by the SSL connection.
Duration
,
KeyManagerHeaplet
,
TrustManagerHeaplet
Modifier and Type | Class and Description |
---|---|
static class |
ClientHandler.Heaplet
Creates and initializes a client handler in a heap environment.
|
Constructor and Description |
---|
ClientHandler(org.forgerock.http.Handler delegate)
Creates a new client handler.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> |
handle(org.forgerock.services.context.Context context,
org.forgerock.http.protocol.Request request) |
public ClientHandler(org.forgerock.http.Handler delegate)
delegate
- The HTTP Handler delegate.public org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> handle(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request)
handle
in interface org.forgerock.http.Handler
Copyright © 2025 Open Identity Platform Community. All rights reserved.