@RestController public class SitemapController extends Object
| Constructor and Description |
|---|
SitemapController() |
| Modifier and Type | Method and Description |
|---|---|
String |
handleSitemapFile(String from,
String to,
javax.servlet.http.HttpServletResponse response)
Return a sitemap file.
|
String |
handleSitemapIndex(javax.servlet.http.HttpServletResponse response)
Return the sitemap index file
|
@RequestMapping(value="/europeana-sitemap-index-hashed.xml",
method={GET,POST},
produces="text/xml")
public String handleSitemapIndex(javax.servlet.http.HttpServletResponse response)
throws IOException
response - The HttpServletResponseIOException - For any file-related exceptions@RequestMapping(value="/europeana-sitemap-hashed.xml",
method={GET,POST},
produces="text/xml")
public String handleSitemapFile(@RequestParam(value="from")
String from,
@RequestParam(value="to")
String to,
javax.servlet.http.HttpServletResponse response)
throws IOException
from - start indexto - end indexresponse - The HttpServletResponseIOExceptionCopyright © 2019 Europeana Foundation. All rights reserved.