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",
"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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Called to indicate that the object created by the heaplet is going to be dereferenced.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, create, retryFilter
Methods 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:HttpClientHandlerHeaplet
Returns a list ofFilter
that will be executed on every request before theHttpClientHandler
.- Specified by:
filters
in classHttpClientHandlerHeaplet
- Parameters:
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
Description copied from class:GenericHeaplet
Returns the type of the IG object.- Overrides:
getType
in classGenericHeaplet
- Returns:
- the type of the IG object
-
destroy
public void destroy()Description copied from interface:Heaplet
Called to indicate that the object created by the heaplet is going to be dereferenced. This gives the heaplet an opportunity to free any resources that are being held prior to its dereference.- Specified by:
destroy
in interfaceHeaplet
- Overrides:
destroy
in classHttpClientHandlerHeaplet
-