public class ReportServlet
extends javax.servlet.http.HttpServlet
This servlet handles HTTP GET requests and triggers the appropriate Reporter module based on the path suffix. The corresponding system report is
logged using the SLF4J logger.
The following path suffixes are supported:
/VM — Logs Java Virtual Machine information./FileSystem — Logs information about available and used disk space./Memory — Logs memory usage details./User — Logs information about the current user./PhysicalSystem — Logs physical hardware information./OperatingSystem — Logs operating system details./Calendar — Logs date, time, and timezone information./Locale — Logs current and available locale settings./Charset — Logs current and available character sets./NetworkInterface — Logs information for each available network interface.If the path does not match any known suffix, no action is taken and the request is silently ignored.
Security considerations
This servlet accesses and logs potentially sensitive system information. Therefore, the following security measures are strongly recommended:
/NetworkInterface can overload the system or exhaust resources. Consider adding rate limiting or caching to mitigate abuse.| Constructor and Description |
|---|
ReportServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceCopyright © 2010–2025. All rights reserved.