亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dispatcherportlet.java

?? spring framework 2.5.4源代碼
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/*
 * Copyright 2002-2008 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.web.portlet;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Properties;

import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletException;
import javax.portlet.PortletRequest;
import javax.portlet.PortletResponse;
import javax.portlet.PortletSession;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.UnavailableException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.beans.factory.BeanInitializationException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.i18n.LocaleContext;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.context.i18n.SimpleLocaleContext;
import org.springframework.core.JdkVersion;
import org.springframework.core.OrderComparator;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.support.PropertiesLoaderUtils;
import org.springframework.util.ClassUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.multipart.MultipartException;
import org.springframework.web.portlet.context.PortletRequestAttributes;
import org.springframework.web.portlet.multipart.MultipartActionRequest;
import org.springframework.web.portlet.multipart.PortletMultipartResolver;
import org.springframework.web.servlet.View;
import org.springframework.web.servlet.ViewRendererServlet;
import org.springframework.web.servlet.ViewResolver;

/**
 * Central dispatcher for use within the Portlet MVC framework, e.g. for web UI
 * controllers. Dispatches to registered handlers for processing a portlet request.
 *
 * <p>This portlet is very flexible: It can be used with just about any workflow,
 * with the installation of the appropriate adapter classes. It offers the
 * following functionality that distinguishes it from other request-driven
 * portlet MVC frameworks:
 *
 * <ul>
 * <li>It is based around a JavaBeans configuration mechanism.
 *
 * <li>It can use any {@link HandlerMapping} implementation - pre-built or provided
 * as part of an application - to control the routing of requests to handler objects.
 * Default is a {@link org.springframework.web.portlet.mvc.annotation.DefaultAnnotationHandlerMapping}
 * on Java 5+; there is no default on Java 1.4. HandlerMapping objects can be defined as
 * beans in the portlet's application context, implementing the HandlerMapping interface,
 * overriding the default HandlerMapping if present. HandlerMappings can be given any
 * bean name (they are tested by type).
 *
 * <li>It can use any {@link HandlerAdapter}; this allows for using any handler interface.
 * The default adapter is {@link org.springframework.web.portlet.mvc.SimpleControllerHandlerAdapter}
 * for Spring's {@link org.springframework.web.portlet.mvc.Controller} interface.
 * When running in a Java 5+ environment, a default
 * {@link org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter}
 * will be registered as well. HandlerAdapter objects can be added as beans in the
 * application context, overriding the default HandlerAdapter. Like HandlerMappings,
 * HandlerAdapters can be given any bean name (they are tested by type).
 *
 * <li>The dispatcher's exception resolution strategy can be specified via a
 * {@link HandlerExceptionResolver}, for example mapping certain exceptions to
 * error pages. Default is none. Additional HandlerExceptionResolvers can be added
 * through the application context. HandlerExceptionResolver can be given any
 * bean name (they are tested by type).
 *
 * <li>Its view resolution strategy can be specified via a {@link ViewResolver}
 * implementation, resolving symbolic view names into View objects. Default is
 * {@link org.springframework.web.servlet.view.InternalResourceViewResolver}.
 * ViewResolver objects can be added as beans in the application context,
 * overriding the default ViewResolver. ViewResolvers can be given any bean name
 * (they are tested by type).
 *
 * <li>The dispatcher's strategy for resolving multipart requests is determined by a
 * {@link org.springframework.web.portlet.multipart.PortletMultipartResolver} implementation.
 * An implementations for Jakarta Commons FileUpload is included:
 * {@link org.springframework.web.portlet.multipart.CommonsPortletMultipartResolver}.
 * The MultipartResolver bean name is "portletMultipartResolver"; default is none.
 * </ul>
 *
 * <p><b>NOTE: The <code>@RequestMapping</code> annotation will only be processed
 * if a corresponding <code>HandlerMapping</code> (for type level annotations)
 * and/or <code>HandlerAdapter</code> (for method level annotations)
 * is present in the dispatcher.</b> This is the case by default.
 * However, if you are defining custom <code>HandlerMappings</code> or
 * <code>HandlerAdapters</code>, then you need to make sure that a
 * corresponding custom <code>DefaultAnnotationHandlerMapping</code>
 * and/or <code>AnnotationMethodHandlerAdapter</code> is defined as well
 * - provided that you intend to use <code>@RequestMapping</code>.
 *
 * <p><b>A web application can define any number of DispatcherPortlets.</b>
 * Each portlet will operate in its own namespace, loading its own application
 * context with mappings, handlers, etc. Only the root application context
 * as loaded by {@link org.springframework.web.context.ContextLoaderListener},
 * if any, will be shared.
 *
 * <p>Thanks to Rainer Schmitz and Nick Lothian for their suggestions!
 *
 * @author William G. Thompson, Jr.
 * @author John A. Lewis
 * @author Juergen Hoeller
 * @since 2.0
 * @see org.springframework.web.portlet.mvc.Controller
 * @see org.springframework.web.servlet.ViewRendererServlet
 * @see org.springframework.web.context.ContextLoaderListener
 */
public class DispatcherPortlet extends FrameworkPortlet {

	/**
	 * Well-known name for the PortletMultipartResolver object in the bean factory for this namespace.
	 */
	public static final String MULTIPART_RESOLVER_BEAN_NAME = "portletMultipartResolver";

	/**
	 * Well-known name for the HandlerMapping object in the bean factory for this namespace.
	 * Only used when "detectAllHandlerMappings" is turned off.
	 * @see #setDetectAllViewResolvers
	 */
	public static final String HANDLER_MAPPING_BEAN_NAME = "handlerMapping";

	/**
	 * Well-known name for the HandlerAdapter object in the bean factory for this namespace.
	 * Only used when "detectAllHandlerAdapters" is turned off.
	 * @see #setDetectAllHandlerAdapters
	 */
	public static final String HANDLER_ADAPTER_BEAN_NAME = "handlerAdapter";

	/**
	 * Well-known name for the HandlerExceptionResolver object in the bean factory for this
	 * namespace. Only used when "detectAllHandlerExceptionResolvers" is turned off.
	 * @see #setDetectAllViewResolvers
	 */
	public static final String HANDLER_EXCEPTION_RESOLVER_BEAN_NAME = "handlerExceptionResolver";

	/**
	 * Well-known name for the ViewResolver object in the bean factory for this namespace.
	 */
	public static final String VIEW_RESOLVER_BEAN_NAME = "viewResolver";

	/**
	 * Default URL to ViewRendererServlet. This bridge servlet is used to convert
	 * portlet render requests to servlet requests in order to leverage the view support
	 * in the <code>org.springframework.web.view</code> package.
	 */
	public static final String DEFAULT_VIEW_RENDERER_URL = "/WEB-INF/servlet/view";

	/**
	 * Request attribute to hold the currently chosen HandlerExecutionChain.
	 * Only used for internal optimizations.
	 */
	public static final String HANDLER_EXECUTION_CHAIN_ATTRIBUTE =
			DispatcherPortlet.class.getName() + ".HANDLER";

	/**
	 * Unlike the Servlet version of this class, we have to deal with the
	 * two-phase nature of the portlet request. To do this, we need to pass
	 * forward any exception that occurs during the action phase, so that
	 * it can be displayed in the render phase. The only direct way to pass
	 * things forward and preserve them for each render request is through
	 * render parameters, but these are limited to String objects and we need
	 * to pass the Exception itself. The only other way to do this is in the
	 * session. The bad thing about using the session is that we have no way
	 * of knowing when we are done re-rendering the request and so we don't
	 * know when we can remove the objects from the session. So we will end
	 * up polluting the session with an old exception when we finally leave
	 * the render phase of one request and move on to something else.
	 */
	public static final String ACTION_EXCEPTION_SESSION_ATTRIBUTE =
			DispatcherPortlet.class.getName() + ".ACTION_EXCEPTION";

	/**
	 * This render parameter is used to indicate forward to the render phase
	 * that an exception occurred during the action phase.
	 */
	public static final String ACTION_EXCEPTION_RENDER_PARAMETER = "actionException";

	/**
	 * Log category to use when no mapped handler is found for a request.
	 */
	public static final String PAGE_NOT_FOUND_LOG_CATEGORY = "org.springframework.web.portlet.PageNotFound";

	/**
	 * Name of the class path resource (relative to the DispatcherPortlet class)
	 * that defines DispatcherPortet's default strategy names.
	 */
	private static final String DEFAULT_STRATEGIES_PATH = "DispatcherPortlet.properties";


	/**
	 * Additional logger to use when no mapped handler is found for a request.
	 */
	protected static final Log pageNotFoundLogger = LogFactory.getLog(PAGE_NOT_FOUND_LOG_CATEGORY);

	private static final Properties defaultStrategies;

	static {
		// Load default strategy implementations from properties file.
		// This is currently strictly internal and not meant to be customized
		// by application developers.
		try {
			ClassPathResource resource = new ClassPathResource(DEFAULT_STRATEGIES_PATH, DispatcherPortlet.class);
			defaultStrategies = PropertiesLoaderUtils.loadProperties(resource);
		}
		catch (IOException ex) {
			throw new IllegalStateException("Could not load 'DispatcherPortlet.properties': " + ex.getMessage());
		}
	}


	/** Detect all HandlerMappings or just expect "handlerMapping" bean? */
	private boolean detectAllHandlerMappings = true;

	/** Detect all HandlerAdapters or just expect "handlerAdapter" bean? */
	private boolean detectAllHandlerAdapters = true;

	/** Detect all HandlerExceptionResolvers or just expect "handlerExceptionResolver" bean? */
	private boolean detectAllHandlerExceptionResolvers = true;

	/** Detect all ViewResolvers or just expect "viewResolver" bean? */
	private boolean detectAllViewResolvers = true;

	/** URL that points to the ViewRendererServlet */
	private String viewRendererUrl = DEFAULT_VIEW_RENDERER_URL;

	/** Expose LocaleContext and RequestAttributes as inheritable for child threads? */
	private boolean threadContextInheritable = false;


	/** MultipartResolver used by this portlet */
	private PortletMultipartResolver multipartResolver;

	/** List of HandlerMappings used by this portlet */
	private List handlerMappings;

	/** List of HandlerAdapters used by this portlet */
	private List handlerAdapters;

	/** List of HandlerExceptionResolvers used by this portlet */
	private List handlerExceptionResolvers;

	/** List of ViewResolvers used by this portlet */
	private List viewResolvers;


	/**
	 * Set whether to detect all HandlerMapping beans in this portlet's context.
	 * Else, just a single bean with name "handlerMapping" will be expected.
	 * <p>Default is true. Turn this off if you want this portlet to use a
	 * single HandlerMapping, despite multiple HandlerMapping beans being
	 * defined in the context.
	 */
	public void setDetectAllHandlerMappings(boolean detectAllHandlerMappings) {
		this.detectAllHandlerMappings = detectAllHandlerMappings;
	}

	/**
	 * Set whether to detect all HandlerAdapter beans in this portlet's context.
	 * Else, just a single bean with name "handlerAdapter" will be expected.
	 * <p>Default is "true". Turn this off if you want this portlet to use a
	 * single HandlerAdapter, despite multiple HandlerAdapter beans being
	 * defined in the context.
	 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美久久久一区| 亚洲韩国一区二区三区| 亚洲欧美激情一区二区| 男女男精品网站| 91猫先生在线| 久久免费的精品国产v∧| 午夜精品久久久久久久蜜桃app| 大尺度一区二区| 精品国产一区二区三区久久久蜜月 | 中文字幕在线不卡一区| 天天色图综合网| 色8久久人人97超碰香蕉987| 国产亚洲欧美日韩俺去了| 水野朝阳av一区二区三区| 91激情五月电影| 最新国产の精品合集bt伙计| 国产风韵犹存在线视精品| 精品国产不卡一区二区三区| 婷婷六月综合网| 欧美绝品在线观看成人午夜影视| 国产精品久久久久久久久快鸭| 韩日av一区二区| 日韩精品在线一区二区| 日韩国产欧美一区二区三区| 欧美日韩的一区二区| 亚洲高清免费一级二级三级| 欧美视频一区二区| 婷婷亚洲久悠悠色悠在线播放| 欧美亚洲图片小说| 亚洲第一会所有码转帖| 欧美日韩在线播放一区| 亚洲国产精品久久久久婷婷884 | 亚洲天堂福利av| av一区二区久久| 国产精品女上位| 91免费版pro下载短视频| 日韩一区有码在线| 色综合色狠狠综合色| 伊人夜夜躁av伊人久久| 一本久道久久综合中文字幕| 亚洲综合激情另类小说区| 精品视频在线看| 奇米亚洲午夜久久精品| 欧美不卡123| 粗大黑人巨茎大战欧美成人| 亚洲欧美视频在线观看| 欧美三级电影在线观看| 日韩电影免费在线看| 欧美丰满一区二区免费视频| 奇米在线7777在线精品| 国产亚洲精品bt天堂精选| 91视频在线观看免费| 亚洲第一主播视频| 日韩天堂在线观看| 国产风韵犹存在线视精品| 亚洲精品免费看| 日韩欧美国产一二三区| 成人在线综合网| 亚洲国产中文字幕在线视频综合| 欧美一区二区三区在| 懂色一区二区三区免费观看| 亚洲国产欧美在线| 久久久精品免费免费| 91在线你懂得| 日本少妇一区二区| 国产精品国产三级国产aⅴ入口 | 成人免费观看视频| 亚洲超碰精品一区二区| 亚洲精品一线二线三线| 在线免费观看一区| 国模冰冰炮一区二区| 亚洲综合久久av| 国产天堂亚洲国产碰碰| 欧美日本韩国一区| 大胆欧美人体老妇| 蓝色福利精品导航| 亚洲综合自拍偷拍| 久久伊人中文字幕| 欧美日韩一级片在线观看| 国产高清精品在线| 美女网站一区二区| 一区二区三区在线视频播放| 久久综合色一综合色88| 欧美精品日韩一区| 欧美亚一区二区| 91丝袜美腿高跟国产极品老师 | 男男视频亚洲欧美| 亚洲日本中文字幕区| 精品欧美乱码久久久久久| 91国在线观看| 91亚洲精品久久久蜜桃网站 | 蜜桃视频第一区免费观看| 日韩一区日韩二区| 国产日韩欧美麻豆| 日韩精品综合一本久道在线视频| 91蜜桃免费观看视频| 国产精品911| 精品在线一区二区| 日本视频一区二区| 日韩中文字幕区一区有砖一区| 日韩理论片一区二区| 国产亚洲一本大道中文在线| 日韩视频免费观看高清完整版在线观看| 99re这里都是精品| 成人avav影音| 成人手机在线视频| 99久久精品国产精品久久| 国产精品一级在线| 福利一区福利二区| 99久久婷婷国产综合精品电影 | 欧美日韩精品欧美日韩精品| 色综合久久中文字幕综合网 | 日韩视频一区二区在线观看| 欧美性猛交xxxx黑人交| 欧美亚洲另类激情小说| 欧美日韩一区高清| 欧美日韩高清在线播放| 欧美色图天堂网| 欧美日韩成人综合| 日韩视频免费观看高清在线视频| 91精品国产综合久久香蕉的特点 | 在线观看三级视频欧美| 欧美图片一区二区三区| 欧美日韩精品欧美日韩精品一| 欧美日韩二区三区| 精品国产麻豆免费人成网站| 久久女同互慰一区二区三区| 久久久不卡影院| 中文字幕一区二区在线观看| 成人欧美一区二区三区1314| 一区二区三区中文字幕| 亚洲一本大道在线| 久久se这里有精品| 99r国产精品| 欧美人牲a欧美精品| 久久午夜免费电影| 中文字幕一区三区| 五月天久久比比资源色| 激情亚洲综合在线| 成人av电影在线网| 欧洲亚洲精品在线| 精品国产麻豆免费人成网站| 国产精品美女久久久久久久久久久| 依依成人综合视频| 久久99久久精品| av电影天堂一区二区在线| 欧美区一区二区三区| 久久久久久久久久久久电影| 亚洲视频免费看| 久久电影网电视剧免费观看| 成人sese在线| 91精品久久久久久久99蜜桃| 久久久激情视频| 亚洲影视在线播放| 国产精品一卡二卡| 欧美日韩黄色一区二区| 国产亚洲欧美一级| 日韩精品电影在线| 97se亚洲国产综合自在线不卡| 欧美久久久影院| 亚洲欧美日韩国产综合| 韩国成人在线视频| 欧美视频中文字幕| 中文字幕第一区二区| 久久国产福利国产秒拍| 在线免费视频一区二区| 欧美激情艳妇裸体舞| 美国精品在线观看| 欧美性欧美巨大黑白大战| 久久精品亚洲精品国产欧美kt∨| 午夜精品一区二区三区电影天堂| 成人免费看的视频| 久久一夜天堂av一区二区三区| 亚洲超碰97人人做人人爱| 不卡av电影在线播放| 日韩免费电影网站| 午夜日韩在线电影| 91黄色在线观看| 亚洲日本成人在线观看| 国产成人综合精品三级| 日韩你懂的在线播放| 视频一区二区三区入口| 欧美在线|欧美| 亚洲黄色免费网站| 91视频.com| 国产精品久久久久婷婷| 国产成a人无v码亚洲福利| 精品国产在天天线2019| 久久疯狂做爰流白浆xx| 日韩美女视频一区二区在线观看| 午夜欧美一区二区三区在线播放| 日本精品裸体写真集在线观看| 国产精品国产三级国产aⅴ入口| 国产成人99久久亚洲综合精品| 久久蜜桃av一区二区天堂| 国产自产视频一区二区三区| 精品999在线播放| 韩国欧美一区二区| 久久亚洲综合色一区二区三区| 韩国av一区二区三区|