|
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
org.springframework.mobile.device.switcher.NormalSitePathUrlFactory
public class NormalSitePathUrlFactory
Path based site URL factory implementation that handles requests for the "normal" site.
| Constructor Summary | |
|---|---|
NormalSitePathUrlFactory(java.lang.String mobilePath)
Creates a new normal site path URL factory. |
|
NormalSitePathUrlFactory(java.lang.String mobilePath,
java.lang.String rootPath)
Creates a new normal site path URL factory. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.springframework.mobile.device.switcher.AbstractSitePathUrlFactory |
|---|
getCleanMobilePath, getFullMobilePath, getMobilePath, getRootPath |
| 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 |
| Constructor Detail |
|---|
public NormalSitePathUrlFactory(java.lang.String mobilePath)
public NormalSitePathUrlFactory(java.lang.String mobilePath,
java.lang.String rootPath)
| Method Detail |
|---|
public 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)
SiteUrlFactory
createSiteUrl in interface SiteUrlFactory
|
spring-mobile-device | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||