|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.octo.captcha.module.web.image.ImageToJpegHelper
public class ImageToJpegHelper
Helper class
| Constructor Summary | |
|---|---|
ImageToJpegHelper()
|
|
| Method Summary | |
|---|---|
static void |
flushNewCaptchaToResponse(javax.servlet.http.HttpServletRequest theRequest,
javax.servlet.http.HttpServletResponse theResponse,
org.slf4j.Logger log,
ImageCaptchaService service,
java.lang.String id,
java.util.Locale locale)
retrieve a new ImageCaptcha using ImageCaptchaService and flush it to the response. Captcha are localized using request locale. This method returns a 404 to the client instead of the image if the request isn't correct (missing parameters, etc...).. The log may be null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageToJpegHelper()
| Method Detail |
|---|
public static void flushNewCaptchaToResponse(javax.servlet.http.HttpServletRequest theRequest,
javax.servlet.http.HttpServletResponse theResponse,
org.slf4j.Logger log,
ImageCaptchaService service,
java.lang.String id,
java.util.Locale locale)
throws java.io.IOException
theRequest - the requesttheResponse - the responselog - a commons loggerservice - an ImageCaptchaService instance
java.io.IOException - if a problem occurs during the jpeg generation process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||