Class ArtifactExplorerFilter
java.lang.Object
io.jenkins.plugins.artifactexplorer.ArtifactExplorerFilter
- All Implemented Interfaces:
ExtensionPoint,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).
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp)
-
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:
handlein interfaceHttpServletFilter- Throws:
IOExceptionjakarta.servlet.ServletException
-