1 28 29 package com.caucho.server.dispatch; 30 31 import javax.servlet.FilterChain ; 32 import javax.servlet.ServletException ; 33 import javax.servlet.ServletRequest ; 34 import javax.servlet.ServletResponse ; 35 import java.io.IOException ; 36 37 40 public class ExceptionFilterChain implements FilterChain { 41 private ServletException _exception; 43 44 49 public ExceptionFilterChain(Throwable exn) 50 { 51 if (exn instanceof ServletException ) 52 _exception = (ServletException ) exn; 53 else 54 _exception = new ServletException (exn); 55 } 56 57 63 public void doFilter(ServletRequest request, 64 ServletResponse response) 65 throws ServletException , IOException 66 { 67 throw _exception; 68 } 69 } 70 | Popular Tags |