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

com.hframework.interceptor.CommonInterceptor Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.hframework.interceptor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;

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

/**
 * Created by zqh on 2016/4/11.
 */
public class CommonInterceptor implements HandlerInterceptor {

    private static final Logger logger = LoggerFactory.getLogger(CommonInterceptor.class);


    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler1) throws Exception {

        return true;
    }

    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {

    }

    public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy