Class RestLocaleUtils

java.lang.Object
io.jmix.rest.impl.RestLocaleUtils

@Component("rest_RestLocaleUtils") public class RestLocaleUtils extends Object
REST API authentication utility class
  • Field Details

  • 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