Class RequestExpressionObject
java.lang.Object
io.micronaut.views.thymeleaf.webexpression.RequestExpressionObject
Micronaut-native request expression object exposed to Thymeleaf as
#request.- Since:
- 6.1.0
- Author:
- Sergio del Amo
-
Method Details
-
getContextPath
- Returns:
- the configured server context path, or an empty string when no context path is configured.
-
getMethod
- Returns:
- the HTTP method name.
-
getPath
- Returns:
- the Micronaut request path.
-
getRequestURI
- Returns:
- the request URI path without the query string.
-
getRequestURL
- Returns:
- the request URL when available, or Micronaut's relative URI path when the server request has no absolute URL.
-
getQueryString
- Returns:
- the raw query string, or
nullif the request URI does not contain one.
-