public class AdminHttpApplication extends Object implements DescribedHttpApplication
Constructor and Description |
---|
AdminHttpApplication(String adminPrefix,
JsonValue config,
Environment environment,
RunMode mode,
PropertyResolver propertyResolver,
MeterRegistry meterRegistry)
Construct a
AdminHttpApplication . |
Modifier and Type | Method and Description |
---|---|
SwaggerApiProducer |
getApiProducer()
Needed to enforce generation of CREST APIs.
|
Factory<Buffer> |
getBufferFactory()
|
EndpointRegistry |
getEndpointRegistry()
Returns the API endpoint registry.
|
protected Heap |
getHeap()
Returns the heap based on the contents of the admin configuration.
|
protected Router |
getOpenIGRouter()
Returns the router that represents the /openig namespace (or whatever path/prefix value that was configured).
|
Handler |
start()
Gets the root
Handler that will handle all HTTP requests. |
void |
stop()
Called when HTTP application is shutdown.
|
public AdminHttpApplication(String adminPrefix, JsonValue config, Environment environment, RunMode mode, PropertyResolver propertyResolver, MeterRegistry meterRegistry) throws IOException, HttpApplicationException
AdminHttpApplication
.adminPrefix
- the prefix to use in the URL to access the admin endpointsconfig
- the admin configurationenvironment
- the IG environmentmode
- IG run modepropertyResolver
- root property resolvermeterRegistry
- the meter registryIOException
- when initialization failedHttpApplicationException
- when initialization failedpublic Handler start() throws HttpApplicationException
HttpApplication
Handler
that will handle all HTTP requests.
The Handler
returned from this method MUST be a singleton.
start
in interface HttpApplication
Handler
to handle HTTP requests.HttpApplicationException
- If there is a problem constructing the
root application Handler
.public Factory<Buffer> getBufferFactory()
HttpApplication
Factory
that will create temporary storage
Buffer
s to handle the processing of requests.
May return null
indicating that the container should provide
a default buffer factory.
getBufferFactory
in interface HttpApplication
Buffer
Factory
or null
.public void stop()
HttpApplication
Implementation should use this method to clear up all remaining resources.
stop
in interface HttpApplication
public EndpointRegistry getEndpointRegistry()
protected Router getOpenIGRouter()
protected Heap getHeap()
public SwaggerApiProducer getApiProducer()
getApiProducer
in interface DescribedHttpApplication
Copyright 2011-2017 ForgeRock AS.