@Controller public class SitemapController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVE_SITEMAP_FILE |
| Constructor and Description |
|---|
SitemapController() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleSitemap(String from,
String to,
javax.servlet.http.HttpServletResponse response)
Generate the individual sitemaps, containing the actual record IDs.
|
void |
handleSitemapIndexHashed(javax.servlet.http.HttpServletResponse response)
Generate the sitemap index file.
|
public static String ACTIVE_SITEMAP_FILE
@RequestMapping(value="/europeana-sitemap-index-hashed.xml")
public void handleSitemapIndexHashed(javax.servlet.http.HttpServletResponse response)
throws IOException
response - The HttpServletResponseIOException - For any file-related exceptions@RequestMapping(value="/europeana-sitemap-hashed.xml")
public void handleSitemap(@RequestParam(value="from",required=true)
String from,
@RequestParam(value="to",required=true)
String to,
javax.servlet.http.HttpServletResponse response)
throws Exception
from - start indexto - end indexwresponse - The HttpServletResponseIOExceptionExceptionCopyright © 2017. All rights reserved.