org.molgenis.omx.auth.controller
Class CaptchaController

java.lang.Object
  extended by org.molgenis.omx.auth.controller.CaptchaController

@Controller
public class CaptchaController
extends Object


Constructor Summary
CaptchaController()
           
 
Method Summary
 BufferedImage getCaptcha()
           
 Boolean validateCaptcha(CaptchaRequest captchaRequest)
           
 Boolean validateCaptchaFromForm(CaptchaRequest captchaRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptchaController

public CaptchaController()
Method Detail

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.