public class CookieWebCmsDomainContextResolver extends org.springframework.web.util.CookieGenerator implements WebCmsDomainContextResolver
WebCmsDomainContext from a cookie,
and writes it to a cookie as well. Mainly for use in admin web as usually a domain will be resolved in another manner
(eg. through DNS) for the front-end.WebCmsDomainContextResolver| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_COOKIE_NAME |
| Constructor and Description |
|---|
CookieWebCmsDomainContextResolver(WebCmsDomainService domainService,
org.springframework.context.ApplicationEventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
WebCmsDomainContext |
resolveDomainContext(javax.servlet.http.HttpServletRequest request)
Attempts to resolve the domain context attached to the current request.
|
void |
setDomainContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebCmsDomainContext domainContext)
Set the domain context for the current request.
|
addCookie, createCookie, getCookieDomain, getCookieMaxAge, getCookieName, getCookiePath, isCookieHttpOnly, isCookieSecure, removeCookie, setCookieDomain, setCookieHttpOnly, setCookieMaxAge, setCookieName, setCookiePath, setCookieSecurepublic static final String DEFAULT_COOKIE_NAME
public CookieWebCmsDomainContextResolver(WebCmsDomainService domainService, org.springframework.context.ApplicationEventPublisher eventPublisher)
public WebCmsDomainContext resolveDomainContext(javax.servlet.http.HttpServletRequest request)
WebCmsDomainContextResolverresolveDomainContext in interface WebCmsDomainContextResolverrequest - to resolve the context forpublic void setDomainContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
WebCmsDomainContext domainContext)
WebCmsDomainContextResolvernull, this method is the same as removing the context.setDomainContext in interface WebCmsDomainContextResolverrequest - of the domainresponse - attacheddomainContext - to setCopyright © 2020. All rights reserved.