Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Agent (0.14 sec)

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

        }
    
        public void test_getUserAgentType_IE9() {
            getMockRequest().addHeader("user-agent", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)");
            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)");
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 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) {
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/es/config/exentity/CrawlingConfig.java

                public static final String PROXY_PORT = HcHttpClient.PROXY_PORT_PROPERTY;
                public static final String PROXY_HOST = HcHttpClient.PROXY_HOST_PROPERTY;
                public static final String USER_AGENT = HcHttpClient.USER_AGENT_PROPERTY;
            }
    
            // xpath.*
            public static class XPath {
                public static final String DEFAULT_LANG = "default.lang";
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/it/admin/ReqHeaderTests.java

            final Map<String, Object> requestBody = new HashMap<>();
            requestBody.put("name", "test_webconfig");
            requestBody.put("urls", "http://www.example.com");
            requestBody.put("user_agent", "Mozilla/5.0");
            requestBody.put("num_of_thread", 5);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", 100.0);
            requestBody.put("available", true);
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/es/config/exentity/WebConfigTest.java

            final SetOnce<Map<String, Object>> initParamMapSet = new SetOnce<>();
            WebConfig webConfig = new WebConfig();
            webConfig.setUserAgent(Constants.CRAWLING_USER_AGENT_PREFIX + "1.0" + Constants.CRAWLING_USER_AGENT_SUFFIX);
            CrawlerClientFactory crawlerClientFactory = webConfig.initializeClientFactory(() -> new CrawlerClientFactory() {
                public void setInitParameterMap(final Map<String, Object> params) {
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/it/admin/WebConfigTests.java

            final String keyProp = NAME_PREFIX + id;
            final String urls = "http://" + NAME_PREFIX + id;
            requestBody.put(KEY_PROPERTY, keyProp);
            requestBody.put("urls", urls);
            requestBody.put("user_agent", "Mozilla/5.0");
            requestBody.put("num_of_thread", 5);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", id);
            requestBody.put("available", true);
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/Constants.java

        public static final long DEFAULT_CRAWLING_EXECUTION_INTERVAL = 5000L;
    
        public static final String CRAWLING_USER_AGENT_PREFIX = "Mozilla/5.0 (compatible; Fess/";
    
        public static final String CRAWLING_USER_AGENT_SUFFIX = "; +http://fess.codelibs.org/bot.html)";
    
        // fess properties
        public static final String USER_INFO_PROPERTY = "user.info";
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/it/admin/WebAuthTests.java

            final Map<String, Object> requestBody = new HashMap<>();
            requestBody.put("name", "test_webconfig");
            requestBody.put("urls", "http://www.example.com");
            requestBody.put("user_agent", "Mozilla/5.0");
            requestBody.put("num_of_thread", 5);
            requestBody.put("interval_time", 1000);
            requestBody.put("boost", 100.0);
            requestBody.put("available", true);
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/config/exentity/WebConfig.java

                if (userAgent.startsWith(Constants.CRAWLING_USER_AGENT_PREFIX) && userAgent.endsWith(Constants.CRAWLING_USER_AGENT_SUFFIX)) {
                    paramMap.put(Client.USER_AGENT, fessConfig.getUserAgentName());
                } else {
                    paramMap.put(Client.USER_AGENT, userAgent);
                }
            } else {
                paramMap.put(Client.USER_AGENT, fessConfig.getUserAgentName());
            }
    
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 10K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                if (userAgent == null) {
                    Properties headers = new Properties();
    
                    headers.put(
                            "User-Agent",
                            ConfigUtils.getString(
                                    legacySupport.getRepositorySession(), "Maven", ConfigurationProperties.USER_AGENT));
                    try {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 29.9K bytes
    - Viewed (0)
Back to top