Uploaded image for project: 'Spring Mobile'
  1. Spring Mobile
  2. MOBILE-72

Add additional static factory method to SiteSwitcherHandlerInterceptor for easier configuration

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.1.0.M3
    • Component/s: device
    • Labels:
      None

      Description

      Provide an alternative to the mDot and dotMobi factory methods that allows easy configuration of a custom domain strategy. It is not expected that this method will be compatible with the urlPath strategy as it should use the StandardSiteUrlFactory.

      This new factory method should probably look like the following example.

      public static SiteSwitcherHandlerInterceptor standard(String normalServerName, String mobileServerName, String cookieDomain, Boolean tabletIsMobile) {
          return new SiteSwitcherHandlerInterceptor(
              new StandardSiteUrlFactory(normalServerName), 
              new StandardSiteUrlFactory(mobileServerName), 
              new StandardSitePreferenceHandler(new CookieSitePreferenceRepository(cookieDomain)), 
              tabletIsMobile);
      }
      

        Attachments

          Activity

            People

            • Assignee:
              rclarkson Roy Clarkson
              Reporter:
              rclarkson Roy Clarkson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: