Package dk.netarkivet.heritrix3.monitor
Class HttpLocaleHandler.HttpLocale
- java.lang.Object
-
- dk.netarkivet.heritrix3.monitor.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 Summary
Fields Modifier and Type Field Description boolean
bCookie
Did the HTTP request include a locale cookie.HttpLocaleHandler.Language
languageObj
Language object based on NAS language configuration.Locale
locale
Best match locale object.
-
Constructor Summary
Constructors Constructor Description HttpLocale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateLanguageLinks()
Generate language selection HTML based on the matched locale and cookie usage.
-
-
-
Field Detail
-
bCookie
public boolean bCookie
Did the HTTP request include a locale cookie.
-
languageObj
public HttpLocaleHandler.Language languageObj
Language object based on NAS language configuration.
-
locale
public Locale locale
Best match locale object.
-
-
Method Detail
-
generateLanguageLinks
public String generateLanguageLinks()
Generate language selection HTML based on the matched locale and cookie usage.- Returns:
- generated language HTML
-
-