Package org.kohsuke.stapler
Class UncaughtExceptionFilter
java.lang.Object
org.kohsuke.stapler.UncaughtExceptionFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,CompatibleFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanDisables the effect ofsetUncaughtExceptionHandler(jakarta.servlet.ServletContext, org.kohsuke.stapler.UncaughtExceptionHandler), letting all errors be rethrown. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse rsp, jakarta.servlet.FilterChain filterChain) static UncaughtExceptionHandlergetUncaughtExceptionHandler(jakarta.servlet.ServletContext context) voidinit(jakarta.servlet.FilterConfig filterConfig) static voidsetUncaughtExceptionHandler(jakarta.servlet.ServletContext context, UncaughtExceptionHandler handler) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kohsuke.stapler.CompatibleFilter
doFilter, init
-
Field Details
-
DISABLED
public static boolean DISABLEDDisables the effect ofsetUncaughtExceptionHandler(jakarta.servlet.ServletContext, org.kohsuke.stapler.UncaughtExceptionHandler), letting all errors be rethrown.
-
-
Constructor Details
-
UncaughtExceptionFilter
public UncaughtExceptionFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse rsp, jakarta.servlet.FilterChain filterChain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-
setUncaughtExceptionHandler
public static void setUncaughtExceptionHandler(jakarta.servlet.ServletContext context, UncaughtExceptionHandler handler) -
getUncaughtExceptionHandler
public static UncaughtExceptionHandler getUncaughtExceptionHandler(jakarta.servlet.ServletContext context)
-