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