SpringMVC源码总结(十一)mvc:interceptors拦截器介绍

  • 时间:
  • 浏览:0
  • 来源:大发3D_大发3D官方

        }

                    }

            catch (Exception ex) {

        }

                        return;

        WebAsyncManager asyncManager = WebAsyncUtils.getAsyncManager(request);

            triggerAfterCompletionWithError(processedRequest, response, mappedHandler, err);

                    if (logger.isDebugEnabled()) {

                dispatchException = ex;

        HandlerExecutionChain mappedHandler = null;

                    return;

                    if (new ServletWebRequest(request, response).checkNotModified(lastModified) && isGet) {

                String method = request.getMethod();

                    }

                }

                if (!mappedHandler.applyPreHandle(processedRequest, response)) {

                multipartRequestParsed = (processedRequest != request);

        HttpServletRequest processedRequest = request;

        }

                }

                try {

protected void doDispatch(HttpServletRequest request, HttpServletResponse response) throws Exception {

        }

                    noHandlerFound(processedRequest, response);

                if (isGet || "HEAD".equals(method)) {

            }

            processDispatchResult(processedRequest, response, mappedHandler, mv, dispatchException);

        finally {

        boolean multipartRequestParsed = false;

                return;

            try {

                mappedHandler.applyPostHandle(processedRequest, response, mv);

                    return;

                applyDefaultViewName(request, mv);

                    long lastModified = ha.getLastModified(request, mappedHandler.getHandler());

                    mv = ha.handle(processedRequest, response, mappedHandler.getHandler());

                }

            Exception dispatchException = null;

                processedRequest = checkMultipart(request);

            }

            ModelAndView mv = null;

                cleanupMultipart(processedRequest);

            triggerAfterCompletion(processedRequest, response, mappedHandler, ex);

                    }

        catch (Exception ex) {

                        logger.debug("Last-Modified value for [" + getRequestUri(request) + "] is: " + lastModified);

            if (multipartRequestParsed) {

                }

                        return;

                HandlerAdapter ha = getHandlerAdapter(mappedHandler.getHandler());

                    if (asyncManager.isConcurrentHandlingStarted()) {

    }

                if (mappedHandler == null || mappedHandler.getHandler() == null) {

        try {

            }

                finally {

                boolean isGet = "GET".equals(method);

                mappedHandler = getHandler(processedRequest);

            if (asyncManager.isConcurrentHandlingStarted()) {

                mappedHandler.applyAfterConcurrentHandlingStarted(processedRequest, response);

            }

        catch (Error err) {

                }