Package org.forgerock.openig.http
Class BaseAdminHttpApplication
java.lang.Object
org.forgerock.openig.http.BaseAdminHttpApplication
- All Implemented Interfaces:
DescribedHttpApplication,HttpApplication,AdminHttpApplication
Configuration class for the Identity Gateway Administration.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaseAdminHttpApplication(String adminPrefix, JsonValue config, Environment environment, boolean serveDeprecatedPrometheusEndpoint, org.forgerock.config.resolvers.PropertyResolver propertyResolver, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry, StartupMetrics parentStartupMetrics, HttpClientProvider httpClientProvider, WebSocketClientProvider webSocketClientProvider, Clock clock, IgTicker ticker, ProductInfo productInfo, org.forgerock.openig.tracing.OpenTelemetryService openTelemetryService, SystemHealth systemHealth) Construct aBaseAdminHttpApplication. -
Method Summary
Modifier and TypeMethodDescriptionNeeded to enforce generation of CREST APIs.Returns the configuration of the admin application.Returns the API endpoint registry.getHeap()Returns the heap based on the contents of the admin configuration.Returns the router that represents the /openig namespace (or whatever path/prefix value that was configured).Returns the session manager, can't benull.booleanReturns whether the admin is restricted or not.start()Gets the rootHandlerthat will handle all HTTP requests.voidstop()Called when HTTP application is shutdown.
-
Field Details
-
ADMIN_TRACING_PROVIDER
The name used for the admin endpoints.- See Also:
-
-
Constructor Details
-
BaseAdminHttpApplication
public BaseAdminHttpApplication(String adminPrefix, JsonValue config, Environment environment, boolean serveDeprecatedPrometheusEndpoint, org.forgerock.config.resolvers.PropertyResolver propertyResolver, org.forgerock.monitoring.api.instrument.MeterRegistry meterRegistry, StartupMetrics parentStartupMetrics, HttpClientProvider httpClientProvider, WebSocketClientProvider webSocketClientProvider, Clock clock, IgTicker ticker, ProductInfo productInfo, org.forgerock.openig.tracing.OpenTelemetryService openTelemetryService, SystemHealth systemHealth) throws IOException, HttpApplicationException Construct aBaseAdminHttpApplication.- Parameters:
adminPrefix- the prefix to use in the URL to access the admin endpointsconfig- the admin configurationenvironment- the IG environmentserveDeprecatedPrometheusEndpoint- set totrueto enable the deprecated Prometheus endpointpropertyResolver- root property resolvermeterRegistry- the meter registryparentStartupMetrics- the parentStartupMetricshttpClientProvider- The provider of HttpClientwebSocketClientProvider- The WebSocket Client Providerclock- The clock to useticker- The ticker to useproductInfo- The product informationopenTelemetryService- TheOpenTelemetryServiceinstancesystemHealth- used to determine overall health of the system- Throws:
IOException- when initialization failedHttpApplicationException- when initialization failed
-
-
Method Details
-
start
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
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
-
getEndpointRegistry
Description copied from interface:AdminHttpApplicationReturns the API endpoint registry.- Specified by:
getEndpointRegistryin interfaceAdminHttpApplication- Returns:
- the API endpoint registry
-
getOpenIGRouter
Description copied from interface:AdminHttpApplicationReturns the router that represents the /openig namespace (or whatever path/prefix value that was configured).- Specified by:
getOpenIGRouterin interfaceAdminHttpApplication- Returns:
- the router that represents the /openig namespace
-
getHeap
Description copied from interface:AdminHttpApplicationReturns the heap based on the contents of the admin configuration.- Specified by:
getHeapin interfaceAdminHttpApplication- Returns:
- the heap based on the contents of the admin configuration
-
restricted
public boolean restricted()Returns whether the admin is restricted or not.- Returns:
trueif the admin is restricted
-
getConfig
Description copied from interface:AdminHttpApplicationReturns the configuration of the admin application.- Specified by:
getConfigin interfaceAdminHttpApplication- Returns:
- the configuration of the admin application
-
getApiProducer
Needed to enforce generation of CREST APIs.- Specified by:
getApiProducerin interfaceDescribedHttpApplication- Returns:
- a swagger api producer.
-