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
ConstructorsConstructorDescriptionDeploymentDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooContentTypeResolver bambooContentTypeResolver, BambooPermissionManager bambooPermissionManager, BambooAuthenticationContext authenticationContext, CachedEnvironmentService environmentService) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull TitledFilegetFileToServe(RequestPath requestPath, jakarta.servlet.http.HttpServletRequest request) protected StringReturns 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, CachedEnvironmentService environmentService)
-
-
Method Details
-
getServletPath
Description copied from class:AbstractDownloadStrategyReturns the servlet path handled by this download strategy. Includes the leading "/" but no trailing "/", e.g. "/download" or "/artifact".- Specified by:
getServletPathin classAbstractDownloadStrategy
-
getFileToServe
@NotNull protected @NotNull TitledFile getFileToServe(RequestPath requestPath, jakarta.servlet.http.HttpServletRequest request) throws org.acegisecurity.AccessDeniedException, UserNotLoggedInException, FileNotFoundException - Specified by:
getFileToServein classAbstractDownloadStrategy- Returns:
- file to serve, with an optional display name if file is a directory
- Throws:
org.acegisecurity.AccessDeniedExceptionUserNotLoggedInExceptionFileNotFoundException
-