站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

HttpRequestHandlerServlet (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

org.springframework.web.context.support
Class HttpRequestHandlerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.springframework.web.context.support.HttpRequestHandlerServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class HttpRequestHandlerServlet
extends HttpServlet

Simple HttpServlet that delegates to an HttpRequestHandler bean defined in Spring's root web application context. The bean name must match the HttpRequestHandlerServlet servlet-name as defined in web.xml.

This can for example be used to expose a single Spring remote exporter, such as HttpInvokerServiceExporter and HessianServiceExporter, per HttpRequestHandlerServlet definition. This is an alternative to defining remote exporters as beans in a DispatcherServlet context, leveraging the advanced mapping and interception facilities there.

Since:
2.0
Author:
Juergen Hoeller
See Also:
HttpRequestHandler, DispatcherServlet, Serialized Form

Constructor Summary
HttpRequestHandlerServlet()
           
 
Method Summary
 void init()
           
protected  void service(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequestHandlerServlet

public HttpRequestHandlerServlet()
Method Detail

init

public void init()
          throws ServletException
Overrides:
init in class GenericServlet
Throws:
ServletException

service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
                throws ServletException,
                       IOException
Overrides:
service in class HttpServlet
Throws:
ServletException
IOException

The Spring Framework

Copyright © 2002-2007 The Spring Framework.