Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getUserAgentType (0.17 sec)

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

            assertUrlLink("ftp://www.codelibs.org/%z", //
                    "ftp://www.codelibs.org/%z");
    
            userAgentHelper = new UserAgentHelper() {
                public UserAgentType getUserAgentType() {
                    return UserAgentType.IE;
                }
            };
            ComponentUtil.register(userAgentHelper, "userAgentHelper");
            FileUtil.writeBytes(propertiesFile.getAbsolutePath(), new byte[0]);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 15.1K bytes
    - Viewed (0)
  2. 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) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 40.1K bytes
    - Viewed (2)
Back to top