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() |
File |
getFile(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()
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.
protected String formatDirectory(String dir)
public String getRootDir()
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.