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

com.yuyenews.base.EasyInters Maven / Gradle / Ivy

The newest version!
package com.yuyenews.base;

import com.yuyenews.easy.server.request.HttpRequest;
import com.yuyenews.easy.server.request.HttpResponse;

/**
 * 拦截器基类,强制继承
 * @author yuye
 *
 */
public interface EasyInters {
	
	/**
	 * 通过
	 */
	public static final String SUCCESS = "success";
	
	/**
	 * 不通过
	 */
	public static final String ERROR = "error";

	/**
	 * 控制层执行之前
	 * @param request
	 * @param response
	 * @return
	 */
	Object startRequest(HttpRequest request,HttpResponse response);
	
	/**
	 * 控制层执行之后
	 * @param request
	 * @param response
	 * @param obj 控制层返回的数据
	 * @return
	 */
	Object endRequest(HttpRequest request,HttpResponse response,Object obj);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy