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

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

?? componentcontrollersupport.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.servlet.view.tiles;

import java.io.File;
import java.io.IOException;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.tiles.ComponentContext;
import org.apache.struts.tiles.ControllerSupport;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.servlet.support.RequestContextUtils;
import org.springframework.web.util.NestedServletException;
import org.springframework.web.util.WebUtils;

/**
 * Convenience class for Spring-aware Tiles component controllers.
 * Provides a reference to the current Spring application context,
 * e.g. for bean lookup or resource loading.
 *
 * <p>Derives from the Tiles {@link ControllerSupport} class rather than
 * implementing the Tiles {@link org.apache.struts.tiles.Controller} interface
 * in order to be compatible with Struts 1.1 and 1.2. Implements both Struts 1.1's
 * <code>perform</code> and Struts 1.2's <code>execute</code> method accordingly.
 *
 * @author Juergen Hoeller
 * @author Alef Arendsen
 * @since 22.08.2003
 * @see org.springframework.web.context.support.WebApplicationObjectSupport
 */
public abstract class ComponentControllerSupport extends ControllerSupport {

	private WebApplicationContext webApplicationContext;

	private MessageSourceAccessor messageSourceAccessor;


	/**
	 * This implementation delegates to <code>execute</code>,
	 * converting non-Servlet/IO Exceptions to ServletException.
	 * <p>This is the only execution method available in Struts 1.1.
	 * @see #execute
	 */
	public final void perform(
			ComponentContext componentContext, HttpServletRequest request,
			HttpServletResponse response, ServletContext servletContext)
	    throws ServletException, IOException {

		try {
			execute(componentContext, request, response, servletContext);
		}
		catch (ServletException ex) {
			throw ex;
		}
		catch (IOException ex) {
			throw ex;
		}
		catch (Throwable ex) {
			throw new NestedServletException("Execution of component controller failed", ex);
		}
	}

	/**
	 * This implementation delegates to <code>doPerform</code>,
	 * lazy-initializing the application context reference if necessary.
	 * <p>This is the preferred execution method in Struts 1.2.
	 * When running with Struts 1.1, it will be called by <code>perform</code>.
	 * @see #perform
	 * @see #doPerform
	 */
	public final void execute(
			ComponentContext componentContext, HttpServletRequest request,
			HttpServletResponse response, ServletContext servletContext)
	    throws Exception {

		synchronized (this) {
			if (this.webApplicationContext == null) {
				this.webApplicationContext = RequestContextUtils.getWebApplicationContext(request, servletContext);
				this.messageSourceAccessor = new MessageSourceAccessor(this.webApplicationContext);
			}
		}
		doPerform(componentContext, request, response);
	}


	/**
	 * Subclasses can override this for custom initialization behavior.
	 * Gets called on initialization of the context for this controller.
	 * @throws org.springframework.context.ApplicationContextException in case of initialization errors
	 * @throws org.springframework.beans.BeansException if thrown by application context methods
	 */
	protected void initApplicationContext() throws BeansException {
	}

	/**
	 * Return the current Spring ApplicationContext.
	 */
	protected final ApplicationContext getApplicationContext() {
		return this.webApplicationContext;
	}

	/**
	 * Return the current Spring WebApplicationContext.
	 */
	protected final WebApplicationContext getWebApplicationContext() {
		return this.webApplicationContext;
	}

	/**
	 * Return a MessageSourceAccessor for the application context
	 * used by this object, for easy message access.
	 */
	protected final MessageSourceAccessor getMessageSourceAccessor() {
		return this.messageSourceAccessor;
	}

	/**
	 * Return the current ServletContext.
	 */
	protected final ServletContext getServletContext() {
		return this.webApplicationContext.getServletContext();
	}

	/**
	 * Return the temporary directory for the current web application,
	 * as provided by the servlet container.
	 * @return the File representing the temporary directory
	 */
	protected final File getTempDir() {
		return WebUtils.getTempDir(getServletContext());
	}


	/**
	 * Perform the preparation for the component, allowing for any Exception to be thrown.
	 * The ServletContext can be retrieved via getServletContext, if necessary.
	 * The Spring WebApplicationContext can be accessed via getWebApplicationContext.
	 * <p>This method will be called both in the Struts 1.1 and Struts 1.2 case,
	 * by <code>perform</code> or <code>execute</code>, respectively.
	 * @param componentContext current Tiles component context
	 * @param request current HTTP request
	 * @param response current HTTP response
	 * @throws Exception in case of errors
	 * @see org.apache.struts.tiles.Controller#perform
	 * @see #getServletContext
	 * @see #getWebApplicationContext
	 * @see #perform
	 * @see #execute
	 */
	protected abstract void doPerform(
			ComponentContext componentContext, HttpServletRequest request, HttpServletResponse response)
			throws Exception;

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产丝袜欧美中文另类| 欧美xfplay| 韩国欧美国产1区| 成人精品在线视频观看| 亚洲精品一区二区三区香蕉| 国产精品综合二区| 亚洲国产日产av| 久久久精品欧美丰满| 欧美日韩一区二区在线视频| 在线观看视频91| 一区二区三区在线免费视频 | 中文字幕的久久| 欧美日韩不卡视频| www.日本不卡| 91麻豆精品国产91久久久更新时间| 久久疯狂做爰流白浆xx| 亚洲精品乱码久久久久久久久| 亚洲精品在线免费观看视频| 欧美日韩精品专区| 91免费观看视频| 91香蕉视频mp4| 99久久综合色| 色综合久久久久久久久| 丰满亚洲少妇av| 国产电影精品久久禁18| 另类小说欧美激情| 精品一区二区三区影院在线午夜 | 肉丝袜脚交视频一区二区| 亚洲欧美激情视频在线观看一区二区三区 | 国产成人鲁色资源国产91色综 | 视频一区二区三区中文字幕| 中文字幕综合网| 久久久国产精华| 最新热久久免费视频| 色激情天天射综合网| 91亚洲精品乱码久久久久久蜜桃| jlzzjlzz欧美大全| 欧美日韩视频在线观看一区二区三区| 欧美日韩极品在线观看一区| 91精品国产欧美一区二区18 | 国产精品久久一卡二卡| 一区二区三区四区在线| 奇米在线7777在线精品| 懂色av一区二区三区蜜臀 | 久久夜色精品国产欧美乱极品| 国产精品情趣视频| 免费av网站大全久久| 国产精品中文欧美| 欧美剧在线免费观看网站| 国产欧美日韩另类一区| 亚洲综合免费观看高清完整版 | 色噜噜狠狠色综合欧洲selulu| 欧美成人a视频| 亚洲成av人片一区二区梦乃| 国产电影精品久久禁18| 亚洲日本欧美天堂| 色诱视频网站一区| 日韩中文字幕一区二区三区| 琪琪久久久久日韩精品| 日韩欧美一卡二卡| 欧美日韩国产一二三| 国产精品久久久久久妇女6080 | 毛片不卡一区二区| 欧美成人精精品一区二区频| 国产一区在线不卡| 亚洲日本在线观看| 日韩黄色一级片| 在线国产电影不卡| 韩国av一区二区三区在线观看| 一本色道久久综合精品竹菊 | 亚洲激情网站免费观看| 国产精品一级在线| 国产亚洲短视频| 激情五月播播久久久精品| 日韩一区二区视频| 免费欧美在线视频| 欧美变态tickling挠脚心| 亚洲高清免费一级二级三级| 91美女在线观看| 一色屋精品亚洲香蕉网站| 懂色av一区二区三区免费观看| 亚洲综合丁香婷婷六月香| 欧美在线观看18| 裸体健美xxxx欧美裸体表演| 国产亚洲成av人在线观看导航 | 精品国产一区二区亚洲人成毛片| 激情综合亚洲精品| 亚洲图片激情小说| 欧美xxxxxxxx| 欧美日韩综合在线免费观看| 精品一区二区三区在线播放| 日韩毛片在线免费观看| 久久久久99精品国产片| 欧美日本不卡视频| 在线视频国内自拍亚洲视频| 国产一区二区三区四| 秋霞电影一区二区| 亚洲在线视频网站| 亚洲美腿欧美偷拍| 7777精品伊人久久久大香线蕉经典版下载| 成人午夜视频网站| 国产伦精品一区二区三区免费迷| 日韩精品亚洲一区二区三区免费| 亚洲人成网站影音先锋播放| 久久综合色鬼综合色| 欧美精品一区二区三区蜜桃视频 | 欧美午夜精品一区二区三区| 91麻豆精品视频| 日韩欧美精品在线| 亚洲一二三四在线| 大尺度一区二区| 亚洲激情综合网| 亚洲va国产天堂va久久en| 日韩和的一区二区| 精品久久久久久久久久久久包黑料| 日韩美女视频一区二区在线观看| 日韩一区二区不卡| 欧美国产日韩精品免费观看| 亚洲精品国产成人久久av盗摄| 三级在线观看一区二区 | 欧美男人的天堂一二区| 日韩视频在线永久播放| 中文字幕+乱码+中文字幕一区| 亚洲人成亚洲人成在线观看图片| 国产黄色成人av| 这里只有精品视频在线观看| 久久精品在线观看| 日韩国产高清影视| 97久久精品人人做人人爽50路| 欧美日韩黄色影视| 国产精品少妇自拍| 激情av综合网| 亚洲国产成人porn| 一本大道久久a久久精品综合| 91麻豆精品国产91久久久资源速度| 久久久99精品免费观看| 视频精品一区二区| 欧美高清精品3d| 亚洲一区二区欧美| 国产婷婷色一区二区三区四区| 亚洲一二三区视频在线观看| 色综合色狠狠天天综合色| 亚洲婷婷在线视频| 91天堂素人约啪| 一区二区三区日韩在线观看| 97se亚洲国产综合在线| 国产精品卡一卡二卡三| 国产清纯白嫩初高生在线观看91| 久久99蜜桃精品| 久久久综合精品| 成人激情动漫在线观看| 中文字幕一区二区视频| 欧美伊人久久久久久午夜久久久久| 亚洲国产综合人成综合网站| 99久久99久久精品国产片果冻| 国产毛片精品视频| 久久精品亚洲精品国产欧美kt∨| 一区二区久久久久久| 91视频在线观看| 亚洲午夜视频在线| 欧美一区二区三区男人的天堂| 韩国欧美一区二区| 自拍偷拍欧美激情| 久久久久青草大香线综合精品| 99这里只有精品| 国产精品18久久久久久久久久久久 | 欧美精品九九99久久| 成人小视频在线| 国产麻豆91精品| 美女一区二区久久| 日韩极品在线观看| 亚洲高清免费观看高清完整版在线观看| 国产日韩精品视频一区| 欧美一区二区免费| 捆绑紧缚一区二区三区视频| 一区二区三区四区五区视频在线观看| 在线免费观看日本一区| 丁香六月久久综合狠狠色| 亚洲v日本v欧美v久久精品| 精品国产123| 欧美日韩一区二区三区四区| 成人激情视频网站| 国产一区二区免费在线| 亚洲一区二区三区国产| 国产精品久久久久影院| 欧美mv日韩mv国产网站| 欧美日韩一区二区三区在线| 91视频com| 色悠悠久久综合| 99vv1com这只有精品| 色视频成人在线观看免| 在线日韩av片| 在线不卡免费欧美| 欧美r级在线观看| 日韩欧美色综合| 精品88久久久久88久久久| 欧美变态口味重另类| 欧美va亚洲va在线观看蝴蝶网| 久久这里只有精品6| 欧美激情一区二区三区不卡|