cn.tom.mvc.core.ControllerModel Maven / Gradle / Ivy
package cn.tom.mvc.core;
import java.lang.reflect.Method;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public abstract class ControllerModel implements App {
private boolean paserField;
public ControllerModel() {
}
/*控制器前后的方法*/
public boolean before(RequestContext context, Map map) {
return true;
}
public String exec(RequestContext context, Map map){
return null;
}
public String exec(HttpServletRequest req, Map map) {
return null;
}
public String exec(HttpServletResponse res, Map map){
return null;
}
@Override
public Object extAnnnotation(Object obj, Method me, Map map) {
return obj;
}
public boolean isPaserField() {
return paserField;
}
public void setPaserField(boolean paserField) {
this.paserField = paserField;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy