| java.lang.Object org.openlaszlo.server.Configuration
Configuration | public class Configuration (Code) | | Configuration contains global server configuration information.
It reads an array of options from an xml file.
author: Eric Bloch version: 1.0 |
Method Summary | |
public static void | addOption(Map options, Element elt) | public static void | addOptionNamed(Map options, Element elt, String name) | public Map | getApplicationOptions(String path) | public static Hashtable | getOptions(Element app, String tagname, String optname) | public String | getPattern(RE re) | public boolean | optionAllows(String key, String value) | public boolean | optionAllows(String key, String value, boolean allow) Parameters: allow - if true, an undefined option means that it isallowed, else it is denied. | public boolean | optionAllows(String path, String key, String value) Parameters: path - application path relative to webapp. | public boolean | optionAllows(String path, String key, String value, boolean allow) Parameters: path - application path relative to webapp. Parameters: allow - if true, an undefined option means that it isallowed, else it is denied. | public void | setApplicationOptions(String path, Map opts) |
Configuration | public Configuration()(Code) | | Constructs a new configuration
|
addOption | public static void addOption(Map options, Element elt)(Code) | | |
addOptionNamed | public static void addOptionNamed(Map options, Element elt, String name)(Code) | | |
getApplicationOptions | public Map getApplicationOptions(String path)(Code) | | Parameters: path - application path table of application options |
getOptions | public static Hashtable getOptions(Element app, String tagname, String optname)(Code) | | Parameters: app - element Parameters: tagname - tag name Parameters: optname - option name hashtable of options |
optionAllows | public boolean optionAllows(String key, String value)(Code) | | true if the option is allowed for given value of the given key |
optionAllows | public boolean optionAllows(String key, String value, boolean allow)(Code) | | Parameters: allow - if true, an undefined option means that it isallowed, else it is denied. true if the option is allowed for given value of the given key |
optionAllows | public boolean optionAllows(String path, String key, String value)(Code) | | Parameters: path - application path relative to webapp. true if the option is allowed for given value of the given key |
optionAllows | public boolean optionAllows(String path, String key, String value, boolean allow)(Code) | | Parameters: path - application path relative to webapp. Parameters: allow - if true, an undefined option means that it isallowed, else it is denied. true if the option is allowed for given value of the given key |
setApplicationOptions | public void setApplicationOptions(String path, Map opts)(Code) | | Parameters: path - application path Parameters: opts - application option hashtable from LZX |
|
|