@Controller public class RedirectController extends Object
| Constructor and Description |
|---|
RedirectController() |
| Modifier and Type | Method and Description |
|---|---|
String |
handleRedirect(String apiKey,
String isShownAt)
Handles redirects urls (e.g.
|
@RequestMapping(value={"/{apiKey}/redirect","/{apiKey}/redirect.json","/v2/{apiKey}/redirect","/v2/{apiKey}/redirect.json"},
method=GET)
public String handleRedirect(@PathVariable
String apiKey,
@RequestParam(value="shownAt",required=true)
String isShownAt)
apiKey - optional is not checked at the momentisShownAt - required, the url where to redirectIllegalArgumentExceptionCopyright © 2017. All rights reserved.