public class ServerInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
contextPath |
static String |
copyright |
static org.slf4j.Logger |
logger |
protected String |
realPath |
protected Runtime |
runTime |
protected String |
serverInfo |
protected int |
servletApiMajor |
protected int |
servletApiMinor |
protected String |
servletApiVersion |
protected ServletContext |
servletContext |
protected String |
servletContextName |
Constructor and Description |
---|
ServerInfo(ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
int |
getAvailableProcessors() |
String |
getContextPath() |
long |
getFreeMemory() |
long |
getMaxMemory() |
String |
getRealPath() |
String |
getServerInfo() |
int |
getServletApiMajor() |
int |
getServletApiMinor() |
String |
getServletApiVersion() |
ServletContext |
getServletContext() |
String |
getServletContextName() |
long |
getTotalMemory() |
long |
getUsedMemory() |
public static final String copyright
public static final org.slf4j.Logger logger
protected final ServletContext servletContext
protected final String realPath
protected final String contextPath
protected final String servletContextName
protected final String serverInfo
protected final int servletApiMajor
protected final int servletApiMinor
protected final String servletApiVersion
protected final Runtime runTime
public ServerInfo(ServletContext servletContext)
public ServletContext getServletContext()
public String getRealPath()
public String getContextPath()
public String getServletContextName()
public String getServerInfo()
public int getServletApiMajor()
public int getServletApiMinor()
public String getServletApiVersion()
public long getFreeMemory()
public long getUsedMemory()
public long getTotalMemory()
public long getMaxMemory()
public int getAvailableProcessors()