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 DescribedHttpApplicationdescribedHttpApplication(Handler handler, Factory<Buffer> storage, ApiProducer<io.swagger.models.Swagger> apiProducer)Create a simpleDescribedHttpApplicationthat just returns the provided arguments from the appropriate methods.static HttpApplicationsimpleHttpApplication(Handler handler, Factory<Buffer> storage)Create a simpleHttpApplicationthat 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 simpleDescribedHttpApplicationthat just returns the provided arguments from the appropriate methods.- Parameters:
handler- TheHandlerto wrap.storage- TheFactorythat will create temporary storageBuffers to handle the processing of requests. Ifnull, a default buffer factory will be used.apiProducer- TheApiProducerto use to expose an OpenAPI API Description.- Returns:
- The
HttpApplication.
-
simpleHttpApplication
public static HttpApplication simpleHttpApplication(Handler handler, Factory<Buffer> storage)
Create a simpleHttpApplicationthat just returns the provided arguments from the appropriate methods.- Parameters:
handler- TheHandlerto wrap.storage- TheFactorythat will create temporary storageBuffers to handle the processing of requests. Ifnull, a default buffer factory will be used.- Returns:
- The
HttpApplication.
-
-