|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.system.serverinfo.BasicServerInfo
public class BasicServerInfo
Contains information about the server and functions for resolving pathnames.
Field Summary | |
---|---|
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
static String |
HOME_DIR_SYS_PROP
|
static String |
SERVER_DIR_SYS_PROP
|
static String |
SERVER_NAME_SYS_PROP
|
Constructor Summary | |
---|---|
BasicServerInfo()
|
|
BasicServerInfo(String defaultBaseDirectory)
|
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. |
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
String |
getVersion()
|
File |
resolve(String filename)
Resolves an abstract pathname to a File. |
URI |
resolve(URI uri)
|
String |
resolvePath(String filename)
Resolves an abstract pathname to an absolute one. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVER_NAME_SYS_PROP
public static final String SERVER_DIR_SYS_PROP
public static final String HOME_DIR_SYS_PROP
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public BasicServerInfo()
public BasicServerInfo(String defaultBaseDirectory) throws Exception
Exception
Method Detail |
---|
public String resolvePath(String filename)
resolvePath
in interface ServerInfo
filename
- a pathname that can either be
fully-qualified (i.e. starts with a "/") or
relative (i.e. starts with any character but "/"). If it's
fully-qualified it will be resolved to an absolute pathname
using system-dependent rules (@link java.io.File). If it's relative
it will be resolved relative to the base directory.
File.File(String pathname)
,
File.getAbsolutePath()
public String resolveServerPath(String filename)
resolveServerPath
in interface ServerInfo
public File resolve(String filename)
resolve
in interface ServerInfo
filename
- a String
containing a pathname,
which will be resolved by resolvePath(String
filename)
.
File
valuepublic File resolveServer(String filename)
ServerInfo
resolveServer
in interface ServerInfo
public URI resolve(URI uri)
resolve
in interface ServerInfo
public URI resolveServer(URI uri)
resolveServer
in interface ServerInfo
public String getBaseDirectory()
ServerInfo
getBaseDirectory
in interface ServerInfo
public String getCurrentBaseDirectory()
ServerInfo
getCurrentBaseDirectory
in interface ServerInfo
public String getVersion()
getVersion
in interface ServerInfo
public String getBuildDate()
getBuildDate
in interface ServerInfo
public String getBuildTime()
getBuildTime
in interface ServerInfo
public String getCopyright()
getCopyright
in interface ServerInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |