Interface IThymeleafRequestContext

All Known Implementing Classes:
SpringWebFluxThymeleafRequestContext, SpringWebMvcThymeleafRequestContext

public interface IThymeleafRequestContext

This interface is meant to abstract a Spring RequestContext, without the client code needing to know if it is a Spring WebMVC or Spring WebFlux implementation of this RequestContext.

Since:
3.0.3
Author:
Daniel Fernández
See Also:
  • Method Details

    • getMessageSource

      org.springframework.context.MessageSource getMessageSource()
    • getModel

      Map<String,Object> getModel()
    • getLocale

      Locale getLocale()
    • getTimeZone

      TimeZone getTimeZone()
    • changeLocale

      void changeLocale(Locale locale)
    • changeLocale

      void changeLocale(Locale locale, TimeZone timeZone)
    • setDefaultHtmlEscape

      void setDefaultHtmlEscape(boolean defaultHtmlEscape)
    • isDefaultHtmlEscape

      boolean isDefaultHtmlEscape()
    • getDefaultHtmlEscape

      Boolean getDefaultHtmlEscape()
    • getContextPath

      String getContextPath()
    • getContextUrl

      String getContextUrl(String relativeUrl)
    • getContextUrl

      String getContextUrl(String relativeUrl, Map<String,?> params)
    • getRequestPath

      String getRequestPath()
    • getQueryString

      String getQueryString()
    • getMessage

      String getMessage(String code, String defaultMessage)
    • getMessage

      String getMessage(String code, Object[] args, String defaultMessage)
    • getMessage

      String getMessage(String code, List<?> args, String defaultMessage)
    • getMessage

      String getMessage(String code, Object[] args, String defaultMessage, boolean htmlEscape)
    • getMessage

      String getMessage(String code) throws org.springframework.context.NoSuchMessageException
      Throws:
      org.springframework.context.NoSuchMessageException
    • getMessage

      String getMessage(String code, Object[] args) throws org.springframework.context.NoSuchMessageException
      Throws:
      org.springframework.context.NoSuchMessageException
    • getMessage

      String getMessage(String code, List<?> args) throws org.springframework.context.NoSuchMessageException
      Throws:
      org.springframework.context.NoSuchMessageException
    • getMessage

      String getMessage(String code, Object[] args, boolean htmlEscape) throws org.springframework.context.NoSuchMessageException
      Throws:
      org.springframework.context.NoSuchMessageException
    • getMessage

      String getMessage(org.springframework.context.MessageSourceResolvable resolvable) throws org.springframework.context.NoSuchMessageException
      Throws:
      org.springframework.context.NoSuchMessageException
    • getMessage

      String getMessage(org.springframework.context.MessageSourceResolvable resolvable, boolean htmlEscape) throws org.springframework.context.NoSuchMessageException
      Throws:
      org.springframework.context.NoSuchMessageException
    • getErrors

      Optional<org.springframework.validation.Errors> getErrors(String name)
    • getErrors

      Optional<org.springframework.validation.Errors> getErrors(String name, boolean htmlEscape)
    • getTheme

      org.springframework.ui.context.Theme getTheme()
    • getRequestDataValueProcessor

      IThymeleafRequestDataValueProcessor getRequestDataValueProcessor()
    • getBindStatus

      Throws:
      IllegalStateException
    • getBindStatus

      IThymeleafBindStatus getBindStatus(String path, boolean htmlEscape) throws IllegalStateException
      Throws:
      IllegalStateException