| org.springframework.web.servlet.view.tiles.ComponentControllerSupport
ComponentControllerSupport | abstract public class ComponentControllerSupport extends ControllerSupport (Code) | | 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.
Derives from Tiles' ControllerSupport class rather than
implementing Tiles' Controller interface to be compatible with
Struts 1.1 and 1.2. Implements both Struts 1.1's perform
and Struts 1.2's execute method accordingly.
author: Juergen Hoeller author: Alef Arendsen since: 22.08.2003 See Also: org.springframework.web.context.support.WebApplicationObjectSupport |
Method Summary | |
abstract protected void | doPerform(ComponentContext componentContext, HttpServletRequest request, HttpServletResponse response) Perform the preparation for the component, allowing for any Exception to be thrown. | final public void | execute(ComponentContext componentContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) This implementation delegates to doPerform ,
lazy-initializing the application context reference if necessary. | final protected ApplicationContext | getApplicationContext() Return the current Spring ApplicationContext. | final protected MessageSourceAccessor | getMessageSourceAccessor() Return a MessageSourceAccessor for the application context
used by this object, for easy message access. | final protected ServletContext | getServletContext() Return the current ServletContext. | final protected File | getTempDir() Return the temporary directory for the current web application,
as provided by the servlet container. | final protected WebApplicationContext | getWebApplicationContext() Return the current Spring WebApplicationContext. | protected void | initApplicationContext() Subclasses can override this for custom initialization behavior. | final public void | perform(ComponentContext componentContext, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) This implementation delegates to execute ,
converting non-Servlet/IO Exceptions to ServletException. |
getApplicationContext | final protected ApplicationContext getApplicationContext()(Code) | | Return the current Spring ApplicationContext.
|
getMessageSourceAccessor | final protected MessageSourceAccessor getMessageSourceAccessor()(Code) | | Return a MessageSourceAccessor for the application context
used by this object, for easy message access.
|
getServletContext | final protected ServletContext getServletContext()(Code) | | Return the current ServletContext.
|
getTempDir | final protected File getTempDir()(Code) | | Return the temporary directory for the current web application,
as provided by the servlet container.
the File representing the temporary directory |
getWebApplicationContext | final protected WebApplicationContext getWebApplicationContext()(Code) | | Return the current Spring WebApplicationContext.
|
|
|