|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.system.serverinfo.BasicServerInfo
@GBean public class BasicServerInfo
Contains information about the server and functions for resolving pathnames.
| Field Summary | |
|---|---|
static java.lang.String |
HOME_DIR_SYS_PROP
|
static java.lang.String |
SERVER_DIR_SYS_PROP
|
static java.lang.String |
SERVER_NAME_SYS_PROP
|
| Constructor Summary | |
|---|---|
BasicServerInfo()
|
|
BasicServerInfo(java.lang.String defaultBaseDirectory)
|
|
BasicServerInfo(java.lang.String defaultBaseDirectory,
boolean useSystemProperties)
|
|
BasicServerInfo(java.lang.String defaultBaseDirectory,
boolean useSystemProperties,
org.osgi.framework.BundleContext bundleContext)
|
|
BasicServerInfo(java.lang.String baseDirectory,
java.lang.String serverName)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseDirectory()
A config.xml setting for the base directory. |
java.lang.String |
getBuildDate()
|
java.lang.String |
getBuildTime()
|
java.lang.String |
getCopyright()
|
java.lang.String |
getCurrentBaseDirectory()
The base directory that this ServerInfo is actually using. |
java.lang.String |
getVersion()
|
java.io.File |
resolve(java.lang.String filename)
Resolves an abstract pathname to a File. |
java.net.URI |
resolve(java.net.URI uri)
|
java.lang.String |
resolvePath(java.lang.String filename)
Resolves an abstract pathname to an absolute one. |
java.io.File |
resolveServer(java.lang.String filename)
Resolves a relative pathname to a File, relative to the server configuration directory. |
java.net.URI |
resolveServer(java.net.URI uri)
|
java.lang.String |
resolveServerPath(java.lang.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 java.lang.String SERVER_NAME_SYS_PROP
public static final java.lang.String SERVER_DIR_SYS_PROP
public static final java.lang.String HOME_DIR_SYS_PROP
| Constructor Detail |
|---|
public BasicServerInfo()
public BasicServerInfo(java.lang.String defaultBaseDirectory)
throws java.lang.Exception
java.lang.Exception
public BasicServerInfo(java.lang.String defaultBaseDirectory,
boolean useSystemProperties)
throws java.lang.Exception
java.lang.Exception
public BasicServerInfo(@ParamAttribute(name="baseDirectory")
java.lang.String defaultBaseDirectory,
@ParamAttribute(name="useSystemProperties")
boolean useSystemProperties,
@ParamSpecial(type=bundleContext)
org.osgi.framework.BundleContext bundleContext)
throws java.lang.Exception
java.lang.Exception
public BasicServerInfo(java.lang.String baseDirectory,
java.lang.String serverName)
| Method Detail |
|---|
public java.lang.String resolvePath(java.lang.String filename)
resolvePath in interface ServerInfofilename - 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 java.lang.String resolveServerPath(java.lang.String filename)
resolveServerPath in interface ServerInfopublic java.io.File resolve(java.lang.String filename)
resolve in interface ServerInfofilename - a String containing a pathname,
which will be resolved by resolvePath(String
filename).
File valuepublic java.io.File resolveServer(java.lang.String filename)
ServerInfo
resolveServer in interface ServerInfopublic java.net.URI resolve(java.net.URI uri)
resolve in interface ServerInfopublic java.net.URI resolveServer(java.net.URI uri)
resolveServer in interface ServerInfopublic java.lang.String getBaseDirectory()
ServerInfo
getBaseDirectory in interface ServerInfopublic java.lang.String getCurrentBaseDirectory()
ServerInfo
getCurrentBaseDirectory in interface ServerInfopublic java.lang.String getVersion()
getVersion in interface ServerInfopublic java.lang.String getBuildDate()
getBuildDate in interface ServerInfopublic java.lang.String getBuildTime()
getBuildTime in interface ServerInfopublic java.lang.String getCopyright()
getCopyright in interface ServerInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||