<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-295  評(píng)論-26  文章-1  trackbacks-0
    public abstract class HttpServletBean
    extends HttpServlet
    		

    Simple extension of HttpServlet which treats its config parameters (init-param entries within the servlet tag in web.xml) as bean properties.

    HttpServlet的簡(jiǎn)單擴(kuò)展用來(lái)處理 (init-param)in the web.xml
    A handy superclass for any type of servlet. Type conversion of config parameters is automatic, with the corresponding setter method getting invoked with the converted value. It is also possible for subclasses to specify required properties. Parameters without matching bean property setter will simply be ignored.

    This servlet leaves request handling to subclasses, inheriting the default behavior of HttpServlet (doGet, doPost, etc).

    This generic servlet base class has no dependency on the Spring ApplicationContext concept. Simple servlets usually don't load their own context but rather access service beans from the Spring root application context, accessible via the filter's ServletContext (see WebApplicationContextUtils).

    The FrameworkServlet class is a more specific servlet base class which loads its own application context. FrameworkServlet serves as direct base class of Spring's full-fledged DispatcherServlet.

    public abstract class FrameworkServlet
    extends HttpServletBean
    implements ApplicationListener
    		

    Base servlet for Spring's web framework. Provides integration with a Spring application context, in a JavaBean-based overall solution.

    spring web Framework的基礎(chǔ) servlet? ,提供在以javabean為基礎(chǔ)的整體解決方案已完成與spring應(yīng)用上下文的集成
    This class offers the following functionality:
    1.管理一個(gè)servlet一個(gè)網(wǎng)絡(luò)應(yīng)用上下文實(shí)例,這個(gè)servlet的配置由servlet命名空間里的bean來(lái)決定
    2.根據(jù)請(qǐng)求處理發(fā)布事件,是否請(qǐng)求成功的被處理了

    • Manages a WebApplicationContext instance per servlet. The servlet's configuration is determined by beans in the servlet's namespace.
    • Publishes events on request processing, whether or not a request is successfully handled.

    Subclasses must implement doService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) to handle requests. Because this extends HttpServletBean rather than HttpServlet directly, bean properties are automatically mapped onto it. Subclasses can override initFrameworkServlet() for custom initialization.

    因?yàn)樗^承自httpservletBean 所以bean的屬性已經(jīng)被自動(dòng)的裝配了,子類(lèi)可以通過(guò)覆蓋initFrameworkServlet來(lái)定制初始化bean

    Detects a "contextClass" parameter at the servlet init-param level, falling back to the default context class, XmlWebApplicationContext, if not found. Note that, with the default FrameworkServlet, a custom context class needs to implement the ConfigurableWebApplicationContext SPI.

    Passes a "contextConfigLocation" servlet init-param to the context instance, parsing it into potentially multiple file paths which can be separated by any number of commas and spaces, like "test-servlet.xml, myServlet.xml". If not explicitly specified, the context implementation is supposed to build a default location from the namespace of the servlet.

    Note: In case of multiple config locations, later bean definitions will override ones defined in earlier loaded files, at least when using Spring's default ApplicationContext implementation. This can be leveraged to deliberately override certain bean definitions via an extra XML file.

    The default namespace is "'servlet-name'-servlet", e.g. "test-servlet" for a servlet-name "test" (leading to a "/WEB-INF/test-servlet.xml" default location with XmlWebApplicationContext). The namespace can also be set explicitly via the "namespace" servlet init-param.



    大盤(pán)預(yù)測(cè) 國(guó)富論
    posted on 2007-08-29 10:13 華夢(mèng)行 閱讀(677) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): Spring
    主站蜘蛛池模板: 曰批全过程免费视频播放网站| 久久久久亚洲AV成人无码网站| 精品一区二区三区无码免费视频| 老司机午夜精品视频在线观看免费 | 99久久综合国产精品免费| 日韩a级无码免费视频| 国产精品亚洲小说专区| 亚洲成年人电影在线观看| 亚洲第一AAAAA片| 中文字幕久久亚洲一区 | 亚洲永久在线观看| 久久国产亚洲高清观看| 亚洲欧洲∨国产一区二区三区 | 一级做a毛片免费视频| 亚洲AV无码专区亚洲AV桃| 亚洲一级毛片免费看| 亚洲女人18毛片水真多| 亚洲∧v久久久无码精品| 国产精品亚洲片在线| 久久久久亚洲精品男人的天堂| 免费一看一级毛片全播放| 国产禁女女网站免费看| 成全高清视频免费观看| 免费H网站在线观看的| 四虎免费影院ww4164h| 亚洲第一网站免费视频| **一级一级毛片免费观看| 色欲国产麻豆一精品一AV一免费| 免费久久人人爽人人爽av| 国产在线观看xxxx免费| 久久精品成人免费观看97| 美女巨胸喷奶水视频www免费| 久久久精品国产亚洲成人满18免费网站 | 亚洲色最新高清av网站| 亚洲国产成人无码AV在线影院| 色老板亚洲视频免在线观| 亚洲人精品亚洲人成在线| 亚洲色大情网站www| 国产精品亚洲lv粉色| 深夜a级毛片免费视频| av午夜福利一片免费看久久|