org.directwebremoting.extend
Class ContainerUtil
java.lang.Object
org.directwebremoting.extend.ContainerUtil
public class ContainerUtil
- extends java.lang.Object
An abstraction of all the common servlet operations that are required to host
a DWR service that depends on the servlet spec.
It would be good to have a base class for all servlet operations, however
lack of MI prevents us from doing this.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
|
Method Summary |
static boolean |
getBooleanSetting(Container container,
java.lang.String name,
boolean defaultValue)
Get an boolean setting from the Container. |
static int |
getIntSetting(Container container,
java.lang.String name,
int defaultValue)
Get an integer setting from the Container. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainerUtil
public ContainerUtil()
getBooleanSetting
public static boolean getBooleanSetting(Container container,
java.lang.String name,
boolean defaultValue)
- Get an boolean setting from the Container.
- Parameters:
container - The container to look intoname - The name of the setting to investigatedefaultValue - The value to return if none is given
- Returns:
- The value of the setting as an boolean, or the defaultValue if the
setting is empty or not convertible.
getIntSetting
public static int getIntSetting(Container container,
java.lang.String name,
int defaultValue)
- Get an integer setting from the Container.
- Parameters:
container - The container to look intoname - The name of the setting to investigatedefaultValue - The value to return if none is given
- Returns:
- The value of the setting as an int, or the defaultValue if the
setting is empty or not convertible.