Class RepositoryUtil


  • public class RepositoryUtil
    extends Object
    Since:
    7.0
    Author:
    Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
    • Constructor Detail

      • RepositoryUtil

        public RepositoryUtil()
    • 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
      • 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)