public interface Environment
Modifier and Type | Method and Description |
---|---|
File |
getPrivateFile(String path)
Returns the file pointing to the private area of the Web site (that is within WEB-INF).
|
File |
getPrivateFolder()
Returns the directory pointing to the private area of the Web site (generally WEB-INF).
|
String |
getProperty(String name)
Return the requested property.
|
boolean |
getProperty(String name,
boolean def)
Returns the requested property or it default value.
|
int |
getProperty(String name,
int def)
Returns the requested int property or it default value.
|
String |
getProperty(String name,
String def)
Returns the requested property or it default value.
|
File |
getPublicFile(String path)
Returns the file pointing to the public area of the Web site.
|
File |
getPublicFolder()
Returns the directory pointing to the public area of the Web site.
|
File getPublicFolder()
File getPrivateFolder()
File getPublicFile(String path)
path
- The path of the requested file.File getPrivateFile(String path)
path
- The path of the requested file.String getProperty(String name)
Returns null
if the property is not found or defined.
name
- the name of the propertynull
.String getProperty(String name, String def)
The given default value is returned only if the property is not found.
name
- The name of the property.def
- A default value for the property.int getProperty(String name, int def)
name
- The name of the property.def
- A default value for the property.boolean getProperty(String name, boolean def)
The given default value is returned only if the property is not found.
name
- The name of the property.def
- A default value for the property.Copyright © 2016 Allette Systems. All rights reserved.