|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.http.DominoPreferences
public final class DominoPreferences
Domino regional preferences.
Field Summary | |
---|---|
static DominoLocale |
DEFAULT_LOCALE
The locale settings. |
static java.lang.String |
DEFAULT_TIME_ZONE
Default time zone search string. |
static java.lang.String |
ENCODING_UTF_8
Default encoding (UTF-8) for cookie values. |
static int |
EXPIRY_YEARS
Number of years that a preferences cookie is valid. |
Constructor Summary | |
---|---|
DominoPreferences(java.lang.String domain)
Constructor. |
|
DominoPreferences(java.lang.String domain,
java.lang.String path)
Constructor. |
Method Summary | |
---|---|
(package private) static java.lang.String |
encode(boolean booleanValue)
Encodes a boolean value to "1" for true and
"0" for false . |
(package private) static java.lang.String |
encode(java.lang.String text)
URL-encodes a string. |
org.apache.commons.httpclient.Cookie |
getRegionalCookie()
Returns a new Lotus Domino regional cookie. |
java.util.List |
getRegionalCookies()
Returns a list of cookies for the current regional settings. |
org.apache.commons.httpclient.Cookie |
getTimeZoneCookie()
Returns a new Lotus Domino time zone cookie. |
static java.lang.String |
implode(java.util.List stringList,
java.lang.String delimiter)
Combines the elements of a string array to a single string using a given seperator. |
void |
setAmPmSuffix(boolean amPmSuffix)
|
void |
setAmString(java.lang.String amString)
|
void |
setCookies(java.util.List cookies)
|
void |
setCurrencySpace(boolean currencySpace)
|
void |
setCurrencySymbol(java.lang.String currencySymbol)
|
void |
setDateSeperator(java.lang.String dateSeperator)
|
void |
setDecimalSeperator(java.lang.String decimalSeperator)
|
void |
setDst(boolean dst)
|
void |
setHourFormat(boolean hour24Format)
|
void |
setLeadingDecimalZeros(boolean leadingDecimalZeros)
|
void |
setLocale(java.lang.String locale)
|
void |
setLocale(java.lang.String localeString,
boolean loadDefault)
|
void |
setObserverDST(boolean dst)
Sets whether to observe daylight saving time or not. |
void |
setPmString(java.lang.String pmString)
|
void |
setPositionCurrencySymbol(boolean currencySuffix)
|
void |
setThousandsSeperator(java.lang.String thousandsSeperator)
|
void |
setTimeSeperator(java.lang.String timeSeperator)
|
void |
setTimeZone(DominoTimeZone timeZone)
Sets the time zone. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int EXPIRY_YEARS
public static final java.lang.String ENCODING_UTF_8
public static final java.lang.String DEFAULT_TIME_ZONE
public static final DominoLocale DEFAULT_LOCALE
Constructor Detail |
---|
public DominoPreferences(java.lang.String domain)
domain
- the domain to that this preferences belong topublic DominoPreferences(java.lang.String domain, java.lang.String path)
domain
- the domain to that this preferences belong topath
- the path defining the subset of URLs in a domain for which the cookie is validMethod Detail |
---|
public void setTimeZone(DominoTimeZone timeZone)
timeZone
- Domino time zonepublic void setObserverDST(boolean dst)
dst
- observe daylight saving time or notpublic void setLocale(java.lang.String locale)
locale
- The locale to set.public void setLocale(java.lang.String localeString, boolean loadDefault)
localeString
- The locale to set as a string.loadDefault
- if true
, load all default values for
this localepublic void setAmString(java.lang.String amString)
amString
- The amString to set.public void setCurrencySpace(boolean currencySpace)
currencySpace
- The currencySpace to set.public void setCurrencySymbol(java.lang.String currencySymbol)
currencySymbol
- The currencySymbol to set.public void setDateSeperator(java.lang.String dateSeperator)
dateSeperator
- The dateSeperator to set.public void setDecimalSeperator(java.lang.String decimalSeperator)
decimalSeperator
- The decimalSeperator to set.public void setCookies(java.util.List cookies)
cookies
- The cookies to set.public void setDst(boolean dst)
dst
- The dst to set.public void setHourFormat(boolean hour24Format)
hour24Format
- The hourFormat to set.public void setLeadingDecimalZeros(boolean leadingDecimalZeros)
leadingDecimalZeros
- The leadingDecimalZeros to set.public void setPmString(java.lang.String pmString)
pmString
- The pmString to set.public void setAmPmSuffix(boolean amPmSuffix)
amPmSuffix
- The amPmSuffix to set.public void setPositionCurrencySymbol(boolean currencySuffix)
currencySuffix
- The currencySuffix to set.public void setThousandsSeperator(java.lang.String thousandsSeperator)
thousandsSeperator
- The thousandsSeperator to set.public void setTimeSeperator(java.lang.String timeSeperator)
timeSeperator
- The timeSeperator to set.public java.util.List getRegionalCookies()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public static java.lang.String implode(java.util.List stringList, java.lang.String delimiter)
stringList
- a list of stringsdelimiter
- the delimiting string
public org.apache.commons.httpclient.Cookie getTimeZoneCookie()
public org.apache.commons.httpclient.Cookie getRegionalCookie()
static java.lang.String encode(boolean booleanValue)
true
and
"0" for false
.
booleanValue
- the boolean value to encode
static java.lang.String encode(java.lang.String text)
text
- the test to encode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |