Package org.forgerock.openig.http
Class GatewayHttpApplication
- java.lang.Object
 - 
- org.forgerock.openig.http.GatewayHttpApplication
 
 
- 
- All Implemented Interfaces:
 HttpApplication
public final class GatewayHttpApplication extends Object implements HttpApplication
Configuration class for configuring the Identity Gateway.- Since:
 - 3.1.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description GatewayHttpApplication(Environment environment, JsonValue config, EndpointRegistry registry, RunMode mode, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry, org.forgerock.config.resolvers.PropertyResolver propertyResolver, org.forgerock.openig.http.spi.HttpClientLoader httpClientLoader, WebSocketClientProvider webSocketClientProvider, WebSocketProxyFilterProvider webSocketProxyFilterProvider, Clock clock, IgTicker ticker, AsyncSessionManager sessionManager, ProductInfo productInfo)Construct aGatewayHttpApplication. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Factory<Buffer>getBufferFactory()Handlerstart()Gets the rootHandlerthat will handle all HTTP requests.voidstop()Called when HTTP application is shutdown. 
 - 
 
- 
- 
Constructor Detail
- 
GatewayHttpApplication
public GatewayHttpApplication(Environment environment, JsonValue config, EndpointRegistry registry, RunMode mode, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry, org.forgerock.config.resolvers.PropertyResolver propertyResolver, org.forgerock.openig.http.spi.HttpClientLoader httpClientLoader, 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)httpClientLoader- 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 Detail
- 
start
public Handler start() throws HttpApplicationException
Description copied from interface:HttpApplicationGets the rootHandlerthat will handle all HTTP requests.The
Handlerreturned from this method MUST be a singleton.- Specified by:
 startin interfaceHttpApplication- Returns:
 - The 
Handlerto handle HTTP requests. - Throws:
 HttpApplicationException- If there is a problem constructing the root applicationHandler.
 
- 
getBufferFactory
public Factory<Buffer> getBufferFactory()
Description copied from interface:HttpApplicationGets theFactorythat will create temporary storageBuffers to handle the processing of requests.May return
nullindicating that the container should provide a default buffer factory.- Specified by:
 getBufferFactoryin interfaceHttpApplication- Returns:
 - A 
BufferFactoryornull. 
 
- 
stop
public void stop()
Description copied from interface:HttpApplicationCalled when HTTP application is shutdown.Implementation should use this method to clear up all remaining resources.
- Specified by:
 stopin interfaceHttpApplication
 
 - 
 
 -