com.redfin.sitemapgenerator.UrlUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sitemapgen4j Show documentation
Show all versions of sitemapgen4j Show documentation
SitemapGen4j is an XML sitemap generator written in Java.
The newest version!
package com.redfin.sitemapgenerator;
import java.util.HashMap;
class UrlUtils {
static void checkUrl(String url, String baseUrl) {
// Is there a better test to use here?
if (!url.startsWith(baseUrl)) {
throw new RuntimeException("Url " + url + " doesn't start with base URL " + baseUrl);
}
}
static HashMap newHashMap() {
return new HashMap();
}
}