Package org.forgerock.openig.http
Class GatewayHttpApplication
java.lang.Object
org.forgerock.openig.http.GatewayHttpApplication
- All Implemented Interfaces:
HttpApplication
Configuration class for configuring the Identity Gateway.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorDescriptionGatewayHttpApplication
(Environment environment, JsonValue config, EndpointRegistry registry, RunMode mode, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry, org.forgerock.config.resolvers.PropertyResolver propertyResolver, HttpClientProvider httpClientProvider, WebSocketClientProvider webSocketClientProvider, WebSocketProxyFilterProvider webSocketProxyFilterProvider, Clock clock, IgTicker ticker, AsyncSessionManager sessionManager, ProductInfo productInfo) Construct aGatewayHttpApplication
. -
Method Summary
-
Constructor Details
-
GatewayHttpApplication
public GatewayHttpApplication(Environment environment, JsonValue config, EndpointRegistry registry, RunMode mode, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry, org.forgerock.config.resolvers.PropertyResolver propertyResolver, HttpClientProvider httpClientProvider, WebSocketClientProvider webSocketClientProvider, WebSocketProxyFilterProvider webSocketProxyFilterProvider, Clock clock, IgTicker ticker, AsyncSessionManager sessionManager, ProductInfo productInfo) Construct aGatewayHttpApplication
.- Parameters:
environment
- the environment to lookup for configurationconfig
- the gateway configurationregistry
- the endpoint registry to bind the API endpointsmode
- IG run modemeterRegistry
- The meter registrypropertyResolver
- Root property resolver (notnull
)httpClientProvider
- The provider of HttpClientwebSocketClientProvider
- The notification service providerwebSocketProxyFilterProvider
- The WebSocket proxy filter providerclock
- The clock to useticker
- The ticker to usesessionManager
- The sessionManager to useproductInfo
- The product information
-
-
Method Details
-
start
Description copied from interface:HttpApplication
Gets the rootHandler
that will handle all HTTP requests.The
Handler
returned from this method MUST be a singleton.- Specified by:
start
in interfaceHttpApplication
- Returns:
- The
Handler
to handle HTTP requests. - Throws:
HttpApplicationException
- If there is a problem constructing the root applicationHandler
.
-
getBufferFactory
Description copied from interface:HttpApplication
Gets theFactory
that will create temporary storageBuffer
s to handle the processing of requests.May return
null
indicating that the container should provide a default buffer factory.- Specified by:
getBufferFactory
in interfaceHttpApplication
- Returns:
- A
Buffer
Factory
ornull
.
-
stop
public void stop()Description copied from interface:HttpApplication
Called when HTTP application is shutdown.Implementation should use this method to clear up all remaining resources.
- Specified by:
stop
in interfaceHttpApplication
-