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

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

?? controller.java

?? spring framework 2.5.4源代碼
?? JAVA
字號:
/*
 * Copyright 2002-2006 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.mvc;

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

import org.springframework.web.servlet.ModelAndView;

/**
 * Base Controller interface, representing a component that receives
 * <code>HttpServletRequest</code> and <code>HttpServletResponse</code>
 * instances just like a <code>HttpServlet</code> but is able to
 * participate in an MVC workflow. Controllers are comparable to the
 * notion of a Struts <code>Action</code>.
 *
 * <p>Any implementation of the Controller interface should be a
 * <i>reusable, thread-safe</i> class, capable of handling multiple
 * HTTP requests throughout the lifecycle of an application. To be able to
 * configure a Controller easily, Controller implementations are encouraged
 * to be (and usually are) JavaBeans.
 * </p>
 *
 * <p><b><a name="workflow">Workflow</a></b></p>
 *
 * <p>
 * After a <cde>DispatcherServlet</code> has received a request and has
 * done its work to resolve locales, themes and suchlike, it then tries
 * to resolve a Controller, using a
 * {@link org.springframework.web.servlet.HandlerMapping HandlerMapping}.
 * When a Controller has been found to handle the request, the
 * {@link #handleRequest(HttpServletRequest, HttpServletResponse) handleRequest}
 * method of the located Controller will be invoked; the located Controller
 * is then responsible for handling the actual request and - if applicable -
 * returning an appropriate
 * {@link org.springframework.web.servlet.ModelAndView ModelAndView}.
 * So actually, this method is the main entrypoint for the
 * {@link org.springframework.web.servlet.DispatcherServlet DispatcherServlet}
 * which delegates requests to controllers. This method - and also this interface -
 * should preferrably not be implemented by custom controllers <i>directly</i>, since
 * abstract controller also provided by this package already provide a lot of
 * functionality for typical use cases in web applications. A few examples of
 * those controllers:
 * {@link AbstractController AbstractController},
 * {@link AbstractCommandController AbstractCommandController},
 * {@link SimpleFormController SimpleFormController}.</p>
 *
 * <p>So basically any <i>direct</i> implementation of the Controller interface
 * just handles HttpServletRequests and should return a ModelAndView, to be further
 * interpreted by the DispatcherServlet. Any additional functionality such as
 * optional validation, form handling, etc should be obtained through extending
 * one of the abstract controller classes mentioned above.</p>
 *
 * <p><b>Notes on design and testing</b></p>
 *
 * <p>The Controller interface is explicitly designed to operate on HttpServletRequest
 * and HttpServletResponse objects, just like an HttpServlet. It does not aim to
 * decouple itself from the Servlet API, in contrast to, for example, WebWork, JSF or Tapestry.
 * Instead, the full power of the Servlet API is available, allowing Controllers to be
 * general-purpose: a Controller is able to not only handle web user interface
 * requests but also to process remoting protocols or to generate reports on demand.</p>
 *
 * <p>Controllers can easily be tested by passing in mock objects for the
 * HttpServletRequest and HttpServletResponse objects as parameters to the
 * {@link #handleRequest(HttpServletRequest, HttpServletResponse) handleRequest}
 * method. As a convenience, Spring ships with a set of Servlet API mocks
 * that are suitable for testing any kind of web components, but are particularly
 * suitable for testing Spring web controllers. In contrast to a Struts Action,
 * there is no need to mock the ActionServlet or any other infrastructure;
 * HttpServletRequest and HttpServletResponse are sufficient.</p>
 *
 * <p>If Controllers need to be aware of specific environment references, they can
 * choose to implement specific awareness interfaces, just like any other bean in a
 * Spring (web) application context can do, for example:</p>
 * <ul>
 * <li><code>org.springframework.context.ApplicationContextAware</code></li>
 * <li><code>org.springframework.context.ResourceLoaderAware</code></li>
 * <li><code>org.springframework.web.context.ServletContextAware</code></li>
 * </ul>
 *
 * <p>Such environment references can easily be passed in testing environments,
 * through the corresponding setters defined in the respective awareness interfaces.
 * In general, it is recommended to keep the dependencies as minimal as possible:
 * for example, if all you need is resource loading, implement ResourceLoaderAware only.
 * Alternatively, derive from the WebApplicationObjectSupport base class, which gives
 * you all those references through convenient accessors - but requires an
 * ApplicationContext reference on initialization.
 *
 * <p>Controllers can optionally implement the LastModified interface.
 *
 * @author Rod Johnson
 * @author Juergen Hoeller
 * @see LastModified
 * @see SimpleControllerHandlerAdapter
 * @see AbstractController
 * @see AbstractCommandController
 * @see SimpleFormController
 * @see org.springframework.mock.web.MockHttpServletRequest
 * @see org.springframework.mock.web.MockHttpServletResponse
 * @see org.springframework.context.ApplicationContextAware
 * @see org.springframework.context.ResourceLoaderAware
 * @see org.springframework.web.context.ServletContextAware
 * @see org.springframework.web.context.support.WebApplicationObjectSupport
 */
public interface Controller {

	/**
	 * Process the request and return a ModelAndView object which the DispatcherServlet
	 * will render. A <code>null</code> return value is not an error: It indicates that
	 * this object completed request processing itself, thus there is no ModelAndView
	 * to render.
	 * @param request current HTTP request
	 * @param response current HTTP response
	 * @return a ModelAndView to render, or <code>null</code> if handled directly
	 * @throws Exception in case of errors
	 */
	ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception;

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美中文字幕公布| 亚洲日本电影在线| 555www色欧美视频| 亚洲人午夜精品天堂一二香蕉| 日韩影院在线观看| 欧美一区二区在线看| 午夜成人免费电影| 欧美在线小视频| 欧洲一区二区av| 蜜桃视频一区二区三区| 制服丝袜在线91| 国产做a爰片久久毛片| 国产婷婷色一区二区三区| 丁香激情综合五月| 亚洲成人动漫精品| 亚洲精品一区在线观看| 盗摄精品av一区二区三区| 国产精品久久久久久妇女6080| 成人白浆超碰人人人人| 亚洲日本欧美天堂| 2020国产精品自拍| 91精彩视频在线| 国产在线看一区| 亚洲精品日韩专区silk| 日韩精品一区二区在线观看| 99精品黄色片免费大全| 亚洲h在线观看| 中文字幕第一页久久| 欧美美女一区二区在线观看| 国产suv精品一区二区6| 日日夜夜免费精品视频| 国产精品久久久久影视| 日韩免费看的电影| 亚洲一级片在线观看| 亚洲国产精品精华液2区45| 美女脱光内衣内裤视频久久网站| 国产精品福利一区二区三区| 777奇米成人网| 欧美性生活大片视频| 成人99免费视频| 国产成人av一区二区| 26uuu亚洲| 日韩免费观看2025年上映的电影| 色丁香久综合在线久综合在线观看 | 国产精品麻豆欧美日韩ww| 欧美videos大乳护士334| 欧美精品视频www在线观看| 日本丰满少妇一区二区三区| 亚洲视频一区二区在线观看| 国产亚洲精品福利| 久久久久久久久97黄色工厂| 日韩一区二区三区视频在线 | 51久久夜色精品国产麻豆| 在线观看免费成人| 欧美精品久久99久久在免费线 | 欧美mv日韩mv| 欧美成人伊人久久综合网| 亚洲国产岛国毛片在线| 久久久美女毛片| 中文字幕乱码久久午夜不卡| ...xxx性欧美| 亚洲图片自拍偷拍| 美女国产一区二区三区| 狠狠色丁香久久婷婷综| 国产成人av电影| 欧美午夜理伦三级在线观看| 777亚洲妇女| 欧美国产乱子伦| 香蕉成人啪国产精品视频综合网| 午夜精品福利一区二区三区av | 中文字幕日韩一区| 精品国产三级a在线观看| 精品一区二区日韩| 国产成人免费视| 在线一区二区三区四区五区| 日韩一区二区免费高清| 五月婷婷综合网| 国产成人日日夜夜| 色偷偷成人一区二区三区91| 7878成人国产在线观看| 日韩午夜小视频| 一区二区三区在线观看国产| 日韩欧美在线网站| 国产精品传媒在线| 亚洲国产毛片aaaaa无费看 | 欧美成人精精品一区二区频| 精品久久久久99| 亚洲午夜免费视频| 国产老女人精品毛片久久| 欧美精品三级日韩久久| 日韩欧美在线不卡| 日韩精品电影在线观看| 日本视频免费一区| 欧美人与禽zozo性伦| 国产嫩草影院久久久久| 麻豆精品新av中文字幕| 日韩av电影免费观看高清完整版在线观看 | 欧美日韩aaaaaa| 久久综合九色综合欧美亚洲| 国产精品国产三级国产aⅴ无密码| 蜜乳av一区二区三区| 国产91丝袜在线播放九色| 在线国产亚洲欧美| 欧美一区二区三区日韩视频| 亚洲综合色噜噜狠狠| 成人爽a毛片一区二区免费| 欧美天堂亚洲电影院在线播放| 欧美一二三在线| 久久精品久久精品| 欧美区一区二区三区| 亚洲1区2区3区4区| 玖玖九九国产精品| 欧美一区二区视频在线观看| 久久久久久久免费视频了| 一区二区三区四区精品在线视频| 91婷婷韩国欧美一区二区| 久久99精品久久久久久国产越南 | 日韩你懂的在线播放| 中文字幕乱码亚洲精品一区| 丰满亚洲少妇av| 99久久99久久综合| 亚洲一级二级三级| 成人丝袜高跟foot| 中文字幕不卡在线| 99久久精品免费观看| 欧美韩日一区二区三区| 91丨porny丨国产| 欧美精品自拍偷拍动漫精品| 一区二区激情视频| 欧美剧情电影在线观看完整版免费励志电影| 国产欧美精品一区| 欧美区视频在线观看| 久久国产精品第一页| 日韩三级视频在线看| 欧美蜜桃一区二区三区| 成人动漫一区二区在线| 成人综合激情网| 首页综合国产亚洲丝袜| 精品欧美乱码久久久久久1区2区| 久久久久国产精品麻豆 | 久久品道一品道久久精品| 国产曰批免费观看久久久| 亚洲国产精品成人综合色在线婷婷 | 在线观看免费一区| 蜜桃传媒麻豆第一区在线观看| 欧美日韩国产精品成人| av电影天堂一区二区在线观看| 亚洲欧美经典视频| 日本一区二区在线不卡| 日韩理论电影院| 91精品国产综合久久久久久| 91同城在线观看| 国产传媒日韩欧美成人| 久久国产精品99精品国产| 亚洲精品水蜜桃| xnxx国产精品| 日韩免费电影一区| 精品美女一区二区三区| 99久久国产综合精品女不卡| 日本精品裸体写真集在线观看| 久久99国产乱子伦精品免费| 亚洲影院免费观看| 国产一区二区三区四区五区美女| 亚洲欧美另类在线| 水蜜桃久久夜色精品一区的特点| 亚洲色欲色欲www| 国产在线播放一区三区四| 国产精品中文字幕欧美| 粉嫩嫩av羞羞动漫久久久| 色综合天天视频在线观看| 国产麻豆午夜三级精品| 天天av天天翘天天综合网| 天天色 色综合| 粉嫩av一区二区三区在线播放| 欧美做爰猛烈大尺度电影无法无天| 色噜噜夜夜夜综合网| 日韩美女主播在线视频一区二区三区| 日本一区二区免费在线| 蜜桃久久久久久久| 色婷婷狠狠综合| 国产欧美日韩另类一区| 欧美日韩国产片| 亚洲女厕所小便bbb| 丰满少妇在线播放bd日韩电影| 日韩欧美黄色影院| 日韩电影免费在线看| 欧美性受极品xxxx喷水| 又紧又大又爽精品一区二区| 91在线一区二区三区| 亚洲精品一区二区三区蜜桃下载| 亚洲男人天堂一区| 波多野结衣在线一区| 99久久99久久精品免费观看| 欧美色成人综合| 国产91丝袜在线播放0| 久久久影院官网| 国产成人自拍网| 国产精品国产精品国产专区不蜜| 亚洲免费在线观看| 日韩美一区二区三区|