public abstract class AbstractArtifactDownloadStrategy extends Object implements com.atlassian.plugin.servlet.DownloadStrategy
Modifier and Type | Field and Description |
---|---|
protected BambooAuthenticationContext |
authenticationContext |
Modifier | Constructor and Description |
---|---|
protected |
AbstractArtifactDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor,
BambooContentTypeResolver bambooContentTypeResolver,
BambooAuthenticationContext authenticationContext) |
Modifier and Type | Method and Description |
---|---|
protected abstract com.atlassian.fugue.Pair<File,com.atlassian.fugue.Option<String>> |
getFileToServe(javax.servlet.http.HttpServletRequest httpServletRequest) |
protected boolean |
isCompressionEnabled() |
void |
serveFile(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected final BambooAuthenticationContext authenticationContext
protected AbstractArtifactDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooContentTypeResolver bambooContentTypeResolver, BambooAuthenticationContext authenticationContext)
public void serveFile(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws com.atlassian.plugin.servlet.DownloadException
serveFile
in interface com.atlassian.plugin.servlet.DownloadStrategy
com.atlassian.plugin.servlet.DownloadException
@NotNull protected abstract com.atlassian.fugue.Pair<File,com.atlassian.fugue.Option<String>> getFileToServe(javax.servlet.http.HttpServletRequest httpServletRequest) throws org.acegisecurity.AccessDeniedException, FileNotFoundException, UserNotLoggedInException
httpServletRequest
- org.acegisecurity.AccessDeniedException
FileNotFoundException
UserNotLoggedInException
protected boolean isCompressionEnabled()
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.