@Controller @RequestMapping(value="/captcha") public class CaptchaController extends Object
| Constructor and Description |
|---|
CaptchaController() |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
getCaptcha() |
Boolean |
validateCaptcha(CaptchaRequest captchaRequest) |
Boolean |
validateCaptchaFromForm(CaptchaRequest captchaRequest) |
@RequestMapping(method=GET,
produces="image/jpeg")
@ResponseBody
public BufferedImage getCaptcha()
@RequestMapping(method=POST) @ResponseBody public Boolean validateCaptcha(@RequestBody CaptchaRequest captchaRequest) throws CaptchaException
CaptchaException@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public Boolean validateCaptchaFromForm(@ModelAttribute
CaptchaRequest captchaRequest)
throws CaptchaException
CaptchaExceptionCopyright © 2017. All rights reserved.