Package tech.riemann.etp.web.captcha
Class CaptchaView
java.lang.Object
tech.riemann.etp.web.captcha.CaptchaView
- All Implemented Interfaces:
org.springframework.web.servlet.View
- Author:
- Kerbores(kerbores@riemann.tech)
-
Field Summary
FieldsFields inherited from interface org.springframework.web.servlet.View
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCaptchaView(int length) CaptchaView(CaptchaGener captchaGener) CaptchaView(CaptchaGener captchaGener, int length) CaptchaView(CodeCache cache) CaptchaView(ImageVerification imageVerification) -
Method Summary
-
Field Details
-
CAPTCHA_SESSION_KEY
- See Also:
-
-
Constructor Details
-
CaptchaView
-
CaptchaView
-
CaptchaView
-
CaptchaView
public CaptchaView(int length) -
CaptchaView
-
-
Method Details
-
setCache
- Parameters:
cache- the cache to set
-
getContentType
- Specified by:
getContentTypein interfaceorg.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:
renderin interfaceorg.springframework.web.servlet.View- Throws:
Exception
-