public abstract class AbstractSitePathUrlFactory extends AbstractSiteUrlFactory implements SiteUrlFactory
SiteUrlFactory
implementation that differentiates each site by the
HTTP request path. Provides functionality common to all path based site URL factories.Constructor and Description |
---|
AbstractSitePathUrlFactory(String mobilePath,
String tabletPath,
String rootPath)
Creates a new abstract site path URL factory for the given mobile path
and root application path.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getCleanMobilePath()
Returns the full mobile path without a trailing slash.
|
protected String |
getCleanNormalPath()
Returns the full normal path without a trailing slash.
|
protected String |
getCleanRootPath()
Returns the root path without a trailing slash.
|
protected String |
getCleanTabletPath()
Returns the full tablet path without a trailing slash.
|
String |
getFullMobilePath()
The full path of the mobile site.
|
String |
getFullNormalPath()
The full path of the normal site
|
String |
getFullTabletPath()
The full path of the tablet site.
|
String |
getMobilePath()
The mobile path with a trailing slash.
|
String |
getRootPath()
The root path of the application with a trailing slash.
|
String |
getTabletPath()
The tablet path with a trailing slash.
|
boolean |
hasMobilePath()
Whether there is a mobile path or not
|
boolean |
hasRootPath()
Whether there is a root path or not
|
boolean |
hasTabletPath()
Whether there is a tablet path or not
|
createSiteUrlInternal, optionalPort
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSiteUrl, isRequestForSite
public String getMobilePath()
Examples:
"/m/" "/mobile/"
public String getTabletPath()
Examples:
"/t/" "/tablet/"
public String getRootPath()
Examples:
"/showcase/" "/demo/"
public boolean hasMobilePath()
public boolean hasTabletPath()
public boolean hasRootPath()
public String getFullNormalPath()
Examples:
"/" "/showcase/" "/demo/"
getRootPath()
public String getFullMobilePath()
Examples:
"/mob/" "/showcase/m/" "/demo/mobile/"
getCleanMobilePath()
public String getFullTabletPath()
Examples:
"/tab/" "/showcase/t/" "/demo/tablet/"
getCleanTabletPath()
protected String getCleanNormalPath()
getFullNormalPath()
protected String getCleanMobilePath()
getFullMobilePath()
protected String getCleanTabletPath()
getFullTabletPath()
protected String getCleanRootPath()
getRootPath()