FileDocCategorySizeDatePackage
ServerInfo.javaAPI DocGlassfish v2 API3465Fri May 04 22:32:30 BST 2007org.apache.catalina.util

ServerInfo

public class ServerInfo extends Object
Simple utility module to make it easy to plug in the server identifier when integrating Tomcat.
author
Craig R. McClanahan
version
$Revision: 1.4 $ $Date: 2007/05/05 05:32:30 $

Fields Summary
private static String
serverInfo
The server information String with which we identify ourselves.
Constructors Summary
Methods Summary
public static java.lang.StringgetServerInfo()
Return the server identification for this version of Tomcat.


        return (serverInfo);

    
public static voidsetServerInfo(java.lang.String info)


     

        // BEGIN S1AS 5022949
        /*
        try {
            InputStream is = ServerInfo.class.getResourceAsStream
                ("/org/apache/catalina/util/ServerInfo.properties");
            Properties props = new Properties();
            props.load(is);
            is.close();
            serverInfo = props.getProperty("server.info");
        } catch (Throwable t) {
            ;
        }
        if (serverInfo == null)
            serverInfo = "Apache Tomcat";
        */
        // END S1AS 5022949
    
        serverInfo = info;