@Controller public class RedirectController extends Object
| Constructor and Description |
|---|
RedirectController(eu.europeana.corelib.search.SearchService searchService) |
| Modifier and Type | Method and Description |
|---|---|
Object |
handleRedirect(String apiKey,
String isShownAt,
javax.servlet.http.HttpServletResponse response)
Handles redirects urls (e.g.
|
@Autowired public RedirectController(eu.europeana.corelib.search.SearchService searchService)
@RequestMapping(value={"/{apiKey}/redirect","/{apiKey}/redirect.json","/v2/{apiKey}/redirect","/v2/{apiKey}/redirect.json"},
method={GET,POST})
public Object handleRedirect(@PathVariable
String apiKey,
@RequestParam(value="shownAt")
String isShownAt,
javax.servlet.http.HttpServletResponse response)
apiKey - optional is not checked at the momentisShownAt - required, the url where to redirectresponse - IllegalArgumentExceptionCopyright © 2019 Europeana Foundation. All rights reserved.