public class StandardSiteUrlFactory extends AbstractSiteUrlFactory implements SiteUrlFactory
| Constructor and Description |
|---|
StandardSiteUrlFactory(java.lang.String serverName)
Creates a new
StandardSiteUrlFactory. |
| 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.
|
createSiteUrlInternal, optionalPortpublic StandardSiteUrlFactory(java.lang.String serverName)
StandardSiteUrlFactory.serverName - the server namepublic 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