How to get user locale in a Java Servlet

Locale locale = request.getLocale();
Enumeration locales = request.getLocales();