spring-mobile-device

org.springframework.mobile.device.site
Class SitePreferenceUtils

java.lang.Object
  extended by org.springframework.mobile.device.site.SitePreferenceUtils

public class SitePreferenceUtils
extends java.lang.Object

Static helper for accessing request-scoped SitePreference values.

Author:
Keith Donald

Method Summary
static SitePreference getCurrentSitePreference(javax.servlet.http.HttpServletRequest request)
          Get the current site preference for the user that originated this web request.
static SitePreference getCurrentSitePreference(org.springframework.web.context.request.RequestAttributes attributes)
          Get the current site preference for the user from the request attributes map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentSitePreference

public static SitePreference getCurrentSitePreference(javax.servlet.http.HttpServletRequest request)
Get the current site preference for the user that originated this web request.

Returns:
the site preference, or null if none has been set

getCurrentSitePreference

public static SitePreference getCurrentSitePreference(org.springframework.web.context.request.RequestAttributes attributes)
Get the current site preference for the user from the request attributes map.

Returns:
the site preference, or null if none has been set

spring-mobile-device