Class ServerInfo
java.lang.Object
org.apache.catalina.util.ServerInfo
Simple utility module to make it easy to plug in the server identifier when integrating Tomcat.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the server built time for this version of Tomcat.static StringReturns the server built date for this version of Tomcat in ISO-8601 date format.static StringReturns the server identification for this version of Tomcat.static StringReturns the server's version number.static voidMain entry point that prints server version, build date, OS, JVM, APR, OpenSSL, and third-party library information to standard output.
-
Constructor Details
-
ServerInfo
public ServerInfo()Default constructor.
-
-
Method Details
-
getServerInfo
Returns the server identification for this version of Tomcat.- Returns:
- the server identification string
-
getServerBuilt
Returns the server built time for this version of Tomcat.- Returns:
- the server built time string
-
getServerBuiltISO
Returns the server built date for this version of Tomcat in ISO-8601 date format.- Returns:
- the server built date in ISO-8601 format
-
getServerNumber
Returns the server's version number.- Returns:
- the server version number
-
main
Main entry point that prints server version, build date, OS, JVM, APR, OpenSSL, and third-party library information to standard output.- Parameters:
args- Command line arguments (not used)
-