public class TabletSitePathUrlFactory extends AbstractSitePathUrlFactory implements SiteUrlFactory
| Constructor and Description |
|---|
TabletSitePathUrlFactory(java.lang.String tabletPath,
java.lang.String mobilePath)
Creates a new tablet site path URL factory.
|
TabletSitePathUrlFactory(java.lang.String tabletPath,
java.lang.String mobilePath,
java.lang.String rootPath)
Creates a new tablet site path URL factory.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createSiteUrl(javax.servlet.http.HttpServletRequest request)
Create a fully-qualified URL that can be used to redirect the user to this site.
|
boolean |
isRequestForSite(javax.servlet.http.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, hasTabletPathcreateSiteUrlInternal, optionalPortpublic TabletSitePathUrlFactory(java.lang.String tabletPath,
java.lang.String mobilePath)
tabletPath - the path to the tablet sitemobilePath - the path to the mobile sitepublic TabletSitePathUrlFactory(java.lang.String tabletPath,
java.lang.String mobilePath,
java.lang.String rootPath)
tabletPath - the path to the tablet sitemobilePath - the path to the mobile siterootPath - the root path of the applicationpublic boolean isRequestForSite(javax.servlet.http.HttpServletRequest request)
SiteUrlFactorySiteSwitcherHandlerInterceptor uses this knowledge to implement its switching algorithm.isRequestForSite in interface SiteUrlFactorySiteSwitcherHandlerInterceptor.preHandle(HttpServletRequest, javax.servlet.http.HttpServletResponse, Object)public java.lang.String createSiteUrl(javax.servlet.http.HttpServletRequest request)
SiteUrlFactorycreateSiteUrl in interface SiteUrlFactory