@ApplicationScoped @Controller(value="captcha") @Authorize(removed=true) public class DefaultCaptchaController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ActionParser |
actionParser |
protected CaptchaManager |
captchaManager |
protected CaptchaProducer |
captchaProducer |
| Constructor and Description |
|---|
DefaultCaptchaController() |
| Modifier and Type | Method and Description |
|---|---|
ActionResult |
index(String captchaId,
javax.servlet.http.HttpServletRequest request,
ActionContext actionContext) |
Result<String> |
nextWords(String captchaId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ActionContext actionContext) |
@Inject protected CaptchaManager captchaManager
@Inject protected CaptchaProducer captchaProducer
@Inject protected ActionParser actionParser
@HttpGet @PathParams(value="/{captchaId}") @CacheControl(nocache=true) public ActionResult index(@RequestParam(value="captchaId") String captchaId, javax.servlet.http.HttpServletRequest request, ActionContext actionContext) throws Exception
Exception@HttpGet @HttpPost @PathParams(value="/{captchaId}") public Result<String> nextWords(@RequestParam(value="captchaId") String captchaId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionContext actionContext) throws Exception
ExceptionCopyright © 2018. All rights reserved.