Class HttpLocaleHandler.HttpLocale

  • Enclosing class:
    HttpLocaleHandler

    public class HttpLocaleHandler.HttpLocale
    extends Object
    HTTP locale object with information about the best matched locale based on Accept-Language header, cookie usage and the NAS language object.
    • Field Detail

      • bCookie

        public boolean bCookie
        Did the HTTP request include a locale cookie.
      • locale

        public Locale locale
        Best match locale object.
    • Constructor Detail

      • HttpLocale

        public HttpLocale()
    • Method Detail

      • generateLanguageLinks

        public String generateLanguageLinks()
        Generate language selection HTML based on the matched locale and cookie usage.
        Returns:
        generated language HTML