Class ResourceDomainFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public class ResourceDomainFilter
    extends Object
    implements javax.servlet.Filter
    Prohibit requests to Jenkins coming through a resource domain URL configured with ResourceDomainConfiguration, except anything going to ResourceDomainRootAction.
    Since:
    2.200
    • Constructor Detail

      • ResourceDomainFilter

        public ResourceDomainFilter()
    • Method Detail

      • doFilter

        public void doFilter​(javax.servlet.ServletRequest servletRequest,
                             javax.servlet.ServletResponse servletResponse,
                             javax.servlet.FilterChain filterChain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter