/** * Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale, * the locales that are acceptable to the client based on the Accept-Language header. * If the client request doesn't provide an Accept-Language header, this * method returns an Enumeration containing one Locale, the default locale for the server. **/ public java.util.Enumeration getLocales() { return getPreferredLocales().elements(); }
/** * Returns the preferred Locale that the client will accept content in, based on the Accept-Language header. * If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server. **/ public Locale getLocale() { return (Locale) getPreferredLocales().firstElement(); }
/** * Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale, * the locales that are acceptable to the client based on the Accept-Language header. * If the client request doesn't provide an Accept-Language header, this * method returns an Enumeration containing one Locale, the default locale for the server. **/ public java.util.Enumeration getLocales() { return getPreferredLocales().elements(); }
/** * Returns the preferred Locale that the client will accept content in, based on the Accept-Language header. * If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server. **/ public Locale getLocale() { return (Locale) getPreferredLocales().firstElement(); }
/** * Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale, * the locales that are acceptable to the client based on the Accept-Language header. * If the client request doesn't provide an Accept-Language header, this * method returns an Enumeration containing one Locale, the default locale for the server. **/ public java.util.Enumeration getLocales() { return getPreferredLocales().elements(); }
/** * Returns the preferred Locale that the client will accept content in, based on the Accept-Language header. * If the client request doesn't provide an Accept-Language header, this method returns the default locale for the server. **/ public Locale getLocale() { return (Locale) getPreferredLocales().firstElement(); }