com.atlassian.bamboo.plugin.servlet
Class GlobalArtifactDownloadStrategy

java.lang.Object
  extended by com.atlassian.bamboo.plugin.servlet.AbstractArtifactDownloadStrategy
      extended by com.atlassian.bamboo.plugin.servlet.GlobalArtifactDownloadStrategy
All Implemented Interfaces:
com.atlassian.plugin.servlet.DownloadStrategy

public class GlobalArtifactDownloadStrategy
extends AbstractArtifactDownloadStrategy


Field Summary
static java.lang.String GLOBAL_ARTIFACT_PREFIX
           
 
Constructor Summary
GlobalArtifactDownloadStrategy(BambooPermissionManager bambooPermissionManager, ArtifactPermissionService artifactPermissionService, BambooContentTypeResolver bambooContentTypeResolver)
           
 
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 com.atlassian.bamboo.plugin.servlet.AbstractArtifactDownloadStrategy
isCompressionEnabled, serveFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLOBAL_ARTIFACT_PREFIX

public static final java.lang.String GLOBAL_ARTIFACT_PREFIX
See Also:
Constant Field Values
Constructor Detail

GlobalArtifactDownloadStrategy

public GlobalArtifactDownloadStrategy(BambooPermissionManager bambooPermissionManager,
                                      ArtifactPermissionService artifactPermissionService,
                                      BambooContentTypeResolver bambooContentTypeResolver)
Method Detail

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
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

matches

public boolean matches(java.lang.String requestUri)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.