Package org.dspace.app.rest
Class SitemapRestController
- java.lang.Object
-
- org.dspace.app.rest.SitemapRestController
-
@Controller @RequestMapping("/${sitemap.path:sitemaps}") public class SitemapRestController extends ObjectThis is a specialized controller to provide access to the sitemap files, generated byGenerateSitemapsThe mapping for requested endpoint try to resolve a valid sitemap file name, for examplehttps://<dspace.server.url>/sitemaps/26453b4d-e513-44e8-8d5b-395f62972eff/sitemap0.html- Author:
- Maria Verdonck (Atmire) on 08/07/2020
-
-
Constructor Summary
Constructors Constructor Description SitemapRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntityretrieve(String name, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)Tries to retrieve a matching sitemap file in configured location
-
-
-
Method Detail
-
retrieve
@GetMapping("/{name}") public org.springframework.http.ResponseEntity retrieve(@PathVariable String name, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws IOException, SQLExceptionTries to retrieve a matching sitemap file in configured location- Parameters:
name- the name of the requested sitemap fileresponse- the HTTP responserequest- the HTTP request- Returns:
- Throws:
SQLException- if db error while completing DSpace contextIOException- if IO error surrounding sitemap file
-
-