Class PresignedArtifactLinksManager

    • Method Detail

      • shouldRedirect

        public boolean shouldRedirect​(@NotNull
                                      javax.servlet.http.HttpServletRequest request,
                                      @NotNull
                                      SBuild build)
      • isEnabled

        public boolean isEnabled​(@NotNull
                                 SBuild build)
      • isEnabled

        public boolean isEnabled()
      • getDomains

        @NotNull
        public List<String> getDomains()
        Description copied from interface: AdditionalCspDomains
        The additional domains. Should be a list of valid URLs
        Specified by:
        getDomains in interface AdditionalCspDomains
        Returns:
        empty list only if not isEnabled(), list of valid URL strings otherwise
      • redirectToPresignedUrl

        @NotNull
        public org.springframework.web.servlet.ModelAndView redirectToPresignedUrl​(@NotNull
                                                                                   javax.servlet.http.HttpServletRequest request,
                                                                                   javax.servlet.http.HttpServletResponse response,
                                                                                   @NotNull
                                                                                   SBuild build)
      • pathWithoutAuth

        public String pathWithoutAuth​(@NotNull
                                      javax.servlet.http.HttpServletRequest request)
      • checkAccess

        public void checkAccess​(SBuild build)
      • matchesPath

        public boolean matchesPath​(@NotNull
                                   javax.servlet.http.HttpServletRequest request)