public class ExampleHttpApplication extends Object implements DescribedHttpApplication
HttpApplication
deployment which registers a
Handler
that returns the application name and matched portion of
the request uri.
The application name is default for single
HttpApplication
deployments and can be set for multiple
HttpApplication
deployments.
Constructor and Description |
---|
ExampleHttpApplication()
Default constructor for single
HttpApplication deployments. |
Modifier and Type | Method and Description |
---|---|
ApiProducer<io.swagger.models.Swagger> |
getApiProducer()
Provides the OpenAPI descriptor producer with which to produce the API.
|
Factory<Buffer> |
getBufferFactory()
|
Handler |
start()
Gets the root
Handler that will handle all HTTP requests. |
void |
stop()
Called when HTTP application is shutdown.
|
public ExampleHttpApplication()
HttpApplication
deployments.public Handler start()
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.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 ApiProducer<io.swagger.models.Swagger> getApiProducer()
DescribedHttpApplication
getApiProducer
in interface DescribedHttpApplication
Copyright © 2025 Open Identity Platform Community. All rights reserved.