Class CaptchaView

java.lang.Object
club.zhcs.lina.web.captcha.CaptchaView
All Implemented Interfaces:
org.springframework.web.servlet.View

public class CaptchaView extends Object implements org.springframework.web.servlet.View
Author:
Kerbores(kerbores@riemann.tech)
  • Field Details

  • Constructor Details

    • CaptchaView

      public CaptchaView(CodeCache cache)
    • CaptchaView

      public CaptchaView(CaptchaGener captchaGener, int length)
    • CaptchaView

      public CaptchaView(CaptchaGener captchaGener)
    • CaptchaView

      public CaptchaView(int length)
    • CaptchaView

      public CaptchaView(ImageVerification imageVerification)
  • Method Details

    • setCache

      public void setCache(CodeCache cache)
      Parameters:
      cache - the cache to set
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface org.springframework.web.servlet.View
    • render

      public void render(@Nullable Map<String,?> model, @NonNull jakarta.servlet.http.HttpServletRequest request, @NonNull jakarta.servlet.http.HttpServletResponse response) throws Exception
      Specified by:
      render in interface org.springframework.web.servlet.View
      Throws:
      Exception