org.springframework.datastore.web.support
Class OpenSessionInViewInterceptor
java.lang.Object
org.springframework.datastore.web.support.OpenSessionInViewInterceptor
- All Implemented Interfaces:
- org.springframework.web.context.request.WebRequestInterceptor
public class OpenSessionInViewInterceptor
- extends Object
- implements org.springframework.web.context.request.WebRequestInterceptor
A WebRequestInterceptor
instance that
handles opening a Datastore session within the scope of a request
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenSessionInViewInterceptor
public OpenSessionInViewInterceptor()
setDatastore
public void setDatastore(Datastore datastore)
getDatastore
public Datastore getDatastore()
preHandle
public void preHandle(org.springframework.web.context.request.WebRequest webRequest)
throws Exception
- Specified by:
preHandle
in interface org.springframework.web.context.request.WebRequestInterceptor
- Throws:
Exception
postHandle
public void postHandle(org.springframework.web.context.request.WebRequest webRequest,
org.springframework.ui.ModelMap modelMap)
throws Exception
- Specified by:
postHandle
in interface org.springframework.web.context.request.WebRequestInterceptor
- Throws:
Exception
afterCompletion
public void afterCompletion(org.springframework.web.context.request.WebRequest webRequest,
Exception e)
throws Exception
- Specified by:
afterCompletion
in interface org.springframework.web.context.request.WebRequestInterceptor
- Throws:
Exception