Class GlobalArtifactDownloadStrategy
java.lang.Object
com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
com.atlassian.bamboo.plugin.servlet.GlobalArtifactDownloadStrategy
- All Implemented Interfaces:
com.atlassian.plugin.servlet.DownloadStrategy
-
Field Summary
Fields inherited from class com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
authenticationContext, bambooContentTypeResolver, bambooPermissionManager, log
-
Constructor Summary
ConstructorDescriptionGlobalArtifactDownloadStrategy
(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, BambooAuthenticationContext authenticationContext, ArtifactPermissionService artifactPermissionService, BambooContentTypeResolver bambooContentTypeResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull TitledFile
getFileToServe
(RequestPath requestPath, javax.servlet.http.HttpServletRequest request) protected String
Returns the servlet path handled by this download strategy.Methods inherited from class com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
generateETag, isByteRangeRequest, isCompressionEnabled, matches, processRangeHeader, serveFile, serveOrdinaryFile, throwPermissionException
-
Field Details
-
SERVLET_PATH
- See Also:
-
-
Constructor Details
-
GlobalArtifactDownloadStrategy
public GlobalArtifactDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooPermissionManager bambooPermissionManager, BambooAuthenticationContext authenticationContext, ArtifactPermissionService artifactPermissionService, BambooContentTypeResolver bambooContentTypeResolver)
-
-
Method Details
-
getServletPath
Description copied from class:AbstractDownloadStrategy
Returns the servlet path handled by this download strategy. Includes the leading "/" but no trailing "/", e.g. "/download" or "/artifact".- Specified by:
getServletPath
in classAbstractDownloadStrategy
-
getFileToServe
@NotNull protected @NotNull TitledFile getFileToServe(RequestPath requestPath, javax.servlet.http.HttpServletRequest request) throws org.acegisecurity.AccessDeniedException, UserNotLoggedInException - Specified by:
getFileToServe
in classAbstractDownloadStrategy
- Returns:
- file to serve, with an optional display name if file is a directory
- Throws:
org.acegisecurity.AccessDeniedException
UserNotLoggedInException
-