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(java.lang.String mobilePath)
Creates a new abstract site path URL factory for the given mobile path.
|
AbstractSitePathUrlFactory(java.lang.String mobilePath,
java.lang.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 java.lang.String |
getCleanMobilePath()
Returns the full mobile path without a trailing slash.
|
java.lang.String |
getFullMobilePath()
The full path of the mobile site.
|
java.lang.String |
getMobilePath()
The mobile path with a trailing slash.
|
java.lang.String |
getRootPath()
The root path of the application with a trailing slash.
|
createSiteUrlInternal, optionalPortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSiteUrl, isRequestForSitepublic AbstractSitePathUrlFactory(java.lang.String mobilePath)
public AbstractSitePathUrlFactory(java.lang.String mobilePath,
java.lang.String rootPath)
public java.lang.String getMobilePath()
Examples:
"/m/" "/mobile/"
public java.lang.String getRootPath()
Examples:
"/showcase/" "/demo/"
public java.lang.String getFullMobilePath()
Examples:
"/showcase/m/" "/demo/mobile/"
protected java.lang.String getCleanMobilePath()