org.molgenis.omx.auth.controller
Class CaptchaController
java.lang.Object
org.molgenis.omx.auth.controller.CaptchaController
@Controller
public class CaptchaController
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CaptchaController
public CaptchaController()
getCaptcha
@RequestMapping(value="/captcha",
method=GET,
produces="image/jpeg")
@ResponseBody
public BufferedImage getCaptcha()
validateCaptcha
@RequestMapping(value="/captcha",
method=POST)
@ResponseBody
public Boolean validateCaptcha(@RequestBody
CaptchaRequest captchaRequest)
throws CaptchaService.CaptchaException
- Throws:
CaptchaService.CaptchaException
validateCaptchaFromForm
@RequestMapping(value="/captcha",
method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public Boolean validateCaptchaFromForm(@ModelAttribute
CaptchaRequest captchaRequest)
throws CaptchaService.CaptchaException
- Throws:
CaptchaService.CaptchaException
Copyright © 2013. All Rights Reserved.