Package org.forgerock.http
Class Applications
java.lang.Object
org.forgerock.http.Applications
Utility methods to work with CHF Applications.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DescribedHttpApplication
describedHttpApplication
(Handler handler, Factory<Buffer> storage, ApiProducer<io.swagger.models.Swagger> apiProducer) Create a simpleDescribedHttpApplication
that just returns the provided arguments from the appropriate methods.static HttpApplication
simpleHttpApplication
(Handler handler, Factory<Buffer> storage) Create a simpleHttpApplication
that just returns the provided arguments from the appropriate methods.
-
Method Details
-
describedHttpApplication
public static DescribedHttpApplication describedHttpApplication(Handler handler, Factory<Buffer> storage, ApiProducer<io.swagger.models.Swagger> apiProducer) Create a simpleDescribedHttpApplication
that just returns the provided arguments from the appropriate methods.- Parameters:
handler
- TheHandler
to wrap.storage
- TheFactory
that will create temporary storageBuffer
s to handle the processing of requests. Ifnull
, a default buffer factory will be used.apiProducer
- TheApiProducer
to use to expose an OpenAPI API Description.- Returns:
- The
HttpApplication
.
-
simpleHttpApplication
Create a simpleHttpApplication
that just returns the provided arguments from the appropriate methods.- Parameters:
handler
- TheHandler
to wrap.storage
- TheFactory
that will create temporary storageBuffer
s to handle the processing of requests. Ifnull
, a default buffer factory will be used.- Returns:
- The
HttpApplication
.
-