Class AdminHttpApplication

    • Constructor Detail

      • AdminHttpApplication

        public AdminHttpApplication​(String adminPrefix,
                                    JsonValue config,
                                    Environment environment,
                                    RunMode mode,
                                    org.forgerock.config.resolvers.PropertyResolver propertyResolver,
                                    org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry,
                                    org.forgerock.openig.http.spi.HttpClientLoader httpClientLoader,
                                    WebSocketClientProvider webSocketClientProvider,
                                    Clock clock,
                                    IgTicker ticker)
                             throws IOException,
                                    HttpApplicationException
        Construct a AdminHttpApplication.
        Parameters:
        adminPrefix - the prefix to use in the URL to access the admin endpoints
        config - the admin configuration
        environment - the IG environment
        mode - IG run mode
        propertyResolver - root property resolver
        meterRegistry - the meter registry
        httpClientLoader - The provider of HttpClient
        webSocketClientProvider - The WebSocket Client Provider
        clock - The clock to use
        ticker - The ticker to use
        Throws:
        IOException - when initialization failed
        HttpApplicationException - when initialization failed
    • 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
      • getEndpointRegistry

        public EndpointRegistry getEndpointRegistry()
        Returns the API endpoint registry.
        Returns:
        the API endpoint registry
      • getOpenIGRouter

        protected Router getOpenIGRouter()
        Returns the router that represents the /openig namespace (or whatever path/prefix value that was configured).
        Returns:
        the router that represents the /openig namespace
      • getHeap

        public Heap getHeap()
        Returns the heap based on the contents of the admin configuration.
        Returns:
        the heap based on the contents of the admin configuration.