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.


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

String resolvePath(String filename)

resolveServerPath

String resolveServerPath(String filename)

resolve

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

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

URI resolve(URI uri)

resolveServer

URI resolveServer(URI uri)

getBaseDirectory

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

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


getVersion

String getVersion()

getBuildDate

String getBuildDate()

getBuildTime

String getBuildTime()

getCopyright

String getCopyright()


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