com.atlassian.bamboo.plugin.servlet
Class ArtifactDownloadStrategy
java.lang.Object
com.atlassian.bamboo.plugin.servlet.AbstractArtifactDownloadStrategy
com.atlassian.bamboo.plugin.servlet.ArtifactDownloadStrategy
- All Implemented Interfaces:
- com.atlassian.plugin.servlet.DownloadStrategy
public class ArtifactDownloadStrategy
- extends AbstractArtifactDownloadStrategy
Download strategy that matches any url starting with /download/. Used for downloading Bamboo's artifacts and logs.
Method Summary |
protected com.atlassian.fugue.Pair<java.io.File,com.atlassian.fugue.Option<java.lang.String>> |
getFileToServe(javax.servlet.http.HttpServletRequest httpServletRequest)
|
boolean |
matches(java.lang.String requestUri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVLET_PATH_ARTIFACT
public static final java.lang.String SERVLET_PATH_ARTIFACT
- See Also:
- Constant Field Values
SERVLET_PATH_DOWNLOAD
public static final java.lang.String SERVLET_PATH_DOWNLOAD
- See Also:
- Constant Field Values
ArtifactDownloadStrategy
public ArtifactDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor,
BambooPermissionManager bambooPermissionManager,
BambooAuthenticationContext bambooAuthenticationContext,
BambooContentTypeResolver bambooContentTypeResolver)
matches
public boolean matches(java.lang.String requestUri)
getFileToServe
@NotNull
protected com.atlassian.fugue.Pair<java.io.File,com.atlassian.fugue.Option<java.lang.String>> getFileToServe(javax.servlet.http.HttpServletRequest httpServletRequest)
throws org.acegisecurity.AccessDeniedException,
java.io.FileNotFoundException,
UserNotLoggedInException
- 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
java.io.FileNotFoundException
UserNotLoggedInException
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.