Class CaptchaValidationInterceptor

java.lang.Object
de.hybris.platform.commercewebservicescommons.interceptor.CaptchaValidationInterceptor
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public class CaptchaValidationInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
To intercept these requests with annotation @CaptchaAware and do the captcha check validation if captchaCheckEnabled is true for the currentSite If captcha token is need to be checked and check failed then exception will be thrown out
  • Constructor Details

  • Method Details

    • preHandle

      public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
      To intercept these requests with annotation @CaptchaAware and do the captcha check validation if captchaCheckEnabled is true for the currentSite If captcha token is need to be checked and checked failed then exception will be thrown out
      Specified by:
      preHandle in interface org.springframework.web.servlet.HandlerInterceptor
      Parameters:
      request - current HTTP request
      response - current HTTP response
      handler - chosen handler to execute, for type and/or instance evaluation
      Returns:
      true if the execution chain should proceed with the next interceptor or the handler itself. Else, DispatcherServlet assumes that this interceptor has already dealt with the response itself.
      Throws:
      IllegalArgumentException
      NotFoundException
      CaptchaTokenMissingException
      CaptchaValidationException
    • getCaptchaAwareAnnotation

      protected CaptchaAware getCaptchaAwareAnnotation(Object handler)
    • getCaptchaValidationService

      protected CaptchaValidationService getCaptchaValidationService()
    • getBaseSiteService

      protected BaseSiteService getBaseSiteService()
    • getBaseStoreService

      protected BaseStoreService getBaseStoreService()