Class RepositoryUtil
- java.lang.Object
-
- jetbrains.buildServer.controllers.artifacts.RepositoryUtil
-
public class RepositoryUtil extends Object
- Since:
- 7.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description RepositoryUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
archiveExists(BuildArtifact artifact, String relativePaths)
static void
logArtifactDownload(javax.servlet.http.HttpServletRequest request, DownloadedArtifactsLogger artifactsLogger, Build sourceBuild, String artifactPath)
static boolean
needRedirect(javax.servlet.http.HttpServletRequest request)
static org.springframework.web.servlet.ModelAndView
processDownloadFromArchive(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, BuildArtifact artifact, String archivePath, String relativePaths, Logger LOG)
static org.springframework.web.servlet.ModelAndView
redirectedView(javax.servlet.http.HttpServletRequest request, Build build)
-
-
-
Method Detail
-
logArtifactDownload
public static void logArtifactDownload(javax.servlet.http.HttpServletRequest request, DownloadedArtifactsLogger artifactsLogger, Build sourceBuild, String artifactPath)
-
processDownloadFromArchive
public static org.springframework.web.servlet.ModelAndView processDownloadFromArchive(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response, @NotNull BuildArtifact artifact, @NotNull String archivePath, @NotNull String relativePaths, @NotNull Logger LOG) throws IOException
- Throws:
IOException
-
archiveExists
public static boolean archiveExists(@NotNull BuildArtifact artifact, @NotNull String relativePaths) throws IOException
- Throws:
IOException
-
needRedirect
public static boolean needRedirect(javax.servlet.http.HttpServletRequest request)
-
redirectedView
public static org.springframework.web.servlet.ModelAndView redirectedView(javax.servlet.http.HttpServletRequest request, Build build)
-
-