Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for Directive (0.54 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java

         */
        public int getCrawlDelay(final String userAgent) {
            final Directive directive = getMatchedDirective(userAgent);
            if (directive == null) {
                return 0;
            }
            return directive.getCrawlDelay();
        }
    
        /**
         * Returns the most specific directive matching the given user agent.
         * The method finds the longest matching user agent pattern in the directives,
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RobotsTxtTest.java

            Directive directive = new Directive("MyBot");
    
            assertNotNull(directive);
            assertEquals("MyBot", directive.getUserAgent());
            assertEquals(0, directive.getCrawlDelay());
        }
    
        public void test_directiveCrawlDelay() {
            // Test Directive crawl delay
            Directive directive = new Directive("MyBot");
    
            directive.setCrawlDelay(10);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/RobotsTxtHelper.java

                                for (final Directive directive : currentDirectiveList) {
                                    directive.addAllow(value);
                                }
                            }
                            continue;
                        }
    
                        // Try to parse as Crawl-delay directive
                        value = getValue(CRAWL_DELAY_RECORD, line);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 14 12:52:01 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-CacheControlCommon.kt

          }
    
          when {
            "no-cache".equals(directive, ignoreCase = true) -> {
              noCache = true
            }
            "no-store".equals(directive, ignoreCase = true) -> {
              noStore = true
            }
            "max-age".equals(directive, ignoreCase = true) -> {
              maxAgeSeconds = parameter.toNonNegativeInt(-1)
            }
            "s-maxage".equals(directive, ignoreCase = true) -> {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  5. api/go1.26.txt

    pkg go/ast, func ParseDirective(token.Pos, string) (Directive, bool) #68021
    pkg go/ast, method (*Directive) End() token.Pos #68021
    pkg go/ast, method (*Directive) ParseArgs() ([]DirectiveArg, error) #68021
    pkg go/ast, method (*Directive) Pos() token.Pos #68021
    pkg go/ast, type BasicLit struct, ValueEnd token.Pos #76031
    pkg go/ast, type Directive struct #68021
    pkg go/ast, type Directive struct, Args string #68021
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 19:57:52 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. doc/asm.html

    </p>
    
    <p>
    Global data symbols are defined by a sequence of initializing
    <code>DATA</code> directives followed by a <code>GLOBL</code> directive.
    Each <code>DATA</code> directive initializes a section of the
    corresponding memory.
    The memory not explicitly initialized is zeroed.
    The general form of the <code>DATA</code> directive is
    
    <pre>
    DATA	symbol+offset(SB)/width, value
    </pre>
    
    <p>
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:09:46 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    func (in *Input) enabled() bool {
    	return len(in.ifdefStack) == 0 || in.ifdefStack[len(in.ifdefStack)-1]
    }
    
    func (in *Input) expectNewline(directive string) {
    	tok := in.Stack.Next()
    	if tok != '\n' {
    		in.expectText("expected newline after", directive)
    	}
    }
    
    func (in *Input) Next() ScanToken {
    	if in.peek {
    		in.peek = false
    		tok := in.peekToken
    		in.text = in.peekText
    		return tok
    	}
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Nov 12 03:59:40 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. cmd/handler-utils.go

    }
    
    // isDirectiveValid - check if tagging-directive is valid.
    func isDirectiveValid(v string) bool {
    	// Check if set metadata-directive is valid.
    	return isDirectiveCopy(v) || isDirectiveReplace(v)
    }
    
    // Check if the directive COPY is requested.
    func isDirectiveCopy(value string) bool {
    	// By default if directive is not set we
    	// treat it as 'COPY' this function returns true.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 16.4K bytes
    - Viewed (1)
  9. fess-crawler/src/test/resources/org/codelibs/fess/crawler/helper/robots_malformed.txt

    # Test file for malformed robots.txt parsing
    # This file contains various malformed directives that should be handled gracefully
    
    # Case 1: Directives before any User-agent (should be ignored)
    Disallow: /orphaned1/
    Allow: /orphaned2/
    
    # Case 2: Valid user-agent with various malformed directives
    User-agent: GoodBot
    Disallow: /admin/
    InvalidDirective: some-value
    unknown-field: test
    Disallow /missing-colon
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 14 12:52:01 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/LmhostsTest.java

        }
    
        @Test
        void testPopulateWithInclude() throws Exception {
            // Test that include directives are processed (even if the include fails)
            // The main file content should still be loaded
    
            // Create a temporary lmhosts file with include directive
            File lmhostsFile = tempDir.resolve("lmhosts_include").toFile();
    
            try (FileWriter writer = new FileWriter(lmhostsFile)) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
Back to top