Package jenkins.security
Class ResourceDomainFilter
java.lang.Object
jenkins.security.ResourceDomainFilter
- All Implemented Interfaces:
ExtensionPoint
,HttpServletFilter
@Extension
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class ResourceDomainFilter
extends Object
implements HttpServletFilter
Prohibit requests to Jenkins coming through a resource domain URL configured with
ResourceDomainConfiguration
, except anything going to ResourceDomainRootAction
.- Since:
- 2.200
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handle
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) Potentially intercepts or otherwise modifies an HTTP request.
-
Field Details
-
ERROR_RESPONSE
- See Also:
-
-
Constructor Details
-
ResourceDomainFilter
public ResourceDomainFilter()
-
-
Method Details
-
handle
public boolean handle(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException, jakarta.servlet.ServletException Description copied from interface:HttpServletFilter
Potentially intercepts or otherwise modifies an HTTP request.- Specified by:
handle
in interfaceHttpServletFilter
- Parameters:
req
- as inFilter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
rsp
- as inFilter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
- Returns:
- true if this request was handled; false to proceed with other handlers (
FilterChain
) - Throws:
IOException
- as inFilter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
jakarta.servlet.ServletException
- as inFilter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
-