org.apache.geronimo.system.serverinfo
Interface ServerInfo

All Known Implementing Classes:
BasicServerInfo

public interface ServerInfo

Contains information about the server and functions for resolving pathnames.

Version:
$Rev: 406784 $ $Date: 2006-05-16 02:24:03 +0200 (Tue, 16 May 2006) $

Method Summary
 String getBaseDirectory()
          A config.xml setting for the base directory.
 String getBuildDate()
           
 String getBuildTime()
           
 String getCopyright()
           
 String getCurrentBaseDirectory()
          The base directory that this ServerInfo is actually using.
 String getVersion()
           
 File resolve(String filename)
          Resolves a relative pathname to a File, relative to the server installation directory (e.g.
 URI resolve(URI uri)
           
 String resolvePath(String filename)
           
 File resolveServer(String filename)
          Resolves a relative pathname to a File, relative to the server configuration directory.
 URI resolveServer(URI uri)
           
 String resolveServerPath(String filename)
           
 

Method Detail

resolvePath

public String resolvePath(String filename)

resolveServerPath

public String resolveServerPath(String filename)

resolve

public File resolve(String filename)
Resolves a relative pathname to a File, relative to the server installation directory (e.g. "foo" becomes .../geronimo/foo)

Parameters:
filename - a String containing a pathname, which will be resolved by resolvePath(String filename).
Returns:
a File value

resolveServer

public File resolveServer(String filename)
Resolves a relative pathname to a File, relative to the server configuration directory. Normally, this is the same as the Geronimo installation directory (e.g. "foo" becomes .../geronimo/foo). However, you can pass command-line arguments to the server to relocate this to a server-instance-specific directory (e.g. "var/foo" might become .../geronimo/instance1/var/foo if the server was started with the flag indicating that the server instance dir was "instance1").


resolve

public URI resolve(URI uri)

resolveServer

public URI resolveServer(URI uri)

getBaseDirectory

public String getBaseDirectory()
A config.xml setting for the base directory. This is normally left null, which means the ServerInfo will use the Geronimo install directory.


getCurrentBaseDirectory

public String getCurrentBaseDirectory()
The base directory that this ServerInfo is actually using.


getVersion

public String getVersion()

getBuildDate

public String getBuildDate()

getBuildTime

public String getBuildTime()

getCopyright

public String getCopyright()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.