public class WebAppSettings extends Object
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatDirectory(String dir)
Format a directory according to the file system separator
|
static WebAppSettings |
get() |
Path |
getAbsolutePath(String... relativePath)
Calculate the absolute path of a directory placed under the the webapp's directory structure.
|
String |
getRootDir()
Retrieve the webapp's root directory => The directory where the container deploys the WAR content.
|
void |
setRootDir(String dir)
Overwrites the webapp's root directory.
|
public static WebAppSettings get()
protected String formatDirectory(String dir)
public String getRootDir()
public void setRootDir(String dir)
This method is only intended to be called at bootstrap time by the
WebAppListener. Changing the root directory may cause the webapp to severely fail.
Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.