public class SpringWebFluxThymeleafRequestContext extends Object implements IThymeleafRequestContext
Implementation of the IThymeleafRequestContext interface, meant to wrap a Spring
RequestContext object.
RequestContext| Constructor and Description |
|---|
SpringWebFluxThymeleafRequestContext(org.springframework.web.reactive.result.view.RequestContext requestContext,
org.springframework.web.server.ServerWebExchange serverWebExchange) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeLocale(Locale locale) |
void |
changeLocale(Locale locale,
TimeZone timeZone) |
IThymeleafBindStatus |
getBindStatus(String path) |
IThymeleafBindStatus |
getBindStatus(String path,
boolean htmlEscape) |
String |
getContextPath() |
String |
getContextUrl(String relativeUrl) |
String |
getContextUrl(String relativeUrl,
Map<String,?> params) |
Boolean |
getDefaultHtmlEscape() |
Optional<org.springframework.validation.Errors> |
getErrors(String name) |
Optional<org.springframework.validation.Errors> |
getErrors(String name,
boolean htmlEscape) |
Locale |
getLocale() |
String |
getMessage(org.springframework.context.MessageSourceResolvable resolvable) |
String |
getMessage(org.springframework.context.MessageSourceResolvable resolvable,
boolean htmlEscape) |
String |
getMessage(String code) |
String |
getMessage(String code,
List<?> args) |
String |
getMessage(String code,
List<?> args,
String defaultMessage) |
String |
getMessage(String code,
Object[] args) |
String |
getMessage(String code,
Object[] args,
boolean htmlEscape) |
String |
getMessage(String code,
Object[] args,
String defaultMessage) |
String |
getMessage(String code,
Object[] args,
String defaultMessage,
boolean htmlEscape) |
String |
getMessage(String code,
String defaultMessage) |
org.springframework.context.MessageSource |
getMessageSource() |
Map<String,Object> |
getModel() |
String |
getQueryString() |
IThymeleafRequestDataValueProcessor |
getRequestDataValueProcessor() |
String |
getRequestPath() |
org.springframework.web.server.ServerWebExchange |
getServerWebExchange() |
org.springframework.ui.context.Theme |
getTheme() |
TimeZone |
getTimeZone() |
boolean |
isDefaultHtmlEscape() |
void |
setDefaultHtmlEscape(boolean defaultHtmlEscape) |
String |
toString() |
public SpringWebFluxThymeleafRequestContext(org.springframework.web.reactive.result.view.RequestContext requestContext,
org.springframework.web.server.ServerWebExchange serverWebExchange)
public org.springframework.web.server.ServerWebExchange getServerWebExchange()
public org.springframework.context.MessageSource getMessageSource()
getMessageSource in interface IThymeleafRequestContextpublic Map<String,Object> getModel()
getModel in interface IThymeleafRequestContextpublic Locale getLocale()
getLocale in interface IThymeleafRequestContextpublic TimeZone getTimeZone()
getTimeZone in interface IThymeleafRequestContextpublic void changeLocale(Locale locale)
changeLocale in interface IThymeleafRequestContextpublic void changeLocale(Locale locale, TimeZone timeZone)
changeLocale in interface IThymeleafRequestContextpublic void setDefaultHtmlEscape(boolean defaultHtmlEscape)
setDefaultHtmlEscape in interface IThymeleafRequestContextpublic boolean isDefaultHtmlEscape()
isDefaultHtmlEscape in interface IThymeleafRequestContextpublic Boolean getDefaultHtmlEscape()
getDefaultHtmlEscape in interface IThymeleafRequestContextpublic String getContextPath()
getContextPath in interface IThymeleafRequestContextpublic String getContextUrl(String relativeUrl)
getContextUrl in interface IThymeleafRequestContextpublic String getContextUrl(String relativeUrl, Map<String,?> params)
getContextUrl in interface IThymeleafRequestContextpublic String getRequestPath()
getRequestPath in interface IThymeleafRequestContextpublic String getQueryString()
getQueryString in interface IThymeleafRequestContextpublic String getMessage(String code, String defaultMessage)
getMessage in interface IThymeleafRequestContextpublic String getMessage(String code, Object[] args, String defaultMessage)
getMessage in interface IThymeleafRequestContextpublic String getMessage(String code, List<?> args, String defaultMessage)
getMessage in interface IThymeleafRequestContextpublic String getMessage(String code, Object[] args, String defaultMessage, boolean htmlEscape)
getMessage in interface IThymeleafRequestContextpublic String getMessage(String code) throws org.springframework.context.NoSuchMessageException
getMessage in interface IThymeleafRequestContextorg.springframework.context.NoSuchMessageExceptionpublic String getMessage(String code, Object[] args) throws org.springframework.context.NoSuchMessageException
getMessage in interface IThymeleafRequestContextorg.springframework.context.NoSuchMessageExceptionpublic String getMessage(String code, List<?> args) throws org.springframework.context.NoSuchMessageException
getMessage in interface IThymeleafRequestContextorg.springframework.context.NoSuchMessageExceptionpublic String getMessage(String code, Object[] args, boolean htmlEscape) throws org.springframework.context.NoSuchMessageException
getMessage in interface IThymeleafRequestContextorg.springframework.context.NoSuchMessageExceptionpublic String getMessage(org.springframework.context.MessageSourceResolvable resolvable) throws org.springframework.context.NoSuchMessageException
getMessage in interface IThymeleafRequestContextorg.springframework.context.NoSuchMessageExceptionpublic String getMessage(org.springframework.context.MessageSourceResolvable resolvable, boolean htmlEscape) throws org.springframework.context.NoSuchMessageException
getMessage in interface IThymeleafRequestContextorg.springframework.context.NoSuchMessageExceptionpublic Optional<org.springframework.validation.Errors> getErrors(String name)
getErrors in interface IThymeleafRequestContextpublic Optional<org.springframework.validation.Errors> getErrors(String name, boolean htmlEscape)
getErrors in interface IThymeleafRequestContextpublic org.springframework.ui.context.Theme getTheme()
getTheme in interface IThymeleafRequestContextpublic IThymeleafRequestDataValueProcessor getRequestDataValueProcessor()
getRequestDataValueProcessor in interface IThymeleafRequestContextpublic IThymeleafBindStatus getBindStatus(String path) throws IllegalStateException
getBindStatus in interface IThymeleafRequestContextIllegalStateExceptionpublic IThymeleafBindStatus getBindStatus(String path, boolean htmlEscape) throws IllegalStateException
getBindStatus in interface IThymeleafRequestContextIllegalStateExceptionCopyright © 2017 The THYMELEAF team. All rights reserved.