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)
Construct aGatewayHttpApplication
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Factory<Buffer>
getBufferFactory()
Handler
start()
Gets the rootHandler
that will handle all HTTP requests.void
stop()
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)
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 use
-
-
Method Detail
-
start
public Handler start() throws HttpApplicationException
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
public Factory<Buffer> 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
-
-