com.atlassian.bamboo.plugin.servlet
Class EnvironmentArtifactDownloadStrategy
java.lang.Object
com.atlassian.bamboo.plugin.servlet.AbstractArtifactDownloadStrategy
com.atlassian.bamboo.plugin.servlet.EnvironmentArtifactDownloadStrategy
- All Implemented Interfaces:
- com.atlassian.plugin.servlet.DownloadStrategy
public class EnvironmentArtifactDownloadStrategy
- extends AbstractArtifactDownloadStrategy
Method Summary |
protected com.atlassian.fugue.Pair<File,com.atlassian.fugue.Option<String>> |
getFileToServe(javax.servlet.http.HttpServletRequest httpServletRequest)
|
boolean |
matches(String requestUri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVLET_PATH_DOWNLOAD
public static final String SERVLET_PATH_DOWNLOAD
- See Also:
- Constant Field Values
EnvironmentArtifactDownloadStrategy
public EnvironmentArtifactDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor,
BambooContentTypeResolver bambooContentTypeResolver,
BambooPermissionManager bambooPermissionManager,
BambooAuthenticationContext authenticationContext,
EnvironmentService environmentService)
matches
public boolean matches(String requestUri)
getFileToServe
@NotNull
protected com.atlassian.fugue.Pair<File,com.atlassian.fugue.Option<String>> getFileToServe(javax.servlet.http.HttpServletRequest httpServletRequest)
throws org.acegisecurity.AccessDeniedException,
UserNotLoggedInException,
FileNotFoundException
- Specified by:
getFileToServe
in class AbstractArtifactDownloadStrategy
- Returns:
- pair of file to served and optional display name if file is a directory
- Throws:
org.acegisecurity.AccessDeniedException
FileNotFoundException
UserNotLoggedInException
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.