spring-mobile-device

org.springframework.mobile.device.site
Interface SitePreferenceHandler

All Known Implementing Classes:
StandardSitePreferenceHandler

public interface SitePreferenceHandler

Service interface for site preference management.

Author:
Keith Donald

Field Summary
static java.lang.String CURRENT_SITE_PREFERENCE_ATTRIBUTE
          The name of the request attribute that holds the current user's site preference value.
 
Method Summary
 SitePreference handleSitePreference(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handle the site preference aspect of the web request.
 

Field Detail

CURRENT_SITE_PREFERENCE_ATTRIBUTE

static final java.lang.String CURRENT_SITE_PREFERENCE_ATTRIBUTE
The name of the request attribute that holds the current user's site preference value.

See Also:
Constant Field Values
Method Detail

handleSitePreference

SitePreference handleSitePreference(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
Handle the site preference aspect of the web request. Implementations should check if the user has indicated a site preference. If so, the indicated site preference should be saved and remembered for future requests. If no site preference has been indicated, an implementation may derive a default site preference from the Device that originated the request. After handling, the resolved site preference is available as a request attribute.

Parameters:
request - the web request
response - the web response
Returns:
the resolved site preference for the user that originated the web request

spring-mobile-device