Top Description Fields Constructors Methods
org.apache.catalina.util

public Class ServerInfo

extends Object
Class Inheritance
Imports
java.io.InputStream, java.util.Properties, org.apache.tomcat.util.ExceptionUtils

Simple utility module to make it easy to plug in the server identifier when integrating Tomcat.
Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
private static final String
serverBuilt

The server built String.

private static final String
serverInfo

The server information String with which we identify ourselves.

private static final String
serverNumber

The server's version number String.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the server built time for this version of Tomcat.
getServerBuilt
()

public static String

Returns:

the server identification for this version of Tomcat.
getServerInfo
()

public static String

Returns:

the server's version number.
getServerNumber
()

public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

serverBuiltback to summary
private static final String serverBuilt

The server built String.

serverInfoback to summary
private static final String serverInfo

The server information String with which we identify ourselves.

serverNumberback to summary
private static final String serverNumber

The server's version number String.

Constructor Detail

ServerInfoback to summary
public ServerInfo()

Method Detail

getServerBuiltback to summary
public static String getServerBuilt()
Returns:String

the server built time for this version of Tomcat.

getServerInfoback to summary
public static String getServerInfo()
Returns:String

the server identification for this version of Tomcat.

getServerNumberback to summary
public static String getServerNumber()
Returns:String

the server's version number.

mainback to summary
public static void main(String[] args)