Class WelcomeHandler

  • All Implemented Interfaces:
    org.forgerock.http.Handler

    public class WelcomeHandler
    extends Object
    implements org.forgerock.http.Handler
    Creates a static response containing a simple HTML welcome page.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  WelcomeHandler.Heaplet
      Creates and initializes a static response handler in a heap environment.
    • Constructor Summary

      Constructors 
      Constructor Description
      WelcomeHandler​(org.forgerock.util.Factory<org.forgerock.http.io.Buffer> storage)
      Creates a new welcome page handler.
    • Constructor Detail

      • WelcomeHandler

        public WelcomeHandler​(org.forgerock.util.Factory<org.forgerock.http.io.Buffer> storage)
        Creates a new welcome page handler.
        Parameters:
        storage - the temporary storage to use to stream the resource
    • Method Detail

      • handle

        public org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,​org.forgerock.util.promise.NeverThrowsException> handle​(org.forgerock.services.context.Context context,
                                                                                                                                                     org.forgerock.http.protocol.Request request)
        Specified by:
        handle in interface org.forgerock.http.Handler