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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? urlbasedviewresolver.java

?? spring framework 2.5.4源代碼
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/*
 * Copyright 2002-2007 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.servlet.view;

import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;

import org.springframework.beans.BeanUtils;
import org.springframework.core.Ordered;
import org.springframework.util.PatternMatchUtils;
import org.springframework.web.servlet.View;

/**
 * Simple implementation of the {@link org.springframework.web.servlet.ViewResolver}
 * interface, allowing for direct resolution of symbolic view names to URLs,
 * without explicit mapping definition. This is useful if your symbolic names
 * match the names of your view resources in a straightforward manner
 * (i.e. the symbolic name is the unique part of the resource's filename),
 * without the need for a dedicated mapping to be defined for each view.
 *
 * <p>Supports {@link AbstractUrlBasedView} subclasses like {@link InternalResourceView},
 * {@link org.springframework.web.servlet.view.velocity.VelocityView} and
 * {@link org.springframework.web.servlet.view.freemarker.FreeMarkerView}.
 * The view class for all views generated by this resolver can be specified
 * via the "viewClass" property.
 *
 * <p>View names can either be resource URLs themselves, or get augmented by a
 * specified prefix and/or suffix. Exporting an attribute that holds the
 * RequestContext to all views is explicitly supported.
 *
 * <p>Example: prefix="/WEB-INF/jsp/", suffix=".jsp", viewname="test" ->
 * "/WEB-INF/jsp/test.jsp"
 *
 * <p>As a special feature, redirect URLs can be specified via the "redirect:"
 * prefix. E.g.: "redirect:myAction.do" will trigger a redirect to the given
 * URL, rather than resolution as standard view name. This is typically used
 * for redirecting to a controller URL after finishing a form workflow.
 *
 * <p>Furthermore, forward URLs can be specified via the "forward:" prefix. E.g.:
 * "forward:myAction.do" will trigger a forward to the given URL, rather than
 * resolution as standard view name. This is typically used for controller URLs;
 * it is not supposed to be used for JSP URLs - use logical view names there.
 *
 * <p>Note: This class does not support localized resolution, i.e. resolving
 * a symbolic view name to different resources depending on the current locale.
 *
 * <p>Note: When chaining ViewResolvers, a UrlBasedViewResolver always needs
 * to be last, as it will attempt to resolve any view name, no matter whether
 * the underlying resource actually exists.
 *
 * @author Juergen Hoeller
 * @author Rob Harrop
 * @since 13.12.2003
 * @see #setViewClass
 * @see #setPrefix
 * @see #setSuffix
 * @see #setRequestContextAttribute
 * @see #REDIRECT_URL_PREFIX
 * @see AbstractUrlBasedView
 * @see InternalResourceView
 * @see org.springframework.web.servlet.view.velocity.VelocityView
 * @see org.springframework.web.servlet.view.freemarker.FreeMarkerView
 */
public class UrlBasedViewResolver extends AbstractCachingViewResolver implements Ordered {

	/**
	 * Prefix for special view names that specify a redirect URL (usually
	 * to a controller after a form has been submitted and processed).
	 * Such view names will not be resolved in the configured default
	 * way but rather be treated as special shortcut.
	 */
	public static final String REDIRECT_URL_PREFIX = "redirect:";

	/**
	 * Prefix for special view names that specify a forward URL (usually
	 * to a controller after a form has been submitted and processed).
	 * Such view names will not be resolved in the configured default
	 * way but rather be treated as special shortcut.
	 */
	public static final String FORWARD_URL_PREFIX = "forward:";


	private Class viewClass;

	private String prefix = "";

	private String suffix = "";

	private String[] viewNames = null;

	private String contentType;

	private boolean redirectContextRelative = true;

	private boolean redirectHttp10Compatible = true;

	private String requestContextAttribute;

	private int order = Integer.MAX_VALUE;

	/** Map of static attributes, keyed by attribute name (String) */
	private final Map	staticAttributes = new HashMap();


	/**
	 * Set the view class that should be used to create views.
	 * @param viewClass class that is assignable to the required view class
	 * (by default, AbstractUrlBasedView)
	 * @see AbstractUrlBasedView
	 */
	public void setViewClass(Class viewClass) {
		if (viewClass == null || !requiredViewClass().isAssignableFrom(viewClass)) {
			throw new IllegalArgumentException(
					"Given view class [" + (viewClass != null ? viewClass.getName() : null) +
					"] is not of type [" + requiredViewClass().getName() + "]");
		}
		this.viewClass = viewClass;
	}

	/**
	 * Return the view class to be used to create views.
	 */
	protected Class getViewClass() {
		return this.viewClass;
	}

	/**
	 * Return the required type of view for this resolver.
	 * This implementation returns AbstractUrlBasedView.
	 * @see AbstractUrlBasedView
	 */
	protected Class requiredViewClass() {
		return AbstractUrlBasedView.class;
	}

	/**
	 * Set the prefix that gets prepended to view names when building a URL.
	 */
	public void setPrefix(String prefix) {
		this.prefix = (prefix != null ? prefix : "");
	}

	/**
	 * Return the prefix that gets prepended to view names when building a URL.
	 */
	protected String getPrefix() {
		return this.prefix;
	}

	/**
	 * Set the suffix that gets appended to view names when building a URL.
	 */
	public void setSuffix(String suffix) {
		this.suffix = (suffix != null ? suffix : "");
	}

	/**
	 * Return the suffix that gets appended to view names when building a URL.
	 */
	protected String getSuffix() {
		return this.suffix;
	}

	/**
	 * Set the content type for all views.
	 * <p>May be ignored by view classes if the view itself is assumed
	 * to set the content type, e.g. in case of JSPs.
	 */
	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	/**
	 * Return the content type for all views, if any.
	 */
	protected String getContentType() {
		return this.contentType;
	}

	/**
	 * Set whether to interpret a given redirect URL that starts with a
	 * slash ("/") as relative to the current ServletContext, i.e. as
	 * relative to the web application root.
	 * <p>Default is "true": A redirect URL that starts with a slash will be
	 * interpreted as relative to the web application root, i.e. the context
	 * path will be prepended to the URL.
	 * <p><b>Redirect URLs can be specified via the "redirect:" prefix.</b>
	 * E.g.: "redirect:myAction.do"
	 * @see RedirectView#setContextRelative
	 * @see #REDIRECT_URL_PREFIX
	 */
	public void setRedirectContextRelative(boolean redirectContextRelative) {
		this.redirectContextRelative = redirectContextRelative;
	}

	/**
	 * Return whether to interpret a given redirect URL that starts with a
	 * slash ("/") as relative to the current ServletContext, i.e. as
	 * relative to the web application root.
	 */
	protected boolean isRedirectContextRelative() {
		return this.redirectContextRelative;
	}

	/**
	 * Set whether redirects should stay compatible with HTTP 1.0 clients.

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久影院老司| 蜜桃av一区二区三区电影| 国产午夜一区二区三区| 欧美日韩的一区二区| 91国产精品成人| 91麻豆.com| 色婷婷久久综合| 欧美亚洲动漫精品| 色嗨嗨av一区二区三区| 91丨九色丨国产丨porny| 99久久99久久精品免费看蜜桃| 国产成人免费在线观看不卡| 成人免费看片app下载| jizz一区二区| 91视频com| 欧美日韩日日夜夜| 日韩欧美一区二区三区在线| 久久蜜桃一区二区| 国产欧美日韩精品一区| 一区在线观看视频| 一区二区三区在线观看国产| 亚洲成人免费在线| 久久精品999| 高清成人在线观看| 日本高清成人免费播放| 欧美日本一区二区三区四区| 日韩欧美在线影院| 久久蜜桃av一区二区天堂| 国产精品免费网站在线观看| 亚洲人被黑人高潮完整版| 一区2区3区在线看| 麻豆一区二区99久久久久| 国产精品亚洲成人| 日本电影亚洲天堂一区| 欧美精品少妇一区二区三区| 精品久久久久久最新网址| 中文字幕av一区二区三区| 亚洲女性喷水在线观看一区| 天天操天天干天天综合网| 国模少妇一区二区三区| 国产不卡免费视频| 欧美在线播放高清精品| 91精品国产麻豆国产自产在线| 欧美成人video| 中文字幕在线观看不卡| 午夜国产精品一区| 国产精品77777| 欧美在线观看一二区| 久久久天堂av| 偷拍日韩校园综合在线| 韩国三级电影一区二区| 欧美亚洲图片小说| 国产日产欧产精品推荐色| 午夜日韩在线电影| 成人午夜av影视| 日韩欧美一级在线播放| 亚洲人成在线播放网站岛国| 久久精品国产免费| 色婷婷激情综合| 久久精品人人做人人综合 | 午夜伊人狠狠久久| 国产精品中文字幕日韩精品 | 国产日韩视频一区二区三区| 亚洲在线免费播放| 福利一区在线观看| 欧美一区二区三区四区久久| 亚洲桃色在线一区| 亚洲裸体在线观看| 国产传媒日韩欧美成人| 这里只有精品免费| 亚洲一区在线观看视频| voyeur盗摄精品| 国产丝袜欧美中文另类| 美女在线观看视频一区二区| 欧美亚洲高清一区| 亚洲天堂久久久久久久| 国产高清久久久| 欧美zozo另类异族| 秋霞电影一区二区| 欧美日韩一级大片网址| 最近日韩中文字幕| 国产999精品久久久久久绿帽| 精品福利一区二区三区| 免费看欧美女人艹b| 欧美日韩在线播放三区四区| 亚洲色图视频网站| 99视频在线精品| 国产精品久久网站| 国产99精品国产| 国产日韩欧美不卡| 国产一区二区三区久久久| 日韩欧美一区电影| 麻豆精品精品国产自在97香蕉| 欧美丰满高潮xxxx喷水动漫| 亚洲一区二区在线播放相泽| 在线影院国内精品| 一区二区三区免费观看| 色综合中文综合网| 高清不卡一区二区| 国产天堂亚洲国产碰碰| 国产剧情av麻豆香蕉精品| 精品成人一区二区| 久久精品国产亚洲高清剧情介绍| 日韩欧美中文一区| 韩国v欧美v日本v亚洲v| 久久久久久久久久久久久夜| 国产乱色国产精品免费视频| 久久婷婷久久一区二区三区| 国产一区二区三区免费在线观看| 日韩免费电影网站| 国内精品免费**视频| 久久久精品tv| 成人国产精品免费网站| 中文字幕一区二区日韩精品绯色| 成人听书哪个软件好| 亚洲人精品一区| 欧美三级午夜理伦三级中视频| 视频一区二区中文字幕| 欧美一区二区三区免费视频| 久久不见久久见免费视频1| 欧美精品一区二区在线观看| 国产成人精品午夜视频免费| 国产精品成人免费精品自在线观看| av不卡在线播放| 亚洲国产精品综合小说图片区| 欧美一区二区三区免费观看视频 | 91官网在线免费观看| 亚洲国产精品欧美一二99| 4438x成人网最大色成网站| 麻豆专区一区二区三区四区五区| 久久久美女毛片| 99热在这里有精品免费| 亚洲风情在线资源站| 日韩免费视频线观看| 成人精品视频.| 亚洲成人黄色小说| 久久久久综合网| 一本久久a久久免费精品不卡| 人人爽香蕉精品| 国产精品久久久久久妇女6080| 欧美色成人综合| 国产福利不卡视频| 亚洲一区二区在线免费观看视频| 日韩欧美国产一区二区三区| 丰满白嫩尤物一区二区| 亚洲成人久久影院| 国产午夜久久久久| 欧美日韩视频专区在线播放| 国产在线精品免费| 一区二区三区四区在线免费观看| 日韩欧美电影在线| 99国产精品一区| 丝袜亚洲另类丝袜在线| 欧美国产精品v| 777xxx欧美| 91亚洲国产成人精品一区二区三 | 五月激情综合网| 国产精品久久久久久妇女6080| 欧美一区三区二区| 91一区一区三区| 国产精品一品视频| 日韩国产精品91| 亚洲伦理在线免费看| 精品av综合导航| 欧美日韩精品三区| 色综合婷婷久久| 韩国精品一区二区| 亚洲丰满少妇videoshd| 1024亚洲合集| 久久精品一区四区| 日韩精品一区二区三区中文不卡 | 久久精品国产在热久久| 樱花影视一区二区| 久久久久久99精品| 欧美精品vⅰdeose4hd| 91在线观看美女| 国产精品自拍三区| 欧美aaaaa成人免费观看视频| 亚洲三级小视频| 国产亚洲欧美在线| 日韩一区二区免费高清| 欧美私模裸体表演在线观看| 成人午夜视频福利| 久草精品在线观看| 日韩在线一区二区| 亚洲一区二区三区视频在线| 国产女人水真多18毛片18精品视频 | 久久99精品久久久久久动态图| 亚洲国产精品一区二区www| 亚洲欧美日韩综合aⅴ视频| 久久久国产午夜精品| 欧美r级在线观看| 9191国产精品| 欧美精三区欧美精三区| 欧美手机在线视频| 色婷婷综合久久| 色哟哟国产精品免费观看| 91麻豆国产精品久久| 91一区二区三区在线播放| 91视频在线观看免费|