Package org.forgerock.http
Class Applications
- java.lang.Object
-
- org.forgerock.http.Applications
-
public final class Applications extends Object
Utility methods to work with CHF Applications.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static HttpApplication
simpleHttpApplication(Handler handler, Factory<Buffer> storage)
Create a simpleHttpApplication
that just returns the provided arguments from the appropriate methods.
-
-
-
Method Detail
-
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
public static HttpApplication simpleHttpApplication(Handler handler, Factory<Buffer> storage)
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
.
-
-