Class ArtifactExplorerFilter

java.lang.Object
io.jenkins.plugins.artifactexplorer.ArtifactExplorerFilter
All Implemented Interfaces:
ExtensionPoint, HttpServletFilter

@Extension public class ArtifactExplorerFilter extends Object implements HttpServletFilter
Makes the classic <build>/artifact/<dir>/ and /userContent/<dir>/ URLs show the explorer instead of the built-in directory listing.

Only directory page loads from a browser are taken over. File downloads, *zip*, *view*, *fingerprint* and any request with ?legacy=1 fall through to core's DirectoryBrowserSupport, which keeps serving the actual bytes (with its CSP and symlink handling).

  • Constructor Details

    • ArtifactExplorerFilter

      public ArtifactExplorerFilter()
  • Method Details

    • handle

      public boolean handle(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException, jakarta.servlet.ServletException
      Specified by:
      handle in interface HttpServletFilter
      Throws:
      IOException
      jakarta.servlet.ServletException