public class CaptchaValidationProcessingFilter extends Object implements org.springframework.beans.factory.InitializingBean, javax.servlet.Filter
CaptchaServiceProxy. CaptchaServiceProxy to
validate the request, and update the CaptchaSecurityContext if the request passed the validation. CaptchaChannelProcessorTemplate filter in the filter stack in order to update the CaptchaSecurityContext
before the humanity verification routine occurs. CaptchaSecurityContext| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
CaptchaValidationProcessingFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy()
Does nothing.
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
CaptchaServiceProxy |
getCaptchaService() |
String |
getCaptchaValidationParameter() |
void |
init(javax.servlet.FilterConfig filterConfig)
Does nothing.
|
void |
setCaptchaService(CaptchaServiceProxy captchaService) |
void |
setCaptchaValidationParameter(String captchaValidationParameter) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy()
destroy in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic CaptchaServiceProxy getCaptchaService()
public String getCaptchaValidationParameter()
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.FilterfilterConfig - ignoredjavax.servlet.ServletException - ignoredpublic void setCaptchaService(CaptchaServiceProxy captchaService)
public void setCaptchaValidationParameter(String captchaValidationParameter)
Copyright © 2016. All rights reserved.