@Test public void notRequestForRootSiteWithPathTablet() { request.setRequestURI("/tab/marvelous/"); assertFalse(basicRootFactory.isRequestForSite(request)); }
public boolean isRequestForSite(HttpServletRequest request) { String requestURI = request.getRequestURI(); if (hasMobilePath() && (requestURI.startsWith(getFullMobilePath()) || requestURI.equals(getCleanMobilePath()))) { return false; } else if (hasTabletPath() && (requestURI.startsWith(getFullTabletPath()) || requestURI.equals(getCleanTabletPath()))) { return false; } return true; }
NormalSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory { public boolean isRequestForSite(HttpServletRequest request) { String requestURI = request.getRequestURI(); if (hasMobilePath() && (requestURI.startsWith(getFullMobilePath()) || requestURI.equals(getCleanMobilePath()))) { return false; } else if (hasTabletPath() && (requestURI.startsWith(getFullTabletPath()) || requestURI.equals(getCleanTabletPath()))) { return false; } return true; } }
NormalSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory { public boolean isRequestForSite(HttpServletRequest request) { String requestURI = request.getRequestURI(); if (hasMobilePath() && (requestURI.startsWith(getFullMobilePath()) || requestURI.equals(getCleanMobilePath()))) { return false; } else if (hasTabletPath() && (requestURI.startsWith(getFullTabletPath()) || requestURI.equals(getCleanTabletPath()))) { return false; } return true; } NormalSitePathUrlFactory(final String mobilePath);  NormalSitePathUrlFactory(final String mobilePath, final String rootPath);  NormalSitePathUrlFactory(final String mobilePath, final String tabletPath, final String rootPath); }
NormalSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory { public boolean isRequestForSite(HttpServletRequest request) { String requestURI = request.getRequestURI(); if (hasMobilePath() && (requestURI.startsWith(getFullMobilePath()) || requestURI.equals(getCleanMobilePath()))) { return false; } else if (hasTabletPath() && (requestURI.startsWith(getFullTabletPath()) || requestURI.equals(getCleanTabletPath()))) { return false; } return true; } NormalSitePathUrlFactory(final String mobilePath);  NormalSitePathUrlFactory(final String mobilePath, final String rootPath);  NormalSitePathUrlFactory(final String mobilePath, final String tabletPath, final String rootPath); boolean isRequestForSite(HttpServletRequest request); String createSiteUrl(HttpServletRequest request); }
NormalSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory { public boolean isRequestForSite(HttpServletRequest request) { String requestURI = request.getRequestURI(); if (hasMobilePath() && (requestURI.startsWith(getFullMobilePath()) || requestURI.equals(getCleanMobilePath()))) { return false; } else if (hasTabletPath() && (requestURI.startsWith(getFullTabletPath()) || requestURI.equals(getCleanTabletPath()))) { return false; } return true; } NormalSitePathUrlFactory(final String mobilePath);  NormalSitePathUrlFactory(final String mobilePath, final String rootPath);  NormalSitePathUrlFactory(final String mobilePath, final String tabletPath, final String rootPath); boolean isRequestForSite(HttpServletRequest request); String createSiteUrl(HttpServletRequest request);  }