public class ServerUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_PROPERTY
Name of the system property, that contains the application name.
|
static String |
ETC_DIR_PROPERTY
Name of the system property, that points to the etc directory of the server.
|
static String |
LOG_DIR_PROPERTY
Name of the system property, that points to the log directory of the server.
|
static String |
SYSTEM_TRAY_PROPERTY
Name of the system property, that enables / disables the system tray icon.
|
static String |
TITLE
Name of the server.
|
static String |
VAR_DIR_PROPERTY
Name of the system property, that points to the var directory of the server.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getApplicationName()
Get internal application name.
|
static File |
getCanonicalOrAbsoluteFile(File file)
|
static File |
getCanonicalOrAbsoluteFile(String path)
Convert a file path to a canonical or absolute
File. |
static File |
getEtcDir()
Get etc directory used by the server.
|
static File |
getLogDir()
Get log directory used by the server.
|
static InputStream |
getResource(String name) |
static File |
getVarDir()
Get var directory used by the server.
|
static void |
init()
Initialize the server environment.
|
static boolean |
isSystemTrayEnabled()
Test, if the system tray icon is usable / enabled.
|
public static final String TITLE
public static final String APP_PROPERTY
public static final String ETC_DIR_PROPERTY
public static final String LOG_DIR_PROPERTY
public static final String VAR_DIR_PROPERTY
public static final String SYSTEM_TRAY_PROPERTY
public static String getApplicationName()
public static File getEtcDir() throws IOException
IOExceptionpublic static File getCanonicalOrAbsoluteFile(String path)
File.path - file path to convertFilepublic static File getCanonicalOrAbsoluteFile(File file)
file - file to convertFilepublic static File getLogDir() throws IOException
IOExceptionpublic static InputStream getResource(String name)
public static File getVarDir() throws IOException
IOExceptionpublic static void init()
public static boolean isSystemTrayEnabled()
Copyright © 2019 OpenEstate. All rights reserved.