UserAgentBrowser.javaUser-Agent header. Stored in MySession for session-level browser differentiation.The enum defines 12 browser values: IE, MOZILLA, SAFARI, KONQUEROR, OPERA, FIREFOX, CHROME, OMNIWEB, ICAB, CAMINO, NETSCAPE, and UNKNOWN.
Two utility methods:
isIn(UserAgentBrowser...) — Tests membership in a varargs set, used for browser-group conditionals.getBrowserFromUserAgentString(String) — Static factory that parses a User-Agent string. Currently a simplified implementation: checks for "Version" → Safari and "Chrome" → Chrome. Falls back to UNKNOWN. A TODO comment indicates this should be expanded with more browser detection rules.Works alongside UserAgentDevice and UserAgentDetectionBrowser in the session detection subsystem. The UserAgentDetectionBrowser helper class holds the regex patterns (identity, versionSearch) that map to each enum value, enabling more sophisticated matching in the detection pipeline.
868d6abb7 2025 -> 2026 63081666f Source file headers: 2024-> 2025. b6092df09 Copyright 2023 -> 2024 ab45d51fa Copyright 2001-2022 -> 2001-2023. 5f7ef41b8 Copyright 2021 -> 2022 ceb63e8a1 Source code header: (C) 2001-2021. 7c79f1922 Copyright of source header -> 2020. dd5ca38ac CopyRight of all java file-header updated or created. 9ebb88522 Initial commit