Package com.networknt.info
Class ServerInfoGetHandler
- java.lang.Object
-
- com.networknt.info.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_NAME-
Fields inherited from interface com.networknt.handler.LightHttpHandler
AUDIT_ON_ERROR, AUDIT_STACK_TRACE, auditOnError, auditStackTrace, config, ERROR_NOT_DEFINED
-
-
Constructor Summary
Constructors Constructor Description ServerInfoGetHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getDeployment()Map<String,Object>getEnvironment(io.undertow.server.HttpServerExchange exchange)StringgetFrameworkVersion()Map<String,Object>getHost(io.undertow.server.HttpServerExchange exchange)Map<String,Object>getRuntime()Map<String,Object>getSecurity()Map<String,Object>getSystem()voidhandleRequest(io.undertow.server.HttpServerExchange exchange)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.networknt.handler.LightHttpHandler
setExchangeStatus, setExchangeStatus
-
-
-
-
Field Detail
-
CONFIG_NAME
public static final String CONFIG_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-
getEnvironment
public Map<String,Object> getEnvironment(io.undertow.server.HttpServerExchange exchange)
-
getFrameworkVersion
public String getFrameworkVersion()
-
-