Package org.forgerock.openig.http
Class AdminHttpApplication
- java.lang.Object
- 
- org.forgerock.openig.http.AdminHttpApplication
 
- 
- All Implemented Interfaces:
- DescribedHttpApplication,- HttpApplication
 
 public class AdminHttpApplication extends Object implements DescribedHttpApplication Configuration class for the Identity Gateway Administration.
- 
- 
Constructor SummaryConstructors Constructor Description 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)Construct aAdminHttpApplication.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SwaggerApiProducergetApiProducer()Needed to enforce generation of CREST APIs.Factory<Buffer>getBufferFactory()EndpointRegistrygetEndpointRegistry()Returns the API endpoint registry.HeapgetHeap()Returns the heap based on the contents of the admin configuration.protected RoutergetOpenIGRouter()Returns the router that represents the /openig namespace (or whatever path/prefix value that was configured).Handlerstart()Gets the rootHandlerthat will handle all HTTP requests.voidstop()Called when HTTP application is shutdown.
 
- 
- 
- 
Constructor Detail- 
AdminHttpApplicationpublic 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 aAdminHttpApplication.- 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- 
startpublic 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 interface- HttpApplication
- Returns:
- The Handlerto handle HTTP requests.
- Throws:
- HttpApplicationException- If there is a problem constructing the root application- Handler.
 
 - 
getBufferFactorypublic 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 interface- HttpApplication
- Returns:
- A BufferFactoryornull.
 
 - 
stoppublic 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 interface- HttpApplication
 
 - 
getEndpointRegistrypublic EndpointRegistry getEndpointRegistry() Returns the API endpoint registry.- Returns:
- the API endpoint registry
 
 - 
getOpenIGRouterprotected 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
 
 - 
getHeappublic Heap getHeap() Returns the heap based on the contents of the admin configuration.- Returns:
- the heap based on the contents of the admin configuration.
 
 - 
getApiProducerpublic SwaggerApiProducer getApiProducer() Needed to enforce generation of CREST APIs.- Specified by:
- getApiProducerin interface- DescribedHttpApplication
- Returns:
- a swagger api producer.
 
 
- 
 
-