
org.nutz.plugins.view.captcha.CaptchaViewMaker Maven / Gradle / Ivy
package org.nutz.plugins.view.captcha;
import org.nutz.ioc.Ioc;
import org.nutz.mvc.View;
import org.nutz.mvc.ViewMaker;
/**
* @author idor([email protected])
*/
public class CaptchaViewMaker implements ViewMaker {
@Override
public View make(Ioc ioc, String type, String value) {
if ("captche".equalsIgnoreCase(type)) {
return new CaptchaView("image/jpeg", 4);
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy