Class BambooSpecsZipDownloadStrategy
- java.lang.Object
-
- com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
-
- com.atlassian.bamboo.plugin.servlet.BambooSpecsZipDownloadStrategy
-
- All Implemented Interfaces:
com.atlassian.plugin.servlet.DownloadStrategy
public class BambooSpecsZipDownloadStrategy extends AbstractDownloadStrategy
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
authenticationContext, bambooContentTypeResolver, bambooPermissionManager
-
-
Constructor Summary
Constructors Constructor Description BambooSpecsZipDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooContentTypeResolver bambooContentTypeResolver, BambooAuthenticationContext authenticationContext, BambooPermissionManager bambooPermissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull TitledFile
getFileToServe(RequestPath requestPath, javax.servlet.http.HttpServletRequest request)
protected String
getServletPath()
Returns the servlet path handled by this download strategy.-
Methods inherited from class com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
isCompressionEnabled, matches, serveFile, throwPermissionException
-
-
-
-
Constructor Detail
-
BambooSpecsZipDownloadStrategy
@Inject public BambooSpecsZipDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooContentTypeResolver bambooContentTypeResolver, BambooAuthenticationContext authenticationContext, BambooPermissionManager bambooPermissionManager)
-
-
Method Detail
-
getServletPath
protected String getServletPath()
Description copied from class:AbstractDownloadStrategy
Returns the servlet path handled by this download strategy. Includes the leading "/" but no trailing "/", eg. "/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, FileNotFoundException, UserNotLoggedInException
- Specified by:
getFileToServe
in classAbstractDownloadStrategy
- Returns:
- file to serve, with an optional display name if file is a directory
- Throws:
org.acegisecurity.AccessDeniedException
FileNotFoundException
UserNotLoggedInException
-
-