Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getUserAgentType (1.12 sec)

  1. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

                public UserAgentType getUserAgentType() {
                    return UserAgentType.IE;
                }
            };
            ComponentUtil.register(userAgentHelper, "userAgentHelper");
    
            assertEquals("file://test.txt", viewHelper.updateFileProtocol("file:///test.txt"));
    
            userAgentHelper = new UserAgentHelper() {
                public UserAgentType getUserAgentType() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  2. 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) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/ViewHelper.java

            final int pos = url.indexOf(':', 5);
            final boolean isLocalFile = pos > 0 && pos < 12;
    
            final UserAgentType ua = ComponentUtil.getUserAgentHelper().getUserAgentType();
            final DynamicProperties systemProperties = ComponentUtil.getSystemProperties();
            switch (ua) {
            case IE:
                if (isLocalFile) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
Back to top