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

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

?? servletcontextresourcepatternresolver.java

?? spring framework 2.5.4源代碼
?? JAVA
字號(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.context.support;

import java.io.IOException;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;

import javax.servlet.ServletContext;

import org.springframework.core.io.Resource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.util.StringUtils;

/**
 * ServletContext-aware subclass of {@link PathMatchingResourcePatternResolver},
 * able to find matching resources below the web application root directory
 * via Servlet 2.3's <code>ServletContext.getResourcePaths</code>.
 * Falls back to the superclass' file system checking for other resources.
 *
 * @author Juergen Hoeller
 * @since 1.1.2
 */
public class ServletContextResourcePatternResolver extends PathMatchingResourcePatternResolver {

	/**
	 * Create a new ServletContextResourcePatternResolver.
	 * @param servletContext the ServletContext to load resources with
	 * @see ServletContextResourceLoader#ServletContextResourceLoader(javax.servlet.ServletContext)
	 */
	public ServletContextResourcePatternResolver(ServletContext servletContext) {
		super(new ServletContextResourceLoader(servletContext));
	}

	/**
	 * Create a new ServletContextResourcePatternResolver.
	 * @param resourceLoader the ResourceLoader to load root directories and
	 * actual resources with
	 */
	public ServletContextResourcePatternResolver(ResourceLoader resourceLoader) {
		super(resourceLoader);
	}


	/**
	 * Overridden version which checks for ServletContextResource
	 * and uses <code>ServletContext.getResourcePaths</code> to find
	 * matching resources below the web application root directory.
	 * In case of other resources, delegates to the superclass version.
	 * @see #doRetrieveMatchingServletContextResources
	 * @see ServletContextResource
	 * @see javax.servlet.ServletContext#getResourcePaths
	 */
	protected Set doFindPathMatchingFileResources(Resource rootDirResource, String subPattern) throws IOException {
		if (rootDirResource instanceof ServletContextResource) {
			ServletContextResource scResource = (ServletContextResource) rootDirResource;
			ServletContext sc = scResource.getServletContext();
			String fullPattern = scResource.getPath() + subPattern;
			Set result = new LinkedHashSet(8);
			doRetrieveMatchingServletContextResources(sc, fullPattern, scResource.getPath(), result);
			return result;
		}
		else {
			return super.doFindPathMatchingFileResources(rootDirResource, subPattern);
		}
	}

	/**
	 * Recursively retrieve ServletContextResources that match the given pattern,
	 * adding them to the given result set.
	 * @param servletContext the ServletContext to work on
	 * @param fullPattern the pattern to match against,
	 * with preprended root directory path
	 * @param dir the current directory
	 * @param result the Set of matching Resources to add to
	 * @throws IOException if directory contents could not be retrieved
	 * @see ServletContextResource
	 * @see javax.servlet.ServletContext#getResourcePaths
	 */
	protected void doRetrieveMatchingServletContextResources(
			ServletContext servletContext, String fullPattern, String dir, Set result) throws IOException {

		Set candidates = servletContext.getResourcePaths(dir);
		if (candidates != null) {
			boolean dirDepthNotFixed = (fullPattern.indexOf("**") != -1);
			for (Iterator it = candidates.iterator(); it.hasNext();) {
				String currPath = (String) it.next();
				if (!currPath.startsWith(dir)) {
					// Returned resource path does not start with relative directory:
					// assuming absolute path returned -> strip absolute path.
					int dirIndex = currPath.indexOf(dir);
					if (dirIndex != -1) {
						currPath = currPath.substring(dirIndex);
					}
				}
				if (currPath.endsWith("/") &&
						(dirDepthNotFixed ||
						StringUtils.countOccurrencesOf(currPath, "/") <= StringUtils.countOccurrencesOf(fullPattern, "/"))) {
					// Search subdirectories recursively: ServletContext.getResourcePaths
					// only returns entries for one directory level.
					doRetrieveMatchingServletContextResources(servletContext, fullPattern, currPath, result);
				}
				if (getPathMatcher().match(fullPattern, currPath)) {
					result.add(new ServletContextResource(servletContext, currPath));
				}
			}
		}
	}

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月天国产精品| 成人黄色综合网站| 成人app在线| 91精品国产入口| 91精品91久久久中77777| 国产一区二区精品久久| 午夜伊人狠狠久久| 亚洲三级视频在线观看| 国产日韩三级在线| 欧美大片一区二区三区| 国产日韩成人精品| 亚洲欧洲韩国日本视频| 亚洲欧美日韩在线| av午夜精品一区二区三区| 精品国产91亚洲一区二区三区婷婷| 日韩和欧美的一区| 91精品在线免费观看| 国产精品一区二区久激情瑜伽| 久久久亚洲精华液精华液精华液| 男女激情视频一区| 久久久久久99精品| 一区二区三区精品视频在线| 精品99一区二区| 日本丶国产丶欧美色综合| 国产宾馆实践打屁股91| 成人avav在线| 91国产成人在线| 欧美年轻男男videosbes| 欧美日韩高清不卡| 欧美一级视频精品观看| 久久久久九九视频| 五月天丁香久久| 国产精品久久久一本精品 | 亚洲国产视频一区| 欧美日本高清视频在线观看| 男人的天堂久久精品| 国产精品久久久久久久裸模| 欧美在线免费视屏| 麻豆中文一区二区| 亚洲丝袜精品丝袜在线| 在线国产电影不卡| 毛片av中文字幕一区二区| 国产精品一线二线三线| 午夜精品福利在线| 国产精品亚洲一区二区三区妖精 | 91片在线免费观看| 日韩主播视频在线| 色琪琪一区二区三区亚洲区| 免费观看成人av| 亚洲啪啪综合av一区二区三区| 欧美日韩一级视频| 亚洲成a人片在线观看中文| 欧美精品一区二区三区一线天视频| 久久精品国产免费| 亚洲成人中文在线| 久久精品亚洲精品国产欧美kt∨ | 欧美一区二区高清| 欧美www视频| 中文一区二区在线观看| 欧美激情一区不卡| 中文字幕av不卡| 亚洲一区免费观看| 久久国产精品99精品国产| 国产高清视频一区| 在线观看成人小视频| 日本乱人伦aⅴ精品| 九九精品一区二区| 亚洲综合久久久| 一区二区久久久| 亚洲综合av网| 一区二区三区日韩欧美| 中文字幕不卡在线观看| 亚洲精品一区二区精华| 欧美一区二区三区免费视频| 欧美日本在线观看| 欧美一区二区三区在线观看视频| 91网上在线视频| 奇米精品一区二区三区四区 | 欧美日韩一级二级| 日韩一本二本av| 夜夜精品视频一区二区| av在线不卡网| 色乱码一区二区三区88| 欧美色综合影院| 国产乱码精品一区二区三| 亚洲成人黄色小说| 亚洲国产人成综合网站| 一区二区三区日韩在线观看| 亚洲国产日韩在线一区模特| 一区二区三区精品视频| 一区二区三区在线播| 亚洲一区国产视频| 午夜精品久久久久久久| 中文字幕av一区二区三区高| 国产精品久久久久婷婷| 欧美一区二区三区免费观看视频| 1区2区3区精品视频| 国产盗摄女厕一区二区三区 | 精品国产一区二区三区忘忧草 | 欧洲精品中文字幕| 乱一区二区av| 亚洲人成精品久久久久久 | 在线视频国内一区二区| 国产成人av网站| 99riav久久精品riav| 51午夜精品国产| 欧美国产禁国产网站cc| 亚洲人成网站影音先锋播放| 亚洲五码中文字幕| 激情五月激情综合网| 一本大道av伊人久久综合| 国产一区二三区| 国产一区亚洲一区| 国产色爱av资源综合区| 国产精品88av| 久久精品综合网| 高清免费成人av| 中文无字幕一区二区三区| 成人黄色在线网站| 日韩丝袜美女视频| 国内精品国产三级国产a久久| 国产视频一区不卡| 成人欧美一区二区三区1314| 秋霞电影一区二区| 在线亚洲一区二区| 国产亚洲短视频| 免费在线一区观看| 91在线观看美女| 亚洲国产精品成人久久综合一区| 午夜精品福利一区二区三区av | 亚洲一区二区三区中文字幕在线| 国产美女av一区二区三区| 欧美巨大另类极品videosbest | 久久久精品中文字幕麻豆发布| 丰满亚洲少妇av| 欧美不卡一区二区三区| 狠狠色丁香久久婷婷综合丁香| 亚洲欧美一区二区三区久本道91| 欧美日韩国产成人在线免费| 国产精品69久久久久水密桃| 亚洲欧美日韩综合aⅴ视频| 亚洲图片激情小说| 一区二区理论电影在线观看| www.欧美精品一二区| 日韩亚洲电影在线| 久久国产三级精品| 久久精品在这里| 高清国产一区二区三区| 中文字幕 久热精品 视频在线 | 国产v综合v亚洲欧| 国产欧美一区二区三区在线老狼| 中文字幕在线观看一区| 欧美日本乱大交xxxxx| 日韩va欧美va亚洲va久久| 成人一区二区三区在线观看 | 婷婷成人综合网| 一区二区三区中文在线| 精品区一区二区| 欧美三区在线观看| 粉嫩蜜臀av国产精品网站| 久久丁香综合五月国产三级网站| 国产精品电影一区二区| 国产视频一区在线观看| 911国产精品| 99久久精品国产精品久久| 久久夜色精品国产噜噜av| 免费在线观看日韩欧美| 久久久777精品电影网影网| 99久久国产综合色|国产精品| 国产精品美女久久福利网站| 成人午夜大片免费观看| 亚洲一区二区视频在线观看| 日韩欧美中文字幕制服| 国产黄色91视频| 亚洲一级片在线观看| 欧美电影精品一区二区| 91美女在线视频| 国产精品一二三四区| 亚洲一区二区三区四区在线| 91免费国产视频网站| 一本色道久久加勒比精品| 欧美少妇xxx| 日韩免费观看高清完整版| 国产夜色精品一区二区av| 国产精品美女视频| 九色porny丨国产精品| 日韩vs国产vs欧美| 国产乱码精品一品二品| 99这里只有精品| 欧美剧在线免费观看网站| 欧美精品一区男女天堂| 国产精品一区2区| 亚洲色图在线播放| 国产午夜精品一区二区三区嫩草 | 日韩一区欧美一区| 久久精品夜色噜噜亚洲a∨| 日韩欧美区一区二| 欧美日韩免费在线视频| 欧美午夜精品久久久久久超碰| 捆绑紧缚一区二区三区视频|