Package io.jmix.rest.impl
Class RestLocaleUtils
java.lang.Object
io.jmix.rest.impl.RestLocaleUtils
REST API authentication utility class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractLocaleFromRequestHeader
(jakarta.servlet.http.HttpServletRequest request) Method extracts locale information from the Accept-Language header.
-
Field Details
-
coreProperties
-
-
Constructor Details
-
RestLocaleUtils
public RestLocaleUtils()
-
-
Method Details
-
extractLocaleFromRequestHeader
@Nullable public Locale extractLocaleFromRequestHeader(jakarta.servlet.http.HttpServletRequest request) Method extracts locale information from the Accept-Language header. If no such header is specified or the passed locale is not among application available locales, then null is returned
-