EN · DE · RU · FR · ES

#810: UserAgentDetectionBrowser.java

projectforge-business/src/main/java/org/projectforge/web/session/UserAgentDetectionBrowser.java Package-private helper class, projectforge-business/src/main/java/org/projectforge/web/session/UserAgentDetectionBrowser.java 36 lines · 6 code · 27 comments · 3 blank
Lightweight data holder linking browser detection patterns to UserAgentBrowser enum values.

Architecture

This is a package-private (default visibility) class within org.projectforge.web.session. It serves as a simple struct-like container with three fields:

Instances of this class are created and assembled in UserAgentDetection (the actual detection engine) which iterates over a list of these detection rules, testing each against the incoming User-Agent header. The first match wins. The class has no methods — it is purely a data transfer object between the detection rules configuration and the matching loop.

Git History

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