- 授权协议: 未知
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://code.google.com/p/sitemapgen4j/
软件介绍
SitemapGen4j是一个用于生成XML sitemaps文件的Java类库。支持gzipped输出,sitemap校验,sitemap索引生成等功能。
示例代码:
WebSitemapGenerator wsg = new WebSitemapGenerator("http://www.example.com", myDir);
WebSitemapUrl url = new WebSitemapUrl.Options("http://www.example.com/index.html")
.lastMod(new Date()).priority(1.0).changeFreq(ChangeFreq.HOURLY).build();
// this will configure the URL with lastmod=now, priority=1.0, changefreq=hourly
wsg.addUrl(url);
wsg.write();
