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 boolean
Disables the effect ofsetUncaughtExceptionHandler(jakarta.servlet.ServletContext, org.kohsuke.stapler.UncaughtExceptionHandler)
, letting all errors be rethrown. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse rsp, jakarta.servlet.FilterChain filterChain) static UncaughtExceptionHandler
getUncaughtExceptionHandler
(jakarta.servlet.ServletContext context) void
init
(jakarta.servlet.FilterConfig filterConfig) static void
setUncaughtExceptionHandler
(jakarta.servlet.ServletContext context, UncaughtExceptionHandler handler) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
init
in 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:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Filter
-
setUncaughtExceptionHandler
public static void setUncaughtExceptionHandler(jakarta.servlet.ServletContext context, UncaughtExceptionHandler handler) -
getUncaughtExceptionHandler
public static UncaughtExceptionHandler getUncaughtExceptionHandler(jakarta.servlet.ServletContext context)
-