public class BroadleafRequestContext
extends java.lang.Object
BroadleafRequestProcessor}| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
additionalProperties |
protected BroadleafCurrency |
broadleafCurrency |
protected Catalog |
currentCatalog |
protected java.lang.Boolean |
ignoreSite |
protected java.util.Currency |
javaCurrency |
protected java.util.Locale |
javaLocale |
protected Locale |
locale |
protected org.springframework.context.MessageSource |
messageSource |
protected javax.servlet.http.HttpServletRequest |
request |
protected RequestDTO |
requestDTO |
protected javax.servlet.http.HttpServletResponse |
response |
protected SandBox |
sandbox |
protected Site |
site |
protected Theme |
theme |
protected java.util.TimeZone |
timeZone |
protected org.springframework.web.context.request.WebRequest |
webRequest |
| Constructor and Description |
|---|
BroadleafRequestContext() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAdditionalProperties() |
BroadleafCurrency |
getBroadleafCurrency() |
static BroadleafRequestContext |
getBroadleafRequestContext() |
Catalog |
getCurrentCatalog() |
java.lang.Boolean |
getIgnoreSite() |
java.util.Currency |
getJavaCurrency()
Returns the java.util.Currency constructed from the org.broadleafcommerce.common.currency.domain.BroadleafCurrency
|
java.util.Locale |
getJavaLocale()
Returns the java.util.Locale constructed from the org.broadleafcommerce.common.locale.domain.Locale.
|
Locale |
getLocale() |
org.springframework.context.MessageSource |
getMessageSource() |
javax.servlet.http.HttpServletRequest |
getRequest()
Gets the current request on the context
|
RequestDTO |
getRequestDTO() |
static java.util.Map<java.lang.String,java.lang.String[]> |
getRequestParameterMap() |
java.lang.String |
getRequestURIWithoutContext() |
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the response for the context
|
SandBox |
getSandbox() |
Site |
getSite() |
Theme |
getTheme() |
java.util.TimeZone |
getTimeZone() |
org.springframework.web.context.request.WebRequest |
getWebRequest()
Returns the generic request for use outside of servlets (like in Portlets).
|
static boolean |
hasCurrency() |
static boolean |
hasLocale() |
boolean |
isProductionSandbox() |
boolean |
isSecure() |
void |
setAdditionalProperties(java.util.Map<java.lang.String,java.lang.Object> additionalProperties) |
void |
setBroadleafCurrency(BroadleafCurrency broadleafCurrency) |
static void |
setBroadleafRequestContext(BroadleafRequestContext broadleafRequestContext) |
void |
setCurrentCatalog(Catalog currentCatalog) |
void |
setIgnoreSite(java.lang.Boolean ignoreSite) |
void |
setLocale(Locale locale) |
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the current request on the context.
|
void |
setRequestDTO(RequestDTO requestDTO) |
void |
setResponse(javax.servlet.http.HttpServletResponse response)
Sets the response on the context
|
void |
setSandbox(SandBox sandbox) |
void |
setSite(Site site) |
void |
setTheme(Theme theme) |
void |
setTimeZone(java.util.TimeZone timeZone) |
void |
setWebRequest(org.springframework.web.context.request.WebRequest webRequest)
Sets the generic request on the context.
|
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected org.springframework.web.context.request.WebRequest webRequest
protected SandBox sandbox
protected Locale locale
protected java.util.TimeZone timeZone
protected BroadleafCurrency broadleafCurrency
protected Site site
protected Theme theme
protected java.util.Locale javaLocale
protected java.util.Currency javaCurrency
protected Catalog currentCatalog
protected java.lang.Boolean ignoreSite
protected java.util.Map<java.lang.String,java.lang.Object> additionalProperties
protected org.springframework.context.MessageSource messageSource
protected RequestDTO requestDTO
public static BroadleafRequestContext getBroadleafRequestContext()
public static void setBroadleafRequestContext(BroadleafRequestContext broadleafRequestContext)
public static boolean hasLocale()
public static boolean hasCurrency()
public javax.servlet.http.HttpServletRequest getRequest()
public void setRequest(javax.servlet.http.HttpServletRequest request)
setWebRequest(WebRequest) by wrapping
request in a ServletWebRequest.request - public javax.servlet.http.HttpServletResponse getResponse()
public void setResponse(javax.servlet.http.HttpServletResponse response)
response - public void setWebRequest(org.springframework.web.context.request.WebRequest webRequest)
ServletWebRequest then
setRequest(HttpServletRequest) will be invoked as well with the native underlying HttpServletRequest
passed as a parameter.
ServletWebRequest then an attempt is made to set the response
(note that this could be null if the ServletWebRequest was not instantiated with both the HttpServletRequest
and HttpServletResponsewebRequest - public org.springframework.web.context.request.WebRequest getWebRequest()
setRequest(HttpServletRequest)#setWebRequest(WebRequest)}public Site getSite()
public void setSite(Site site)
public SandBox getSandbox()
public void setSandbox(SandBox sandbox)
public Locale getLocale()
public java.util.Locale getJavaLocale()
public java.util.Currency getJavaCurrency()
public void setLocale(Locale locale)
public java.lang.String getRequestURIWithoutContext()
public boolean isSecure()
public boolean isProductionSandbox()
public Theme getTheme()
public void setTheme(Theme theme)
public BroadleafCurrency getBroadleafCurrency()
public void setBroadleafCurrency(BroadleafCurrency broadleafCurrency)
public Catalog getCurrentCatalog()
public void setCurrentCatalog(Catalog currentCatalog)
public static java.util.Map<java.lang.String,java.lang.String[]> getRequestParameterMap()
public java.lang.Boolean getIgnoreSite()
public void setIgnoreSite(java.lang.Boolean ignoreSite)
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
public void setAdditionalProperties(java.util.Map<java.lang.String,java.lang.Object> additionalProperties)
public org.springframework.context.MessageSource getMessageSource()
public void setMessageSource(org.springframework.context.MessageSource messageSource)
public java.util.TimeZone getTimeZone()
public void setTimeZone(java.util.TimeZone timeZone)
public RequestDTO getRequestDTO()
public void setRequestDTO(RequestDTO requestDTO)
Copyright © 2018. All Rights Reserved.