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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Called to indicate that the object created by the heaplet is going to be dereferenced.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 interface:HeapletCalled 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:
destroyin interfaceHeaplet- Overrides:
destroyin classHttpClientHandlerHeaplet
-