@Test public void mobileDeviceTabletPreference() throws Exception { device.setDeviceType(DeviceType.MOBILE); sitePreferenceRepository.setSitePreference(SitePreference.TABLET); assertFalse(siteSwitcher.preHandle(request, response, null)); assertEquals("https: }
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { return siteSwitcherHandler.handleSiteSwitch(request, response); }
SiteSwitcherHandlerInterceptor extends HandlerInterceptorAdapter { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { return siteSwitcherHandler.handleSiteSwitch(request, response); } }
SiteSwitcherHandlerInterceptor extends HandlerInterceptorAdapter { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { return siteSwitcherHandler.handleSiteSwitch(request, response); } SiteSwitcherHandlerInterceptor(SiteSwitcherHandler siteSwitcherHandler);  SiteSwitcherHandlerInterceptor(SiteUrlFactory normalSiteUrlFactory, SiteUrlFactory mobileSiteUrlFactory,
			SitePreferenceHandler sitePreferenceHandler);  SiteSwitcherHandlerInterceptor(SiteUrlFactory normalSiteUrlFactory, SiteUrlFactory mobileSiteUrlFactory,
			SitePreferenceHandler sitePreferenceHandler, Boolean tabletIsMobile);  SiteSwitcherHandlerInterceptor(SiteUrlFactory normalSiteUrlFactory, SiteUrlFactory mobileSiteUrlFactory,
			SiteUrlFactory tabletSiteUrlFactory, SitePreferenceHandler sitePreferenceHandler); }
SiteSwitcherHandlerInterceptor extends HandlerInterceptorAdapter { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { return siteSwitcherHandler.handleSiteSwitch(request, response); } SiteSwitcherHandlerInterceptor(SiteSwitcherHandler siteSwitcherHandler);  SiteSwitcherHandlerInterceptor(SiteUrlFactory normalSiteUrlFactory, SiteUrlFactory mobileSiteUrlFactory,
			SitePreferenceHandler sitePreferenceHandler);  SiteSwitcherHandlerInterceptor(SiteUrlFactory normalSiteUrlFactory, SiteUrlFactory mobileSiteUrlFactory,
			SitePreferenceHandler sitePreferenceHandler, Boolean tabletIsMobile);  SiteSwitcherHandlerInterceptor(SiteUrlFactory normalSiteUrlFactory, SiteUrlFactory mobileSiteUrlFactory,
			SiteUrlFactory tabletSiteUrlFactory, SitePreferenceHandler sitePreferenceHandler); boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler); static SiteSwitcherHandlerInterceptor mDot(String serverName); static SiteSwitcherHandlerInterceptor mDot(String serverName, Boolean tabletIsMobile); static SiteSwitcherHandlerInterceptor dotMobi(String serverName); static SiteSwitcherHandlerInterceptor dotMobi(String serverName, Boolean tabletIsMobile); static SiteSwitcherHandlerInterceptor standard(String normalServerName, String mobileServerName, String cookieDomain); static SiteSwitcherHandlerInterceptor standard(String normalServerName, String mobileServerName, String cookieDomain, Boolean tabletIsMobile); static SiteSwitcherHandlerInterceptor standard(String normalServerName, String mobileServerName, String tabletServerName, String cookieDomain); static SiteSwitcherHandlerInterceptor urlPath(String mobilePath); static SiteSwitcherHandlerInterceptor urlPath(String mobilePath, String rootPath); static SiteSwitcherHandlerInterceptor urlPath(String mobilePath, String tabletPath, String rootPath); }
SiteSwitcherHandlerInterceptor extends HandlerInterceptorAdapter { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { return siteSwitcherHandler.handleSiteSwitch(request, response); } SiteSwitcherHandlerInterceptor(SiteSwitcherHandler siteSwitcherHandler);  SiteSwitcherHandlerInterceptor(SiteUrlFactory normalSiteUrlFactory, SiteUrlFactory mobileSiteUrlFactory,
			SitePreferenceHandler sitePreferenceHandler);  SiteSwitcherHandlerInterceptor(SiteUrlFactory normalSiteUrlFactory, SiteUrlFactory mobileSiteUrlFactory,
			SitePreferenceHandler sitePreferenceHandler, Boolean tabletIsMobile);  SiteSwitcherHandlerInterceptor(SiteUrlFactory normalSiteUrlFactory, SiteUrlFactory mobileSiteUrlFactory,
			SiteUrlFactory tabletSiteUrlFactory, SitePreferenceHandler sitePreferenceHandler); boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler); static SiteSwitcherHandlerInterceptor mDot(String serverName); static SiteSwitcherHandlerInterceptor mDot(String serverName, Boolean tabletIsMobile); static SiteSwitcherHandlerInterceptor dotMobi(String serverName); static SiteSwitcherHandlerInterceptor dotMobi(String serverName, Boolean tabletIsMobile); static SiteSwitcherHandlerInterceptor standard(String normalServerName, String mobileServerName, String cookieDomain); static SiteSwitcherHandlerInterceptor standard(String normalServerName, String mobileServerName, String cookieDomain, Boolean tabletIsMobile); static SiteSwitcherHandlerInterceptor standard(String normalServerName, String mobileServerName, String tabletServerName, String cookieDomain); static SiteSwitcherHandlerInterceptor urlPath(String mobilePath); static SiteSwitcherHandlerInterceptor urlPath(String mobilePath, String rootPath); static SiteSwitcherHandlerInterceptor urlPath(String mobilePath, String tabletPath, String rootPath);  }