com.github.datalking.web.servlet.HandlerAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of play-mvc Show documentation
Show all versions of play-mvc Show documentation
simple mvc framework based on java servlet.
The newest version!
package com.github.datalking.web.servlet;
import com.github.datalking.web.mvc.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* url处理方法适配器
* 适配到handler对象的具体某个处理方法上,一般是@Controller类中的方法,并返回ModelAndView
*
* @author yaoo on 4/25/18
*/
public interface HandlerAdapter {
// 判断此HandlerAdapter是否支持输入的handler
boolean supports(Object handler);
// 使用handler处理request
ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception;
// 与HttpServlet的getLastModified()相同
long getLastModified(HttpServletRequest request, Object handler);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy