@Test public void createPathSiteUrlFromTabletSite() { request.setServerPort(80); request.setRequestURI("/showcase/tablet/about"); assertEquals("https: }
public String createSiteUrl(HttpServletRequest request) { String urlPath = request.getRequestURI(); if (getCleanTabletPath() != null && urlPath.startsWith(getCleanTabletPath())) { urlPath = urlPath.substring(getCleanTabletPath().length()); } else if (getRootPath() != null && urlPath.startsWith(getCleanRootPath())) { urlPath = urlPath.substring(getCleanRootPath().length()); } urlPath = getCleanMobilePath() + urlPath; return createSiteUrlInternal(request, request.getServerName(), urlPath); }
MobileSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory { public String createSiteUrl(HttpServletRequest request) { String urlPath = request.getRequestURI(); if (getCleanTabletPath() != null && urlPath.startsWith(getCleanTabletPath())) { urlPath = urlPath.substring(getCleanTabletPath().length()); } else if (getRootPath() != null && urlPath.startsWith(getCleanRootPath())) { urlPath = urlPath.substring(getCleanRootPath().length()); } urlPath = getCleanMobilePath() + urlPath; return createSiteUrlInternal(request, request.getServerName(), urlPath); } }
MobileSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory { public String createSiteUrl(HttpServletRequest request) { String urlPath = request.getRequestURI(); if (getCleanTabletPath() != null && urlPath.startsWith(getCleanTabletPath())) { urlPath = urlPath.substring(getCleanTabletPath().length()); } else if (getRootPath() != null && urlPath.startsWith(getCleanRootPath())) { urlPath = urlPath.substring(getCleanRootPath().length()); } urlPath = getCleanMobilePath() + urlPath; return createSiteUrlInternal(request, request.getServerName(), urlPath); } MobileSitePathUrlFactory(final String mobilePath, final String tabletPath);  MobileSitePathUrlFactory(final String mobilePath, final String tabletPath, final String rootPath); }
MobileSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory { public String createSiteUrl(HttpServletRequest request) { String urlPath = request.getRequestURI(); if (getCleanTabletPath() != null && urlPath.startsWith(getCleanTabletPath())) { urlPath = urlPath.substring(getCleanTabletPath().length()); } else if (getRootPath() != null && urlPath.startsWith(getCleanRootPath())) { urlPath = urlPath.substring(getCleanRootPath().length()); } urlPath = getCleanMobilePath() + urlPath; return createSiteUrlInternal(request, request.getServerName(), urlPath); } MobileSitePathUrlFactory(final String mobilePath, final String tabletPath);  MobileSitePathUrlFactory(final String mobilePath, final String tabletPath, final String rootPath); boolean isRequestForSite(HttpServletRequest request); String createSiteUrl(HttpServletRequest request); }
MobileSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory { public String createSiteUrl(HttpServletRequest request) { String urlPath = request.getRequestURI(); if (getCleanTabletPath() != null && urlPath.startsWith(getCleanTabletPath())) { urlPath = urlPath.substring(getCleanTabletPath().length()); } else if (getRootPath() != null && urlPath.startsWith(getCleanRootPath())) { urlPath = urlPath.substring(getCleanRootPath().length()); } urlPath = getCleanMobilePath() + urlPath; return createSiteUrlInternal(request, request.getServerName(), urlPath); } MobileSitePathUrlFactory(final String mobilePath, final String tabletPath);  MobileSitePathUrlFactory(final String mobilePath, final String tabletPath, final String rootPath); boolean isRequestForSite(HttpServletRequest request); String createSiteUrl(HttpServletRequest request);  }