Class DeploymentDownloadStrategy
java.lang.Object
com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
com.atlassian.bamboo.plugin.servlet.DeploymentDownloadStrategy
- All Implemented Interfaces:
com.atlassian.plugin.servlet.DownloadStrategy
-
Field Summary
Fields inherited from class com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
authenticationContext, bambooContentTypeResolver, bambooPermissionManager
-
Constructor Summary
ConstructorDescriptionDeploymentDownloadStrategy
(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooContentTypeResolver bambooContentTypeResolver, BambooPermissionManager bambooPermissionManager, BambooAuthenticationContext authenticationContext, EnvironmentService environmentService) -
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
-
Constructor Details
-
DeploymentDownloadStrategy
public DeploymentDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooContentTypeResolver bambooContentTypeResolver, BambooPermissionManager bambooPermissionManager, BambooAuthenticationContext authenticationContext, EnvironmentService environmentService)
-
-
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, FileNotFoundException - Specified by:
getFileToServe
in classAbstractDownloadStrategy
- Returns:
- file to serve, with an optional display name if file is a directory
- Throws:
org.acegisecurity.AccessDeniedException
UserNotLoggedInException
FileNotFoundException
-