@Test public final void testXmlHeritrix3Profile() { Heritrix3ProfileOptions profileOptions = testInstance.getHeritrix3ProfileOptions(); assertEquals("http: assertEquals("Mozilla/5.0 (compatible; heritrix/@VERSION@ +@OPERATOR_CONTACT_URL@)", profileOptions.getUserAgentTemplate()); assertEquals(0L, profileOptions.getDocumentLimit()); assertEquals(new BigInteger("0"), profileOptions.getDataLimitAsBytes()); assertEquals(new BigInteger("0"), profileOptions.getTimeLimitAsSeconds()); assertEquals(20L, profileOptions.getMaxPathDepth()); assertEquals(200L, profileOptions.getMaxHops()); assertEquals(2L, profileOptions.getMaxTransitiveHops()); assertTrue(profileOptions.isIgnoreRobotsTxt()); assertFalse(profileOptions.isIgnoreCookies()); assertEquals("ISO-8859-1", profileOptions.getDefaultEncoding()); List<String> blockUrls = profileOptions.getBlockURLsAsList(); assertEquals(43, blockUrls.size()); assertTrue(blockUrls.contains(".*/text/javascript.*")); assertTrue(blockUrls.contains(".*youtube-nocookie.*")); List<String> includeUrls = profileOptions.getIncludeURLsAsList(); assertEquals(2, includeUrls.size()); assertTrue(includeUrls.contains(".*dia.*")); assertTrue(includeUrls.contains(".*natlib.*")); assertEquals(new BigInteger("1000000000"), profileOptions.getMaxFileSizeAsBytes()); assertTrue(profileOptions.isCompress()); assertEquals("IAH", profileOptions.getPrefix()); PolitenessOptions politenessOptions = profileOptions.getPolitenessOptions(); assertEquals(10.0d, politenessOptions.getDelayFactor(), 0.0); assertEquals(9000L, politenessOptions.getMinDelayMs()); assertEquals(90000L, politenessOptions.getMaxDelayMs()); assertEquals(900L, politenessOptions.getRespectCrawlDelayUpToSeconds()); assertEquals(400L, politenessOptions.getMaxPerHostBandwidthUsageKbSec()); }
public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; }
Heritrix3Profile { public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; } }
Heritrix3Profile { public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; } Heritrix3Profile();  Heritrix3Profile(Heritrix3ProfileOptions heritrix3ProfileOptions);  Heritrix3Profile(String profileXml, boolean imported);  Heritrix3Profile(String profileXml); }
Heritrix3Profile { public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; } Heritrix3Profile();  Heritrix3Profile(Heritrix3ProfileOptions heritrix3ProfileOptions);  Heritrix3Profile(String profileXml, boolean imported);  Heritrix3Profile(String profileXml); String toProfileXml(); Heritrix3ProfileOptions getHeritrix3ProfileOptions(); void setHeritrix3ProfileOptions(Heritrix3ProfileOptions heritrix3ProfileOptions); String getProfileXml(); void setProfileXml(String profileXml); }
Heritrix3Profile { public Heritrix3ProfileOptions getHeritrix3ProfileOptions() { return heritrix3ProfileOptions; } Heritrix3Profile();  Heritrix3Profile(Heritrix3ProfileOptions heritrix3ProfileOptions);  Heritrix3Profile(String profileXml, boolean imported);  Heritrix3Profile(String profileXml); String toProfileXml(); Heritrix3ProfileOptions getHeritrix3ProfileOptions(); void setHeritrix3ProfileOptions(Heritrix3ProfileOptions heritrix3ProfileOptions); String getProfileXml(); void setProfileXml(String profileXml);  }