Package org.forgerock.openig.handler
Class ReverseProxyHandlerHeaplet
java.lang.Object
org.forgerock.openig.heap.GenericHeaplet
org.forgerock.openig.handler.HttpClientHandlerHeaplet
org.forgerock.openig.handler.ReverseProxyHandlerHeaplet
- All Implemented Interfaces:
Heaplet
Creates a reverse proxy
Handler in a heap environment.
A reverse proxy Handler serves the purpose of proxying requests from the client to the protected
application.
It supports the following configuration items:
"config": {
"websocket": {
"enabled": false,
"soTimeout: "10 seconds",
"connectionTimeout": "10 seconds",
"maxConnections": 100,
"tls": "RefToTlsOptions",
"proxyOptions": "myProxyOptions"
}
}
The websocket optional attribute, if present gives access to Web Socket specific configuration options. It's disabled by default, and if the inner attributes are not valued, they default to the corresponding attribute's value in the ClientHandler configuration (/websocket/soTimeout -> /soTimeout for instance).
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Releases observability resources: deregisters the HTTP endpoint, all meters, and startup metrics.Returns a list ofFilterthat will be executed on every request before theHttpClientHandler.protected StringgetType()Returns the type of the IG object.Methods inherited from class org.forgerock.openig.handler.HttpClientHandlerHeaplet
circuitBreakerFilter, create, retryFilterMethods inherited from class org.forgerock.openig.heap.GenericHeaplet
create, endpointRegistry, evaluatedWithHeapProperties, expression, getConfig, getHeap, initialBindings, meterRegistryHolder, start
-
Field Details
-
NAME
Public name used by resolver.- See Also:
-
-
Constructor Details
-
ReverseProxyHandlerHeaplet
public ReverseProxyHandlerHeaplet()
-
-
Method Details
-
filters
Description copied from class:HttpClientHandlerHeapletReturns a list ofFilterthat will be executed on every request before theHttpClientHandler.- Specified by:
filtersin classHttpClientHandlerHeaplet- Parameters:
options- the options that will be used to create theHttpClientHandler.- Returns:
- A list of
Filterthat will be executed on every request before theHttpClientHandler. - Throws:
HeapException- if any error occurs during the setup of the filters.
-
getType
Description copied from class:GenericHeapletReturns the type of the IG object.- Overrides:
getTypein classGenericHeaplet- Returns:
- the type of the IG object
-
destroy
public void destroy()Description copied from class:GenericHeapletReleases observability resources: deregisters the HTTP endpoint, all meters, and startup metrics.Subclasses that override this method must call
super.destroy()last, after releasing their own domain resources. This ensures that monitoring remains active for the full lifetime of those resources and that any metrics emitted during shutdown are not lost.- Specified by:
destroyin interfaceHeaplet- Overrides:
destroyin classHttpClientHandlerHeaplet
-