org.apache.wicket.protocol.http
Class ClientProperties

java.lang.Object
  extended by org.apache.wicket.protocol.http.ClientProperties
All Implemented Interfaces:
java.io.Serializable, IClusterable

public class ClientProperties
extends java.lang.Object
implements IClusterable

Description of various user agent (browser) properties. To fill the properties with values from the user agent you need to probe the browser using javascript and request header analysis. Wicket provides a default implementation of this in BrowserInfoPage.

A convenient way of letting Wicket do a sneaky redirect to BrowserInfoPage (and back again) is to put this in your Application's init method:

 getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
 

WARNING: Be sure you think about the dangers of depending on information you pull from the client too much. They may be easily spoofed or inaccurate in other ways, and properties like window and browser size are all too easy to be used naively.

Author:
Frank Bille (frankbille)
See Also:
BrowserInfoPage, Serialized Form

Constructor Summary
ClientProperties()
           
 
Method Summary
 int getBrowserHeight()
           
 int getBrowserVersionMajor()
           
 int getBrowserVersionMinor()
           
 int getBrowserWidth()
           
 java.lang.String getNavigatorAppCodeName()
           
 java.lang.String getNavigatorAppName()
           
 java.lang.String getNavigatorAppVersion()
           
 java.lang.String getNavigatorLanguage()
           
 java.lang.String getNavigatorPlatform()
           
 java.lang.String getNavigatorUserAgent()
           
 java.lang.String getRemoteAddress()
           
 int getScreenColorDepth()
           
 int getScreenHeight()
           
 int getScreenWidth()
           
 java.util.TimeZone getTimeZone()
          Get the client's time zone if that could be detected.
 java.lang.String getUtcDSTOffset()
           
 java.lang.String getUtcOffset()
           
 boolean isBrowserInternetExplorer()
          Flag indicating that the browser is a derivative of the Microsoft Internet Explorer browser platform.
 boolean isBrowserKonqueror()
          Flag indicating that the browser is a derivative of the KDE Konqueror browser platform.
 boolean isBrowserMozilla()
          Flag indicating that the browser is a derivative of the Mozilla 1.0-1.8+ browser platform.
 boolean isBrowserMozillaFirefox()
          Flag indicating that the browser is a derivative of the Mozilla Firefox 1.0+ browser platform.
 boolean isBrowserOpera()
          Flag indicating that the browser is a derivative of the Opera browser platform.
 boolean isBrowserSafari()
          Flag indicating that the browser is a derivative of the Apple Safari browser platform.
 boolean isCookiesEnabled()
           
 boolean isJavaEnabled()
           
 boolean isProprietaryIECssExpressionsSupported()
          A proprietary feature flag indicating support for IE-style CSS expressions.
 boolean isProprietaryIEPngAlphaFilterRequired()
          A proprietary feature flag indicating that PNG alpha channel support is available only by using a 'filter'.
 boolean isQuirkCssBackgroundAttachmentUseFixed()
          A quirk flag indicating that the 'fixed' attribute should be used to for fixed-to-element background attachment.
 boolean isQuirkCssBorderCollapseFor0Padding()
          A quirk flag indicating the only means of achieving 0 padding in table cells is to use 0px padding.
 boolean isQuirkCssBorderCollapseInside()
          A quirk flag indicating whether the client will incorrectly render CSS collapsed borders such that they reside entirely within the region of a component.
 boolean isQuirkCssPositioningOneSideOnly()
          A quirk flag indicating that CSS positioning values do not work correctly when either both "top" and "bottom" or "left" and "right" positions are set at the same time.
 boolean isQuirkIERepaint()
          A quirk flag describing the curious repaint behavior found in Internet Explorer 6, where repaints may be excessively delayed.
 boolean isQuirkIESelectListDomUpdate()
          A quirk flag indicating that listbox-style select fields cannot be reliably manipulated using the client DOM API.
 boolean isQuirkIESelectPercentWidth()
          A quirk flag indicating that select fields with percentage widths are not reliably rendered.
 boolean isQuirkIESelectZIndex()
          A quirk flag describing the issue of "windowed" select fields in Internet Explorer, which do not render correctly with regard to z-index value.
 boolean isQuirkIETablePercentWidthScrollbarError()
          A quirk flag indicating incorrect calculation of 100% table widths when within a vertically scrolling region.
 boolean isQuirkIETextareaNewlineObliteration()
          A quirk flag indicating the incorrect parsing of newlines in the content of a 'textarea'.
 boolean isQuirkMozillaPerformanceLargeDomRemove()
          A quirk flag indicating whether the client has poor performance when attempting to remove large element hierarchies from a DOM.
 boolean isQuirkMozillaTextInputRepaint()
          A quirk flag describing a Mozilla-specific behavior where the text contained within text input fields may be drawn outside of text input component due to the component having shifted its location on the page.
 void setBrowserHeight(int browserHeight)
           
 void setBrowserInternetExplorer(boolean browserInternetExplorer)
          Flag indicating that the browser is a derivative of the Microsoft Internet Explorer browser platform.
 void setBrowserKonqueror(boolean browserKonqueror)
          Flag indicating that the browser is a derivative of the KDE Konqueror browser platform.
 void setBrowserMozilla(boolean browserMozilla)
          Flag indicating that the browser is a derivative of the Mozilla 1.0-1.8+ browser platform.
 void setBrowserMozillaFirefox(boolean browserMozillaFirefox)
          Flag indicating that the browser is a derivative of the Mozilla Firefox 1.0+ browser platform.
 void setBrowserOpera(boolean browserOpera)
          Flag indicating that the browser is a derivative of the Opera browser platform.
 void setBrowserSafari(boolean browserSafari)
          Flag indicating that the browser is a derivative of the Apple Safari browser platform.
 void setBrowserVersionMajor(int browserVersionMajor)
           
 void setBrowserVersionMinor(int browserVersionMinor)
           
 void setBrowserWidth(int browserWidth)
           
 void setCookiesEnabled(boolean cookiesEnabled)
           
 void setJavaEnabled(boolean navigatorJavaEnabled)
           
 void setNavigatorAppCodeName(java.lang.String navigatorAppCodeName)
           
 void setNavigatorAppName(java.lang.String navigatorAppName)
           
 void setNavigatorAppVersion(java.lang.String navigatorAppVersion)
           
 void setNavigatorLanguage(java.lang.String navigatorLanguage)
           
 void setNavigatorPlatform(java.lang.String navigatorPlatform)
           
 void setNavigatorUserAgent(java.lang.String navigatorUserAgent)
           
 void setProprietaryIECssExpressionsSupported(boolean proprietaryIECssExpressionsSupported)
           
 void setProprietaryIEPngAlphaFilterRequired(boolean proprietaryIEPngAlphaFilterRequired)
           
 void setQuirkCssBackgroundAttachmentUseFixed(boolean quirkCssBackgroundAttachmentUseFixed)
           
 void setQuirkCssBorderCollapseFor0Padding(boolean quirkCssBorderCollapseFor0Padding)
           
 void setQuirkCssBorderCollapseInside(boolean quirkCssBorderCollapseInside)
           
 void setQuirkCssPositioningOneSideOnly(boolean quirkCssPositioningOneSideOnly)
           
 void setQuirkIERepaint(boolean quirkIERepaint)
           
 void setQuirkIESelectListDomUpdate(boolean quirkIESelectListDomUpdate)
           
 void setQuirkIESelectPercentWidth(boolean quirkIESelectPercentWidth)
           
 void setQuirkIESelectZIndex(boolean quirkIESelectZIndex)
           
 void setQuirkIETablePercentWidthScrollbarError(boolean quirkIETablePercentWidthScrollbarError)
           
 void setQuirkIETextareaNewlineObliteration(boolean quirkIETextareaNewlineObliteration)
           
 void setQuirkMozillaPerformanceLargeDomRemove(boolean quirkMozillaPerformanceLargeDomRemove)
           
 void setQuirkMozillaTextInputRepaint(boolean quirkMozillaTextInputRepaint)
           
 void setRemoteAddress(java.lang.String remoteAddress)
           
 void setScreenColorDepth(int screenColorDepth)
           
 void setScreenHeight(int screenHeight)
           
 void setScreenWidth(int screenWidth)
           
 void setTimeZone(java.util.TimeZone timeZone)
          Sets time zone.
 void setUtcDSTOffset(java.lang.String utcDSTOffset)
           
 void setUtcOffset(java.lang.String utcOffset)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientProperties

public ClientProperties()
Method Detail

getBrowserHeight

public int getBrowserHeight()
Returns:
The browser height at the time it was measured

getBrowserVersionMajor

public int getBrowserVersionMajor()
Returns:
The major version number of the browser.

getBrowserVersionMinor

public int getBrowserVersionMinor()
Returns:
The minor version number of the browser.

getBrowserWidth

public int getBrowserWidth()
Returns:
The browser width at the time it was measured

getNavigatorAppCodeName

public java.lang.String getNavigatorAppCodeName()
Returns:
The client's navigator.appCodeName property.

getNavigatorAppName

public java.lang.String getNavigatorAppName()
Returns:
The client's navigator.appName property.

getNavigatorAppVersion

public java.lang.String getNavigatorAppVersion()
Returns:
The client's navigator.appVersion property.

getNavigatorLanguage

public java.lang.String getNavigatorLanguage()
Returns:
The client's navigator.language (or navigator.userLanguage) property.

getNavigatorPlatform

public java.lang.String getNavigatorPlatform()
Returns:
The client's navigator.platform property.

getNavigatorUserAgent

public java.lang.String getNavigatorUserAgent()
Returns:
The client's navigator.userAgent property.

getRemoteAddress

public java.lang.String getRemoteAddress()
Returns:
The client's remote/ip address.

getScreenColorDepth

public int getScreenColorDepth()
Returns:
Color depth of the screen in bits (integer).

getScreenHeight

public int getScreenHeight()
Returns:
Height of the screen in pixels (integer).

getScreenWidth

public int getScreenWidth()
Returns:
Height of the screen in pixels (integer).

getTimeZone

public java.util.TimeZone getTimeZone()
Get the client's time zone if that could be detected.

Returns:
The client's time zone

getUtcDSTOffset

public java.lang.String getUtcDSTOffset()
Returns:
The client's time DST offset from UTC in minutes (note: if you do this yourself, use 'new Date(new Date().getFullYear(), 0, 6, 0, 0, 0, 0).getTimezoneOffset() / -60' (note the -)).

getUtcOffset

public java.lang.String getUtcOffset()
Returns:
The client's time offset from UTC in minutes (note: if you do this yourself, use 'new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0).getTimezoneOffset() / -60' (note the -)).

isBrowserInternetExplorer

public boolean isBrowserInternetExplorer()
Flag indicating that the browser is a derivative of the Microsoft Internet Explorer browser platform.

Returns:
True if a derivative of the Microsoft Internet Explorer browser platform.

isBrowserKonqueror

public boolean isBrowserKonqueror()
Flag indicating that the browser is a derivative of the KDE Konqueror browser platform.

Returns:
True if a derivative of the KDE Konqueror browser platform.

isBrowserMozilla

public boolean isBrowserMozilla()
Flag indicating that the browser is a derivative of the Mozilla 1.0-1.8+ browser platform.

Returns:
True if a derivative of the Mozilla 1.0-1.8+ browser platform.

isBrowserMozillaFirefox

public boolean isBrowserMozillaFirefox()
Flag indicating that the browser is a derivative of the Mozilla Firefox 1.0+ browser platform.

Returns:
True if a derivative of the Mozilla Firefox 1.0+ browser platform.

isBrowserOpera

public boolean isBrowserOpera()
Flag indicating that the browser is a derivative of the Opera browser platform.

Returns:
True if a derivative of the Opera browser platform.

isBrowserSafari

public boolean isBrowserSafari()
Flag indicating that the browser is a derivative of the Apple Safari browser platform.

Returns:
True if a derivative of the Apple Safari browser platform.

isCookiesEnabled

public boolean isCookiesEnabled()
Returns:
The client's navigator.cookieEnabled property.

isJavaEnabled

public boolean isJavaEnabled()
Returns:
The client's navigator.javaEnabled property.

isProprietaryIECssExpressionsSupported

public boolean isProprietaryIECssExpressionsSupported()
A proprietary feature flag indicating support for IE-style CSS expressions.

This proprietary feature is provided by:

Returns:
True if support for IE-style CSS expressions.

isProprietaryIEPngAlphaFilterRequired

public boolean isProprietaryIEPngAlphaFilterRequired()
A proprietary feature flag indicating that PNG alpha channel support is available only by using a 'filter'.

This proprietary feature is provided by:

Returns:
True if PNG alpha channel support is available only by using a 'filter'.

isQuirkCssBackgroundAttachmentUseFixed

public boolean isQuirkCssBackgroundAttachmentUseFixed()
A quirk flag indicating that the 'fixed' attribute should be used to for fixed-to-element background attachment.

This quirk occurs with:

Returns:
True if the 'fixed' attribute should be used to for fixed-to-element background attachment.

isQuirkCssBorderCollapseFor0Padding

public boolean isQuirkCssBorderCollapseFor0Padding()
A quirk flag indicating the only means of achieving 0 padding in table cells is to use 0px padding.

This quirk occurs with:

Returns:
True if the only means of achieving 0 padding in table cells is to use 0px padding.

isQuirkCssBorderCollapseInside

public boolean isQuirkCssBorderCollapseInside()
A quirk flag indicating whether the client will incorrectly render CSS collapsed borders such that they reside entirely within the region of a component.

This quirk occurs with:

Returns:
True if the client will incorrectly render CSS collapsed borders such that they reside entirely within the region of a component.

isQuirkCssPositioningOneSideOnly

public boolean isQuirkCssPositioningOneSideOnly()
A quirk flag indicating that CSS positioning values do not work correctly when either both "top" and "bottom" or "left" and "right" positions are set at the same time.

This quirk occurs with:

Returns:
True if CSS positioning values do not work correctly when either both "top" and "bottom" or "left" and "right" positions are set at the same time.

isQuirkIERepaint

public boolean isQuirkIERepaint()
A quirk flag describing the curious repaint behavior found in Internet Explorer 6, where repaints may be excessively delayed. This quirky behavior is most visible when the DOM hierarchy is large and complex. The unlikely workaround for this quirky behavior is to "tickle" (adjust and then reset) the CSS width of an element, which will force an immediate repaint.

This quirk occurs with:

Returns:
True if means needs to be taken against weird Internet Explorer repaint behaviors.

isQuirkIESelectListDomUpdate

public boolean isQuirkIESelectListDomUpdate()
A quirk flag indicating that listbox-style select fields cannot be reliably manipulated using the client DOM API.

This quirk occurs with:

Returns:
True if listbox-style select fields cannot be reliably manipulated using the client DOM API.

isQuirkIESelectPercentWidth

public boolean isQuirkIESelectPercentWidth()
A quirk flag indicating that select fields with percentage widths are not reliably rendered.

This quirk occurs with:

Returns:
True if select fields with percentage widths are not reliably rendered.

isQuirkIESelectZIndex

public boolean isQuirkIESelectZIndex()
A quirk flag describing the issue of "windowed" select fields in Internet Explorer, which do not render correctly with regard to z-index value. See http://support.microsoft.com/kb/q177378/ for an explanation of the underlying issue.

This quirk occurs with:

Returns:
True if the browser do not render correctly with regard to z-index value.

isQuirkIETablePercentWidthScrollbarError

public boolean isQuirkIETablePercentWidthScrollbarError()
A quirk flag indicating incorrect calculation of 100% table widths when within a vertically scrolling region.

This quirk occurs with:

Returns:
True if incorrect calculation of 100% table widths when within a vertically scrolling region.

isQuirkIETextareaNewlineObliteration

public boolean isQuirkIETextareaNewlineObliteration()
A quirk flag indicating the incorrect parsing of newlines in the content of a 'textarea'.

This quirk occurs with:

Returns:
True if the browser has incorrect parsing of newlines in the content of a 'textarea'.

isQuirkMozillaPerformanceLargeDomRemove

public boolean isQuirkMozillaPerformanceLargeDomRemove()
A quirk flag indicating whether the client has poor performance when attempting to remove large element hierarchies from a DOM. This quirk can be alleviated by removing the hierarchy in smaller chunks.

This quirk occurs with:

Returns:
True if the client has poor performance when attempting to remove large element hierarchies from a DOM.

isQuirkMozillaTextInputRepaint

public boolean isQuirkMozillaTextInputRepaint()
A quirk flag describing a Mozilla-specific behavior where the text contained within text input fields may be drawn outside of text input component due to the component having shifted its location on the page.

This quirk occurs with:

Returns:
True if the text contained within text input fields may be drawn outside of text input component due to the component having shifted its location on the page.

setBrowserHeight

public void setBrowserHeight(int browserHeight)
Parameters:
browserHeight - The height of the browser

setBrowserInternetExplorer

public void setBrowserInternetExplorer(boolean browserInternetExplorer)
Flag indicating that the browser is a derivative of the Microsoft Internet Explorer browser platform.

Parameters:
browserInternetExplorer - True if a derivative of the Microsoft Internet Explorer browser platform.

setBrowserKonqueror

public void setBrowserKonqueror(boolean browserKonqueror)
Flag indicating that the browser is a derivative of the KDE Konqueror browser platform.

Parameters:
browserKonqueror - True if a derivative of the KDE Konqueror browser platform.

setBrowserMozilla

public void setBrowserMozilla(boolean browserMozilla)
Flag indicating that the browser is a derivative of the Mozilla 1.0-1.8+ browser platform.

Parameters:
browserMozilla - True if a derivative of the Mozilla 1.0-1.8+ browser platform.

setBrowserMozillaFirefox

public void setBrowserMozillaFirefox(boolean browserMozillaFirefox)
Flag indicating that the browser is a derivative of the Mozilla Firefox 1.0+ browser platform.

Parameters:
browserMozillaFirefox - True if a derivative of the Mozilla Firefox 1.0+ browser platform.

setBrowserOpera

public void setBrowserOpera(boolean browserOpera)
Flag indicating that the browser is a derivative of the Opera browser platform.

Parameters:
browserOpera - True if a derivative of the Opera browser platform.

setBrowserSafari

public void setBrowserSafari(boolean browserSafari)
Flag indicating that the browser is a derivative of the Apple Safari browser platform.

Parameters:
browserSafari - True if a derivative of the Apple Safari browser platform.

setBrowserVersionMajor

public void setBrowserVersionMajor(int browserVersionMajor)
Parameters:
browserVersionMajor - The major version number of the browser.

setBrowserVersionMinor

public void setBrowserVersionMinor(int browserVersionMinor)
Parameters:
browserVersionMinor - The minor version number of the browser.

setBrowserWidth

public void setBrowserWidth(int browserWidth)
Parameters:
browserWidth - The browser width

setCookiesEnabled

public void setCookiesEnabled(boolean cookiesEnabled)
Parameters:
cookiesEnabled - The client's navigator.cookieEnabled property.

setJavaEnabled

public void setJavaEnabled(boolean navigatorJavaEnabled)
Parameters:
navigatorJavaEnabled - The client's navigator.javaEnabled property.

setNavigatorAppCodeName

public void setNavigatorAppCodeName(java.lang.String navigatorAppCodeName)
Parameters:
navigatorAppCodeName - The client's navigator.appCodeName property.

setNavigatorAppName

public void setNavigatorAppName(java.lang.String navigatorAppName)
Parameters:
navigatorAppName - The client's navigator.appName property.

setNavigatorAppVersion

public void setNavigatorAppVersion(java.lang.String navigatorAppVersion)
Parameters:
navigatorAppVersion - The client's navigator.appVersion property.

setNavigatorLanguage

public void setNavigatorLanguage(java.lang.String navigatorLanguage)
Parameters:
navigatorLanguage - The client's navigator.language (or navigator.userLanguage) property.

setNavigatorPlatform

public void setNavigatorPlatform(java.lang.String navigatorPlatform)
Parameters:
navigatorPlatform - The client's navigator.platform property.

setNavigatorUserAgent

public void setNavigatorUserAgent(java.lang.String navigatorUserAgent)
Parameters:
navigatorUserAgent - The client's navigator.userAgent property.

setProprietaryIECssExpressionsSupported

public void setProprietaryIECssExpressionsSupported(boolean proprietaryIECssExpressionsSupported)
Parameters:
proprietaryIECssExpressionsSupported - True if support for IE-style CSS expressions.

setProprietaryIEPngAlphaFilterRequired

public void setProprietaryIEPngAlphaFilterRequired(boolean proprietaryIEPngAlphaFilterRequired)
Parameters:
proprietaryIEPngAlphaFilterRequired - True if PNG alpha channel support is available only by using a 'filter'.

setQuirkCssBackgroundAttachmentUseFixed

public void setQuirkCssBackgroundAttachmentUseFixed(boolean quirkCssBackgroundAttachmentUseFixed)
Parameters:
quirkCssBackgroundAttachmentUseFixed - True if the 'fixed' attribute should be used to for fixed-to-element background attachment.

setQuirkCssBorderCollapseFor0Padding

public void setQuirkCssBorderCollapseFor0Padding(boolean quirkCssBorderCollapseFor0Padding)
Parameters:
quirkCssBorderCollapseFor0Padding - True if the only means of achieving 0 padding in table cells is to use 0px padding.

setQuirkCssBorderCollapseInside

public void setQuirkCssBorderCollapseInside(boolean quirkCssBorderCollapseInside)
Parameters:
quirkCssBorderCollapseInside - True if the client will incorrectly render CSS collapsed borders such that they reside entirely within the region of a component.

setQuirkCssPositioningOneSideOnly

public void setQuirkCssPositioningOneSideOnly(boolean quirkCssPositioningOneSideOnly)
Parameters:
quirkCssPositioningOneSideOnly - True if CSS positioning values do not work correctly when either both "top" and "bottom" or "left" and "right" positions are set at the same time.

setQuirkIERepaint

public void setQuirkIERepaint(boolean quirkIERepaint)
Parameters:
quirkIERepaint - True if means needs to be taken against weird Internet Explorer repaint behaviors.

setQuirkIESelectListDomUpdate

public void setQuirkIESelectListDomUpdate(boolean quirkIESelectListDomUpdate)
Parameters:
quirkIESelectListDomUpdate - True if listbox-style select fields cannot be reliably manipulated using the client DOM API.

setQuirkIESelectPercentWidth

public void setQuirkIESelectPercentWidth(boolean quirkIESelectPercentWidth)
Parameters:
quirkIESelectPercentWidth - True if select fields with percentage widths are not reliably rendered.

setQuirkIESelectZIndex

public void setQuirkIESelectZIndex(boolean quirkIESelectZIndex)
Parameters:
quirkIESelectZIndex - True if the browser do not render correctly with regard to z-index value.

setQuirkIETablePercentWidthScrollbarError

public void setQuirkIETablePercentWidthScrollbarError(boolean quirkIETablePercentWidthScrollbarError)
Parameters:
quirkIETablePercentWidthScrollbarError - True if incorrect calculation of 100% table widths when within a vertically scrolling region.

setQuirkIETextareaNewlineObliteration

public void setQuirkIETextareaNewlineObliteration(boolean quirkIETextareaNewlineObliteration)
Parameters:
quirkIETextareaNewlineObliteration - True if the browser has incorrect parsing of newlines in the content of a 'textarea'.

setQuirkMozillaPerformanceLargeDomRemove

public void setQuirkMozillaPerformanceLargeDomRemove(boolean quirkMozillaPerformanceLargeDomRemove)
Parameters:
quirkMozillaPerformanceLargeDomRemove - True if the client has poor performance when attempting to remove large element hierarchies from a DOM.

setQuirkMozillaTextInputRepaint

public void setQuirkMozillaTextInputRepaint(boolean quirkMozillaTextInputRepaint)
Parameters:
quirkMozillaTextInputRepaint - True if the text contained within text input fields may be drawn outside of text input component due to the component having shifted its location on the page.

setRemoteAddress

public void setRemoteAddress(java.lang.String remoteAddress)
Parameters:
remoteAddress - The client's remote/ip address.

setScreenColorDepth

public void setScreenColorDepth(int screenColorDepth)
Parameters:
screenColorDepth - Color depth of the screen in bits (integer).

setScreenHeight

public void setScreenHeight(int screenHeight)
Parameters:
screenHeight - Height of the screen in pixels (integer).

setScreenWidth

public void setScreenWidth(int screenWidth)
Parameters:
screenWidth - Height of the screen in pixels (integer).

setTimeZone

public void setTimeZone(java.util.TimeZone timeZone)
Sets time zone.

Parameters:
timeZone -

setUtcDSTOffset

public void setUtcDSTOffset(java.lang.String utcDSTOffset)
Parameters:
utcDSTOffset -

setUtcOffset

public void setUtcOffset(java.lang.String utcOffset)
Parameters:
utcOffset - The client's time offset from UTC in minutes (note: if you do this yourself, use 'new Date().getTimezoneOffset() / -60' (note the -)).

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.