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

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

?? requestcontextlistener.java

?? spring framework 2.5.4源代碼
?? JAVA
字號:
/*
 * 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.context.request;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.http.HttpServletRequest;

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

import org.springframework.context.i18n.LocaleContextHolder;

/**
 * Servlet 2.4+ listener that exposes the request to the current thread,
 * through both {@link org.springframework.context.i18n.LocaleContextHolder} and
 * {@link RequestContextHolder}. To be registered as listener in <code>web.xml</code>.
 *
 * <p>Alternatively, Spring's {@link org.springframework.web.filter.RequestContextFilter}
 * and Spring's {@link org.springframework.web.servlet.DispatcherServlet} also expose
 * the same request context to the current thread. In contrast to this listener,
 * advanced options are available there (e.g. "threadContextInheritable").
 *
 * <p>This listener is mainly for use with third-party servlets, e.g. the JSF FacesServlet.
 * Within Spring's own web support, DispatcherServlet's processing is perfectly sufficient.
 *
 * @author Juergen Hoeller
 * @since 2.0
 * @see javax.servlet.ServletRequestListener
 * @see org.springframework.context.i18n.LocaleContextHolder
 * @see org.springframework.web.context.request.RequestContextHolder
 * @see org.springframework.web.filter.RequestContextFilter
 * @see org.springframework.web.servlet.DispatcherServlet
 */
public class RequestContextListener implements ServletRequestListener {

	private static final String REQUEST_ATTRIBUTES_ATTRIBUTE =
			RequestContextListener.class.getName() + ".REQUEST_ATTRIBUTES";

	/** Logger available to subclasses */
	protected final Log logger = LogFactory.getLog(getClass());


	public void requestInitialized(ServletRequestEvent requestEvent) {
		if (!(requestEvent.getServletRequest() instanceof HttpServletRequest)) {
			throw new IllegalArgumentException(
					"Request is not an HttpServletRequest: " + requestEvent.getServletRequest());
		}
		HttpServletRequest request = (HttpServletRequest) requestEvent.getServletRequest();
		ServletRequestAttributes attributes = new ServletRequestAttributes(request);
		request.setAttribute(REQUEST_ATTRIBUTES_ATTRIBUTE, attributes);
		LocaleContextHolder.setLocale(request.getLocale());
		RequestContextHolder.setRequestAttributes(attributes);
		if (logger.isDebugEnabled()) {
			logger.debug("Bound request context to thread: " + request);
		}
	}

	public void requestDestroyed(ServletRequestEvent requestEvent) {
		ServletRequestAttributes attributes =
				(ServletRequestAttributes) requestEvent.getServletRequest().getAttribute(REQUEST_ATTRIBUTES_ATTRIBUTE);
		ServletRequestAttributes threadAttributes =
				(ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
		if (threadAttributes != null) {
			// We're assumably within the original request thread...
			if (attributes == null) {
				attributes = threadAttributes;
			}
			RequestContextHolder.resetRequestAttributes();
			LocaleContextHolder.resetLocaleContext();
		}
		if (attributes != null) {
			attributes.requestCompleted();
			if (logger.isDebugEnabled()) {
				logger.debug("Cleared thread-bound request context: " + requestEvent.getServletRequest());
			}
		}
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
1024国产精品| 国产午夜精品一区二区| 从欧美一区二区三区| 麻豆久久一区二区| 午夜精品福利在线| 亚洲大片在线观看| 亚洲一区二区三区不卡国产欧美 | 日韩精品免费专区| 亚洲3atv精品一区二区三区| 亚洲二区视频在线| 午夜视频一区二区| 午夜私人影院久久久久| 亚洲aⅴ怡春院| 亚洲www啪成人一区二区麻豆| 尤物视频一区二区| 午夜影院久久久| 蜜桃一区二区三区在线| 精久久久久久久久久久| 国产精品中文字幕欧美| 懂色av一区二区夜夜嗨| aaa欧美日韩| 在线观看91视频| 日韩一级二级三级| 国产日韩精品一区| 亚洲天堂福利av| 亚洲国产婷婷综合在线精品| 久久99精品久久久久久| 丁香六月久久综合狠狠色| 一本色道久久综合狠狠躁的推荐| 欧美最猛黑人xxxxx猛交| 91精品国产综合久久婷婷香蕉| 久久久久亚洲综合| 洋洋成人永久网站入口| 全国精品久久少妇| 成人av在线播放网址| 欧美日韩极品在线观看一区| 国产三级三级三级精品8ⅰ区| 亚洲欧美在线观看| 免费在线观看成人| 成人黄色av网站在线| 欧美日韩高清一区二区不卡| 国产日韩欧美a| 午夜久久久久久久久| 国产精品69毛片高清亚洲| 欧美最猛性xxxxx直播| 久久影院视频免费| 污片在线观看一区二区| 成人美女视频在线看| 欧美高清你懂得| 国产精品毛片无遮挡高清| 奇米影视一区二区三区| 一本色道久久综合狠狠躁的推荐| 欧美大胆一级视频| 天堂成人免费av电影一区| 成人综合婷婷国产精品久久免费| 欧美丰满少妇xxxxx高潮对白| 中文字幕在线不卡国产视频| 另类综合日韩欧美亚洲| 欧美二区在线观看| 亚洲精品ww久久久久久p站| 精品一区二区三区久久久| 欧美亚洲国产一区二区三区va| 久久久综合激的五月天| 久久国产夜色精品鲁鲁99| 欧美色综合网站| 亚洲激情图片小说视频| proumb性欧美在线观看| 欧美国产精品一区二区三区| 国内精品伊人久久久久av影院| 欧美日韩久久不卡| 亚洲午夜私人影院| 国产呦精品一区二区三区网站| 日韩一区二区三区免费观看| 日韩电影在线一区| 8x福利精品第一导航| 日本在线不卡视频一二三区| 在线不卡欧美精品一区二区三区| 亚洲.国产.中文慕字在线| 在线一区二区三区四区五区 | 欧美午夜电影网| 亚洲欧洲精品一区二区精品久久久| 国产乱码精品一区二区三区五月婷| 精品久久久久久综合日本欧美| 国产自产v一区二区三区c| 26uuu另类欧美亚洲曰本| 国产曰批免费观看久久久| 国产亚洲精品超碰| 成人精品免费网站| 亚洲欧美激情视频在线观看一区二区三区 | 欧美美女一区二区在线观看| 亚洲人成在线播放网站岛国| 91玉足脚交白嫩脚丫在线播放| 亚洲天堂网中文字| 欧美日韩视频专区在线播放| 午夜电影一区二区| 精品理论电影在线观看 | 一二三区精品视频| 欧美日韩亚洲高清一区二区| 精品在线免费视频| 国产精品九色蝌蚪自拍| 欧美亚洲图片小说| 青青草国产精品亚洲专区无| 国产无一区二区| 欧美亚洲国产一区二区三区va| 天天av天天翘天天综合网| 日韩欧美亚洲一区二区| 福利一区二区在线| 亚洲国产精品精华液网站| 日韩欧美亚洲国产另类| 丁香婷婷综合激情五月色| 一区二区三区色| 26uuu另类欧美亚洲曰本| jvid福利写真一区二区三区| 视频在线观看一区二区三区| 久久免费看少妇高潮| 欧美三级电影在线观看| 国产一本一道久久香蕉| 一区二区三区欧美日| 久久综合九色综合97婷婷女人 | 日韩欧美一区中文| 成人深夜视频在线观看| 亚洲成人7777| 欧美国产日韩a欧美在线观看| 欧美日韩mp4| caoporn国产一区二区| 蜜臀a∨国产成人精品| 亚洲综合在线视频| 中文字幕巨乱亚洲| 精品国产一区久久| 欧美日韩国产区一| 99视频精品免费视频| 国产一区二区女| 日产欧产美韩系列久久99| 亚洲视频小说图片| 国产精品美女www爽爽爽| 精品日韩一区二区| 538prom精品视频线放| 欧美在线观看禁18| 一本大道久久精品懂色aⅴ| 国产xxx精品视频大全| 日韩专区在线视频| 夜夜嗨av一区二区三区| 亚洲精选免费视频| 自拍视频在线观看一区二区| 国产欧美日韩久久| 中文字幕av一区二区三区| 久久精品欧美日韩精品 | 播五月开心婷婷综合| 国产一区二区三区免费| 久久精品国内一区二区三区| 日韩二区三区在线观看| 日本欧美肥老太交大片| 日本成人中文字幕在线视频| 日韩精品电影在线观看| 日韩制服丝袜av| 视频在线观看一区| 日本不卡免费在线视频| 五月天国产精品| 午夜影院在线观看欧美| 国产精品狼人久久影院观看方式| 2023国产精品| 欧美国产一区视频在线观看| 精品精品欲导航| 国产农村妇女精品| 日韩毛片高清在线播放| 一色屋精品亚洲香蕉网站| 亚洲曰韩产成在线| 国产精品免费免费| 国产精品久久久久久一区二区三区 | 偷拍日韩校园综合在线| 石原莉奈在线亚洲二区| 韩国v欧美v亚洲v日本v| 国产精品夜夜嗨| 91免费视频观看| 欧美精品乱码久久久久久按摩| 欧美成人免费网站| 欧美国产欧美综合| 亚洲精品免费电影| 久久精品国产一区二区三 | 337p粉嫩大胆色噜噜噜噜亚洲 | 精品国产乱码久久久久久闺蜜| 日韩午夜激情视频| 日韩欧美专区在线| 欧美成人一区二区三区片免费| 日韩一级视频免费观看在线| 国产丝袜美腿一区二区三区| 专区另类欧美日韩| 午夜久久久久久电影| 国产一区二区三区精品视频| 粉嫩在线一区二区三区视频| 欧美区一区二区三区| 国产午夜亚洲精品羞羞网站| 国产精品毛片无遮挡高清| 一区二区三区四区精品在线视频| 美国毛片一区二区三区| 天天亚洲美女在线视频| 国产一区二区三区精品视频| 欧美三级乱人伦电影| 亚洲精品一区二区三区在线观看| 亚洲欧美另类在线|