Package hudson.security
Class UnwrapSecurityExceptionFilter
java.lang.Object
hudson.security.UnwrapSecurityExceptionFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
,org.kohsuke.stapler.CompatibleFilter
public class UnwrapSecurityExceptionFilter
extends Object
implements org.kohsuke.stapler.CompatibleFilter
If a security exception caused
JellyTagException
,
rethrow it accordingly so that ExceptionTranslationFilter
can pick it up and initiate the redirection.- Author:
- Kohsuke Kawaguchi
-
Constructor Details
-
UnwrapSecurityExceptionFilter
public UnwrapSecurityExceptionFilter()
-
-
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 request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) 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
-