Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getCanonicalURL (0.13 sec)

  1. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

            Document document = getDocument(data);
            String value = transformer.getCanonicalUrl(responseData, document);
            assertNull(value);
    
            data = "<html><head><link rel=\"canonical\" href=\"http://example.com/\"></head><body>aaa</body></html>";
            document = getDocument(data);
            value = transformer.getCanonicalUrl(responseData, document);
            assertEquals("http://example.com/", value);
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

        protected Map<String, Object> processAdditionalData(final Map<String, Object> dataMap, final ResponseData responseData,
                final Document document) {
            // canonical
            final String canonicalUrl = getCanonicalUrl(responseData, document);
            if (canonicalUrl != null && !canonicalUrl.equalsIgnoreCase(responseData.getUrl()) && isValidUrl(canonicalUrl)
                    && isValidCanonicalUrl(responseData.getUrl(), canonicalUrl)) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 42.9K bytes
    - Viewed (0)
Back to top