public final class GatewayHttpApplication extends Object implements HttpApplication
Constructor and Description |
---|
GatewayHttpApplication(Environment environment,
JsonValue config,
EndpointRegistry registry,
RunMode mode,
MeterRegistry meterRegistry,
PropertyResolver propertyResolver)
Construct a
GatewayHttpApplication . |
Modifier and Type | Method and Description |
---|---|
Factory<Buffer> |
getBufferFactory()
|
Handler |
start()
Gets the root
Handler that will handle all HTTP requests. |
void |
stop()
Called when HTTP application is shutdown.
|
public GatewayHttpApplication(Environment environment, JsonValue config, EndpointRegistry registry, RunMode mode, MeterRegistry meterRegistry, PropertyResolver propertyResolver)
GatewayHttpApplication
.environment
- the environment to lookup for configurationconfig
- the gateway configurationregistry
- the endpoint registry to bind the API endpointsmode
- IG run modemeterRegistry
- The meter registrypropertyResolver
- Root property resolver (not null
)public 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
Copyright 2011-2017 ForgeRock AS.