public class PropUtil
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
getBooleanProperty(java.util.Properties props,
java.lang.String name,
boolean def) |
Get a boolean valued property.
|
static boolean |
getBooleanSessionProperty(javax.mail.Session session,
java.lang.String name,
boolean def) |
Deprecated.
|
static boolean |
getBooleanSystemProperty(java.lang.String name,
boolean def) |
Get a boolean valued System property.
|
static int |
getIntProperty(java.util.Properties props,
java.lang.String name,
int def) |
Get an integer valued property.
|
static int |
getIntSessionProperty(javax.mail.Session session,
java.lang.String name,
int def) |
Deprecated.
|
public static int getIntProperty(java.util.Properties props,
java.lang.String name,
int def)
props - the propertiesname - the property namedef - default value if property not foundpublic static boolean getBooleanProperty(java.util.Properties props,
java.lang.String name,
boolean def)
props - the propertiesname - the property namedef - default value if property not found@Deprecated
public static int getIntSessionProperty(javax.mail.Session session,
java.lang.String name,
int def)
session - the Sessionname - the property namedef - default value if property not found@Deprecated
public static boolean getBooleanSessionProperty(javax.mail.Session session,
java.lang.String name,
boolean def)
session - the Sessionname - the property namedef - default value if property not foundpublic static boolean getBooleanSystemProperty(java.lang.String name,
boolean def)
name - the property namedef - default value if property not found