- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for getUserAgentType (0.05 seconds)
-
src/main/java/org/codelibs/fess/helper/UserAgentHelper.java
* and caches the result in the request attribute for subsequent calls. * * @return the detected user agent type, or OTHER if no specific type is detected */ public UserAgentType getUserAgentType() { return LaRequestUtil.getOptionalRequest().map(request -> { UserAgentType uaType = (UserAgentType) request.getAttribute(USER_AGENT_TYPE); if (uaType == null) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 3.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/UserAgentHelperTest.java
assertEquals(UserAgentType.IE, userAgentHelper.getUserAgentType()); } @Test public void test_getUserAgentType_IE10() { getMockRequest().addHeader("user-agent", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)"); assertEquals(UserAgentType.IE, userAgentHelper.getUserAgentType()); } @Test public void test_getUserAgentType_IE11() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 7.5K bytes - Click Count (0)