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
  • Field Details

  • 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 interface HttpServletFilter
      Parameters:
      req - as in Filter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
      rsp - as in Filter.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 in Filter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
      jakarta.servlet.ServletException - as in Filter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)