| javax.servlet.http.HttpServlet org.springframework.web.servlet.HttpServletBean
All known Subclasses: org.springframework.web.servlet.ResourceServlet, org.springframework.web.servlet.FrameworkServlet,
Field Summary | |
final protected Log | logger |
Method Summary | |
final protected void | addRequiredProperty(String property) Subclasses can invoke this method to specify that this property
(which must match a JavaBean property they expose) is mandatory,
and must be supplied as a config parameter. | final public ServletContext | getServletContext() Overridden method that simply returns null when no
ServletConfig set yet. | final public String | getServletName() Overridden method that simply returns null when no
ServletConfig set yet. | final public void | init() Map config parameters onto bean properties of this servlet, and
invoke subclass initialization. | protected void | initBeanWrapper(BeanWrapper bw) Initialize the BeanWrapper for this HttpServletBean,
possibly with custom editors. | protected void | initServletBean() Subclasses may override this to perform custom initialization. |
logger | final protected Log logger(Code) | | Logger available to subclasses
|
addRequiredProperty | final protected void addRequiredProperty(String property)(Code) | | Subclasses can invoke this method to specify that this property
(which must match a JavaBean property they expose) is mandatory,
and must be supplied as a config parameter. This should be called
from the constructor of a subclass.
This method is only relevant in case of traditional initialization
driven by a ServletConfig instance.
Parameters: property - name of the required property |
init | final public void init() throws ServletException(Code) | | Map config parameters onto bean properties of this servlet, and
invoke subclass initialization.
throws: ServletException - if bean properties are invalid (or requiredproperties are missing), or if subclass initialization fails. |
initServletBean | protected void initServletBean() throws ServletException(Code) | | Subclasses may override this to perform custom initialization.
All bean properties of this servlet will have been set before this
method is invoked.
This default implementation is empty.
throws: ServletException - if subclass initialization fails |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|