Class ServerInfoGetHandler

  • All Implemented Interfaces:
    LightHttpHandler, io.undertow.server.HttpHandler

    public class ServerInfoGetHandler
    extends Object
    implements LightHttpHandler
    This is a server info handler that output the runtime info about the server. For example, how many components are installed and what is the configuration of each component. For handlers, it is registered when injecting into the handler chain during server startup. For other utilities, it should have a static block to register itself during server startup. Additional info is gathered from environment variable and JVM.
    Author:
    Steve Hu
    • Constructor Detail

      • ServerInfoGetHandler

        public ServerInfoGetHandler()
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        Exception
      • getEnvironment

        public Map<String,​Object> getEnvironment​(io.undertow.server.HttpServerExchange exchange)
      • getHost

        public Map<String,​Object> getHost​(io.undertow.server.HttpServerExchange exchange)
      • getFrameworkVersion

        public String getFrameworkVersion()