apzl_leasing/src_app_fresh/cn/access/dispatcher/RestfullDispatcher.java
liujiaji 6397d906b5 src_app 移除
src_app_fresh 添加
2018-06-11 13:40:56 +08:00

65 lines
1.3 KiB
Java

package cn.access.dispatcher;
import java.io.IOException;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Restfull功能转发器
*
* @author yangsong
* @date 2015年3月29日
*/
public interface RestfullDispatcher {
/**
* 初始化方法
*/
public void init(ServletContext servletContext);
/**
* 转发POST请求
* @param req
* @param rep
* @throws ServletException
* @throws IOException
*/
public void doPost(HttpServletRequest req, HttpServletResponse rep)
throws ServletException, IOException;
/**
* 转发DELETE请求
* @param req
* @param rep
* @throws ServletException
* @throws IOException
*/
public void doDelete(HttpServletRequest req, HttpServletResponse rep)
throws ServletException, IOException;
/**
* 转发PUT请求
* @param req
* @param rep
* @throws ServletException
* @throws IOException
*/
public void doPut(HttpServletRequest req, HttpServletResponse rep)
throws ServletException, IOException;
/**
* 转发GET请求
* @param req
* @param rep
* @throws ServletException
* @throws IOException
*/
public void doGet(HttpServletRequest req, HttpServletResponse rep)
throws ServletException, IOException;
}