Package org.forgerock.openig.handler
Class ClientHandlerHeaplet
- java.lang.Object
-
- org.forgerock.openig.heap.GenericHeaplet
-
- org.forgerock.openig.handler.HttpClientHandlerHeaplet
-
- org.forgerock.openig.handler.ClientHandlerHeaplet
-
- All Implemented Interfaces:
Heaplet
public class ClientHandlerHeaplet extends HttpClientHandlerHeaplet
Creates and initializes aClientHandler
in a heap environment.A
ClientHandler
serves the purpose of communicating from IG to a remote server. N.B. It should not be used as aHandler
to proxy requests to the protected application.
-
-
Field Summary
-
Fields inherited from class org.forgerock.openig.handler.HttpClientHandlerHeaplet
CONFIG_ASYNC_BEHAVIOR, CONFIG_ENABLE_CONNECTION_STATE, CONFIG_HTTP2_PRIOR_KNOWLEDGE, CONFIG_NUMBER_OF_WORKERS, CONFIG_PROTOCOL_VERSION
-
-
Constructor Summary
Constructors Constructor Description ClientHandlerHeaplet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Filter>
filters(org.forgerock.openig.http.spi.HttpClientLoader loader, Options options)
Returns a list ofFilter
that will be executed on every request before theHttpClientHandler
.protected String
getType()
Returns the type of the IG object.-
Methods inherited from class org.forgerock.openig.handler.HttpClientHandlerHeaplet
circuitBreakerFilter, configurationSupported, create, destroy, retryFilter
-
Methods inherited from class org.forgerock.openig.heap.GenericHeaplet
create, endpointRegistry, evaluatedWithHeapProperties, expression, getConfig, getHeap, getSecretService, meterRegistryHolder, start
-
-
-
-
Method Detail
-
filters
protected List<Filter> filters(org.forgerock.openig.http.spi.HttpClientLoader loader, Options options) throws HeapException
Description copied from class:HttpClientHandlerHeaplet
Returns a list ofFilter
that will be executed on every request before theHttpClientHandler
.- Specified by:
filters
in classHttpClientHandlerHeaplet
- Parameters:
loader
- theHttpClientLoader
associated to that instance.options
- the options that will be used to create theHttpClientHandler
.- Returns:
- A list of
Filter
that will be executed on every request before theHttpClientHandler
. - Throws:
HeapException
- if any error occurs during the setup of the filters.
-
getType
protected String getType()
Description copied from class:GenericHeaplet
Returns the type of the IG object.- Overrides:
getType
in classGenericHeaplet
- Returns:
- the type of the IG object
-
-