Class RequestLocaleProvider

java.lang.Object
io.jmix.securityoauth2.impl.RequestLocaleProvider

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

  • Constructor Details

    • RequestLocaleProvider

      public RequestLocaleProvider()
  • Method Details

    • getLocale

      @Nullable public Locale getLocale(javax.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