Class WebContext

java.lang.Object
org.thymeleaf.context.AbstractContext
io.micronaut.views.thymeleaf.WebContext
All Implemented Interfaces:
org.thymeleaf.context.IContext

public class WebContext extends org.thymeleaf.context.AbstractContext
Web-oriented implementation of the IContext and IWebContext interfaces.
Since:
1.1.0
Author:
Semyon Gashchenko
  • Constructor Summary

    Constructors
    Constructor
    Description
    WebContext(@Nullable io.micronaut.http.HttpRequest<?> request, Locale locale, Map<String,Object> variables)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable io.micronaut.http.HttpRequest<?>
     

    Methods inherited from class org.thymeleaf.context.AbstractContext

    clearVariables, containsVariable, getLocale, getVariable, getVariableNames, removeVariable, setLocale, setVariable, setVariables

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WebContext

      public WebContext(@Nullable @Nullable io.micronaut.http.HttpRequest<?> request, Locale locale, Map<String,Object> variables)
      Parameters:
      request - HTTP request.
      locale - the locale.
      variables - the variables.
      See Also:
      • AbstractContext#AbstractContext(Locale, Map).
  • Method Details

    • getRequest

      @Nullable public @Nullable io.micronaut.http.HttpRequest<?> getRequest()
      Returns:
      HTTP request.