Class 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 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 a GatewayHttpApplication.
        Parameters:
        environment - the environment to lookup for configuration
        config - the gateway configuration
        registry - the endpoint registry to bind the API endpoints
        mode - IG run mode
        meterRegistry - The meter registry
        propertyResolver - Root property resolver (not null)
        httpClientLoader - The provider of HttpClient
        webSocketClientProvider - The notification service provider
        webSocketProxyFilterProvider - The WebSocket proxy filter provider
        clock - The clock to use
        ticker - The ticker to use
    • Method Detail

      • getBufferFactory

        public Factory<Buffer> getBufferFactory()
        Description copied from interface: HttpApplication
        Gets the Factory that will create temporary storage Buffers to handle the processing of requests.

        May return null indicating that the container should provide a default buffer factory.

        Specified by:
        getBufferFactory in interface HttpApplication
        Returns:
        A Buffer Factory or null.
      • 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 interface HttpApplication