org.shept.org.springframework.web.servlet.mvc.formcache
Class LastModifiedSessionFormCache

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.shept.org.springframework.web.servlet.mvc.formcache.SimpleSessionFormCache
              extended by org.shept.org.springframework.web.servlet.mvc.formcache.LastModifiedSessionFormCache
All Implemented Interfaces:
SessionFormCache, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

public class LastModifiedSessionFormCache
extends SimpleSessionFormCache

Version:
$$Id: LastModifiedSessionFormCache.java 44 2010-09-30 14:32:31Z aha $$
Author:
Andi

Nested Class Summary
 class LastModifiedSessionFormCache.WrappedObject
           
 
Field Summary
 
Fields inherited from class org.shept.org.springframework.web.servlet.mvc.formcache.SimpleSessionFormCache
MAX_CACHE_SIZE, SESSION_FORM_CACHE_ATTIRBUTE
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
LastModifiedSessionFormCache()
           
 
Method Summary
protected  String calculateChecksum(Object object)
           
 Object getForm(javax.servlet.http.HttpServletRequest request, String formAttrName)
           
 long getLastModified(javax.servlet.http.HttpServletRequest request, String formAttrName)
           
 void saveForm(javax.servlet.http.HttpServletRequest request, String formAttrName, Object command)
           
 
Methods inherited from class org.shept.org.springframework.web.servlet.mvc.formcache.SimpleSessionFormCache
clearCache, clearForm, clearOtherForms, getFormCache, getMaxCacheSize, setMaxCacheSize
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
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
 

Constructor Detail

LastModifiedSessionFormCache

public LastModifiedSessionFormCache()
Method Detail

saveForm

public void saveForm(javax.servlet.http.HttpServletRequest request,
                     String formAttrName,
                     Object command)
Specified by:
saveForm in interface SessionFormCache
Overrides:
saveForm in class SimpleSessionFormCache

getForm

public Object getForm(javax.servlet.http.HttpServletRequest request,
                      String formAttrName)
Specified by:
getForm in interface SessionFormCache
Overrides:
getForm in class SimpleSessionFormCache

getLastModified

public long getLastModified(javax.servlet.http.HttpServletRequest request,
                            String formAttrName)
Specified by:
getLastModified in interface SessionFormCache
Overrides:
getLastModified in class SimpleSessionFormCache

calculateChecksum

protected String calculateChecksum(Object object)


Copyright © 2011. All Rights Reserved.