public class

PropUtil

extends Object
java.lang.Object
   ↳ com.google.code.com.sun.mail.util.PropUtil

Class Overview

Utilities to make it easier to get property values. Properties can be strings or type-specific value objects.

Summary

Public Methods
static boolean getBooleanProperty(Properties props, String name, boolean def)
Get a boolean valued property.
static boolean getBooleanSessionProperty(Session session, String name, boolean def)
Get a boolean valued property.
static boolean getBooleanSystemProperty(String name, boolean def)
Get a boolean valued System property.
static int getIntProperty(Properties props, String name, int def)
Get an integer valued property.
static int getIntSessionProperty(Session session, String name, int def)
Get an integer valued property.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static boolean getBooleanProperty (Properties props, String name, boolean def)

Get a boolean valued property.

Parameters
props
name
def

public static boolean getBooleanSessionProperty (Session session, String name, boolean def)

Get a boolean valued property.

Parameters
session
name
def

public static boolean getBooleanSystemProperty (String name, boolean def)

Get a boolean valued System property.

Parameters
name
def

public static int getIntProperty (Properties props, String name, int def)

Get an integer valued property.

Parameters
props
name
def

public static int getIntSessionProperty (Session session, String name, int def)

Get an integer valued property.

Parameters
session
name
def