public class TransactionHandlerInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
For KRAD, this interceptor should be listed first
(before UifControllerHandlerInterceptor
)
Jta
Constructor and Description |
---|
TransactionHandlerInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
Exception ex) |
protected void |
completeTransaction(Exception ex)
Completes the request transaction if needed.
|
void |
postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView) |
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
public TransactionHandlerInterceptor()
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception
preHandle
in interface org.springframework.web.servlet.HandlerInterceptor
Exception
public void postHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndView) throws Exception
postHandle
in interface org.springframework.web.servlet.HandlerInterceptor
Exception
public void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception ex) throws Exception
afterCompletion
in interface org.springframework.web.servlet.HandlerInterceptor
Exception
protected void completeTransaction(Exception ex)
ex
- any exception that might have been thrown, will cause a rollbackCopyright © 2005–2016 The Kuali Foundation. All rights reserved.