public class MobileSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory
Constructor and Description |
---|
MobileSitePathUrlFactory(String mobilePath,
String tabletPath)
Creates a new mobile site path URL factory.
|
MobileSitePathUrlFactory(String mobilePath,
String tabletPath,
String rootPath)
Creates a new mobile site path URL factory
|
Modifier and Type | Method and Description |
---|---|
String |
createSiteUrl(HttpServletRequest request)
Create a fully-qualified URL that can be used to redirect the user to this site.
|
boolean |
isRequestForSite(HttpServletRequest request)
Did the request originate from this site?
Used to determine what site the user is currently viewing.
|
getCleanMobilePath, getCleanNormalPath, getCleanRootPath, getCleanTabletPath, getFullMobilePath, getFullNormalPath, getFullTabletPath, getMobilePath, getRootPath, getTabletPath, hasMobilePath, hasRootPath, hasTabletPath
createSiteUrlInternal, optionalPort
public MobileSitePathUrlFactory(String mobilePath, String tabletPath)
mobilePath
- the path to the mobile sitetabletPath
- the path to the tablet sitepublic boolean isRequestForSite(HttpServletRequest request)
SiteUrlFactory
SiteSwitcherHandlerInterceptor
uses this knowledge to implement its switching algorithm.isRequestForSite
in interface SiteUrlFactory
SiteSwitcherHandlerInterceptor.preHandle(HttpServletRequest, javax.servlet.http.HttpServletResponse, Object)
public String createSiteUrl(HttpServletRequest request)
SiteUrlFactory
createSiteUrl
in interface SiteUrlFactory