当前页面:
在线文档首页 >
JBoss Seam 1.2.1 API 英文版文档
ExceptionFilter (JBoss Seam API Documentation) - JBoss Seam 1.2.1 API 英文版文档
org.jboss.seam.web
Class ExceptionFilter
java.lang.Object
org.jboss.seam.web.AbstractFilter
org.jboss.seam.web.ExceptionFilter
- All Implemented Interfaces:
- javax.servlet.Filter
- Direct Known Subclasses:
- SeamExceptionFilter, SeamExceptionFilter
@Startup
@Scope(value=APPLICATION)
@Name(value="org.jboss.seam.servlet.exceptionFilter")
@Install(precedence=0)
@Intercept(value=NEVER)
public class ExceptionFilter
- extends AbstractFilter
As a last line of defence, rollback uncommitted transactions
at the very end of the request.
- Author:
- Gavin King
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionFilter
public ExceptionFilter()
doFilter
public void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
endWebRequestAfterException
protected void endWebRequestAfterException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception e)
throws javax.servlet.ServletException,
IOException
- Throws:
javax.servlet.ServletException
IOException
rollbackTransactionIfNecessary
protected void rollbackTransactionIfNecessary()