Class Applications


  • public final class Applications
    extends Object
    Utility methods to work with CHF Applications.
    • Method Detail

      • simpleHttpApplication

        public static HttpApplication simpleHttpApplication​(Handler handler,
                                                            Factory<Buffer> storage)
        Create a simple HttpApplication that just returns the provided arguments from the appropriate methods.
        Parameters:
        handler - The Handler to wrap.
        storage - The Factory that will create temporary storage Buffers to handle the processing of requests. If null, a default buffer factory will be used.
        Returns:
        The HttpApplication.