Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getUserAgentType (0.12 sec)

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

            assertEquals(UserAgentType.IE, userAgentHelper.getUserAgentType());
        }
    
        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());
        }
    
        public void test_getUserAgentType_IE11() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/UserAgentHelper.java

    public class UserAgentHelper {
        protected static final String USER_AGENT = "user-agent";
    
        protected static final String USER_AGENT_TYPE = "ViewHelper.UserAgent";
    
        public UserAgentType getUserAgentType() {
            return LaRequestUtil.getOptionalRequest().map(request -> {
                UserAgentType uaType = (UserAgentType) request.getAttribute(USER_AGENT_TYPE);
                if (uaType == null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. 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]);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 40.2K bytes
    - Viewed (0)
Back to top