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

top.wboost.common.boost.handler.BoostHandlerAdapter Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
package top.wboost.common.boost.handler;

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

import org.springframework.web.servlet.HandlerAdapter;
import org.springframework.web.servlet.ModelAndView;

public class BoostHandlerAdapter implements HandlerAdapter {

    @Override
    public boolean supports(Object handler) {
        return handler instanceof BoostHandler;
    }

    @Override
    public ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler)
            throws Exception {
        BoostHandler boostHandler = (BoostHandler) handler;
        return boostHandler.handle(request, response);
    }

    @Override
    public long getLastModified(HttpServletRequest request, Object handler) {
        return 0;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy