net.sf.springlayout.web.controller
Class AbstractBaseController
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.mvc.AbstractController
net.sf.springlayout.web.controller.AbstractBaseController
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.mvc.Controller
public abstract class AbstractBaseController
- extends org.springframework.web.servlet.mvc.AbstractController
- implements org.springframework.beans.factory.InitializingBean
Base controller for non form based controllers.
- Author:
- Rob Monie
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator |
HEADER_CACHE_CONTROL, HEADER_EXPIRES, HEADER_PRAGMA, METHOD_GET, METHOD_HEAD, METHOD_POST |
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
Method Summary |
void |
afterPropertiesSet()
|
protected java.lang.String |
getMessage(java.lang.String code,
javax.servlet.http.HttpServletRequest request)
Gets a message from the resource bundle based on the current locale and key passed. |
protected java.lang.String |
getMessage(java.lang.String code,
java.lang.Object[] args,
javax.servlet.http.HttpServletRequest request)
Gets a message from the resource bundle based on the current locale and key / arguments passed. |
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController |
handleRequest, handleRequestInternal, isSynchronizeOnSession, setSynchronizeOnSession |
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator |
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader |
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, isContextRequired |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
AbstractBaseController
public AbstractBaseController()
getMessage
protected java.lang.String getMessage(java.lang.String code,
java.lang.Object[] args,
javax.servlet.http.HttpServletRequest request)
throws org.springframework.context.NoSuchMessageException
- Gets a message from the resource bundle based on the current locale and key / arguments passed.
- Parameters:
code
- the key to the messageargs
- arguments to be parsed with the messagerequest
- current request
- Returns:
- a localised message
- Throws:
org.springframework.context.NoSuchMessageException
getMessage
protected java.lang.String getMessage(java.lang.String code,
javax.servlet.http.HttpServletRequest request)
throws org.springframework.context.NoSuchMessageException
- Gets a message from the resource bundle based on the current locale and key passed.
- Parameters:
code
- the key to the messagerequest
- current request
- Returns:
- a localised message
- Throws:
org.springframework.context.NoSuchMessageException
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.