BindStatus
|
getBindStatus(String path, boolean htmlEscape)
Create a BindStatus for the given bind object,
using the "defaultHtmlEscape" setting.
|
BindStatus
|
getBindStatus(String path)
Create a BindStatus for the given bind object,
using the "defaultHtmlEscape" setting.
|
String
|
getContextPath()
Return the context path of the original request,
that is, the path that indicates the current web application.
|
String
|
getContextUrl(String relativeUrl)
Return a context-aware URl for the given relative URL.
|
Boolean
|
getDefaultHtmlEscape()
Return the default HTML escape setting, differentiating
between no default specified and an explicit value.
|
Errors
|
getErrors(String name)
Retrieve the Errors instance for the given bind object,
using the "defaultHtmlEscape" setting.
|
Errors
|
getErrors(String name, boolean htmlEscape)
Retrieve the Errors instance for the given bind object.
|
Locale
|
getFallbackLocale()
Determine the fallback locale for this context.
|
Theme
|
getFallbackTheme()
Determine the fallback theme for this context.
|
final
Locale
|
getLocale()
Return the current Locale (never null ).
|
String
|
getMessage(String code, String defaultMessage)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
|
String
|
getMessage(String code, Object[] args)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
|
String
|
getMessage(String code)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
|
String
|
getMessage(String code, List args)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
|
String
|
getMessage(String code, Object[] args, boolean htmlEscape)
Retrieve the message for the given code.
|
String
|
getMessage(String code, Object[] args, String defaultMessage)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
|
String
|
getMessage(String code, List args, String defaultMessage)
Retrieve the message for the given code, using the "defaultHtmlEscape" setting.
|
String
|
getMessage(MessageSourceResolvable resolvable, boolean htmlEscape)
Retrieve the given MessageSourceResolvable (e.g.
|
String
|
getMessage(String code, Object[] args, String defaultMessage, boolean htmlEscape)
Retrieve the message for the given code.
|
String
|
getMessage(MessageSourceResolvable resolvable)
Retrieve the given MessageSourceResolvable (e.g.
|
final
MessageSource
|
getMessageSource()
Return the current WebApplicationContext as MessageSource.
|
final
Map<String, Object>
|
getModel()
Return the model Map that this RequestContext encapsulates, if any.
|
Object
|
getModelObject(String modelName)
Retrieve the model object for the given model name,
either from the model or from the request attributes.
|
String
|
getQueryString()
Return the query string of the current request, that is, the part after
the request path.
|
final
HttpServletRequest
|
getRequest()
Return the underlying HttpServletRequest.
|
String
|
getRequestUri()
Return the request URI of the original request, that is, the invoked URL
without parameters.
|
final
ServletContext
|
getServletContext()
Return the underlying ServletContext.
|
final
Theme
|
getTheme()
Return the current theme (never null ).
|
String
|
getThemeMessage(String code, List args, String defaultMessage)
Retrieve the theme message for the given code.
|
String
|
getThemeMessage(String code, Object[] args, String defaultMessage)
Retrieve the theme message for the given code.
|
String
|
getThemeMessage(String code, Object[] args)
Retrieve the theme message for the given code.
|
String
|
getThemeMessage(String code, String defaultMessage)
Retrieve the theme message for the given code.
|
String
|
getThemeMessage(String code)
Retrieve the theme message for the given code.
|
String
|
getThemeMessage(String code, List args)
Retrieve the theme message for the given code.
|
String
|
getThemeMessage(MessageSourceResolvable resolvable)
Retrieve the given MessageSourceResolvable in the current theme.
|
UrlPathHelper
|
getUrlPathHelper()
Return the UrlPathHelper used for context path and request URI decoding.
|
final
WebApplicationContext
|
getWebApplicationContext()
Return the current WebApplicationContext.
|
void
|
initContext(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext, Map<String, Object> model)
Initialize this context with the given request,
using the given model attributes for Errors retrieval.
|
boolean
|
isDefaultHtmlEscape()
Is default HTML escaping active?
Falls back to false in case of no explicit default given.
|
void
|
setDefaultHtmlEscape(boolean defaultHtmlEscape)
(De)activate default HTML escaping for messages and errors, for the scope
of this RequestContext.
|
void
|
setUrlPathHelper(UrlPathHelper urlPathHelper)
Set the UrlPathHelper to use for context path and request URI decoding.
|