All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.tom.mvc.core.ControllerModel Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
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