-
Dec 29th, 2010, 08:00 PM
#1
Site Preference without SiteSwitcherHandlerInterceptor
Hi,
I have been diving into Spring Mobile today. For my app I want to use existing Spring MVC controllers to render different views depending whether the client is a mobile device or a classic browser.
That part works flawlessly so far by injecting a org.springframework.mobile.device.Device into my Controller methods using the DeviceResolverHandlerInterceptor. In my simple use-case I want to keep the mobile and non-mobile content on one domain (aka I don't plan on using the SiteSwitcherHandlerInterceptor)
However, I want to also provide an additional feature to let mobile users switch to the full version of the website and stay on that full version for the duration of their session without having to use the SiteSwitcherHandlerInterceptor, which has the "site preference" feature that is part of the SiteSwitcherHandlerInterceptor.
Unfortunately, the "site preference" feature is somewhat embedded and I cannot use it stand-alone.
In the GIT repository I saw that in an earlier version there was a SitePreferenceResolvingHandlerInterceptor which was unfortunately removed in a later revision (http://git.springsource.org/spring-m...c6cb4e148278f4)
What was the rationale behind it? Does the current implementation of Spring Mobile 1.0.0.M2 allow for my scenario without doing my own customization?
Thanks!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules