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

com.anysoft.webloader.ServletHandler Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.anysoft.webloader;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet处理器
 * @author duanyy
 *
 */
public interface ServletHandler {
	
	/**
	 * 初始化
	 * @param servletConfig servlet配置
	 * @throws ServletException
	 */
	public void init(ServletConfig servletConfig) throws ServletException;
	
	/**
	 * 服务
	 * @param request Http请求
	 * @param response Http响应
	 * @param method 请求方式
	 * @throws ServletException 
	 * @throws IOException
	 */
	public void doService(HttpServletRequest request, HttpServletResponse response,String method)
			throws ServletException, IOException;
	
	/**
	 * 销毁
	 */
	public void destroy();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy