/*
 * Created on 2004-6-9
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.huihoo.willow.util;

import java.io.InputStream;
import java.util.Properties;

/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class ServerInfo
{

	// ------------------------------------------------------- Static Variables

	/**
	 * The server information String with which we identify ourselves.
	 */
	private static String serverInfo = null;

	static {

		try
		{
			InputStream is =
				ServerInfo.class.getResourceAsStream("/org/huihoo/willow/util/ServerInfo.properties");
			Properties props = new Properties();
			props.load(is);
			is.close();
			serverInfo = props.getProperty("server.info");
		}
		catch (Throwable t)
		{
			;
		}
		if (serverInfo == null)
			serverInfo = "Huihoo Willow";

	}

	// --------------------------------------------------------- Public Methods

	/**
	 * Return the server identification for this version of Willow.
	 */
	public static String getServerInfo()
	{

		return (serverInfo);

	}

}
