Package org.apache.catalina.util
Class ServerInfo
- java.lang.Object
-
- org.apache.catalina.util.ServerInfo
-
public class ServerInfo extends java.lang.ObjectSimple utility module to make it easy to plug in the server identifier when integrating Tomcat.
-
-
Constructor Summary
Constructors Constructor Description ServerInfo()Default constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetServerBuilt()Returns the server built time for this version of Tomcat.static java.lang.StringgetServerBuiltISO()Returns the server built date for this version of Tomcat in ISO-8601 date format.static java.lang.StringgetServerInfo()Returns the server identification for this version of Tomcat.static java.lang.StringgetServerNumber()Returns the server's version number.static voidmain(java.lang.String[] args)Main entry point that prints server version, build date, OS, JVM, APR, OpenSSL, and third-party library information to standard output.
-
-
-
Method Detail
-
getServerInfo
public static java.lang.String getServerInfo()
Returns the server identification for this version of Tomcat.- Returns:
- the server identification string
-
getServerBuilt
public static java.lang.String getServerBuilt()
Returns the server built time for this version of Tomcat.- Returns:
- the server built time string
-
getServerBuiltISO
public static java.lang.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
public static java.lang.String getServerNumber()
Returns the server's version number.- Returns:
- the server version number
-
main
public static void main(java.lang.String[] args)
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)
-
-