|
spring-mobile-device | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.mobile.device.switcher.AbstractSiteUrlFactory
org.springframework.mobile.device.switcher.AbstractSitePathUrlFactory
public abstract class AbstractSitePathUrlFactory
Abstract SiteUrlFactory implementation that differentiates each site by the
HTTP request path. Provides functionality common to all path based site URL factories.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.springframework.mobile.device.switcher.AbstractSiteUrlFactory |
|---|
createSiteUrlInternal, optionalPort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.mobile.device.switcher.SiteUrlFactory |
|---|
createSiteUrl, isRequestForSite |
| Constructor Detail |
|---|
public AbstractSitePathUrlFactory(java.lang.String mobilePath)
public AbstractSitePathUrlFactory(java.lang.String mobilePath,
java.lang.String rootPath)
| Method Detail |
|---|
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()
|
spring-mobile-device | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||