Constructor and Description |
---|
CaptchaView() |
Modifier and Type | Method and Description |
---|---|
String |
generateRandomChars(int randomCharsLength,
String source) |
String |
getContentType() |
static void |
main(String[] args) |
void |
render(Map<String,Object> model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
renderImage(OutputStream os,
int w,
int h,
int randomCharsLength,
String source) |
public String getContentType()
getContentType
in interface View
public void render(Map<String,Object> model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ViewException
render
in interface View
ViewException
public void renderImage(OutputStream os, int w, int h, int randomCharsLength, String source) throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
Copyright © 2016 huihoo. All rights reserved.