Class SpecLogsDownloadStrategy
- java.lang.Object
-
- com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
-
- com.atlassian.bamboo.plugin.servlet.SpecLogsDownloadStrategy
-
- All Implemented Interfaces:
com.atlassian.plugin.servlet.DownloadStrategy
public class SpecLogsDownloadStrategy extends AbstractDownloadStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVLET_PATH
-
Fields inherited from class com.atlassian.bamboo.plugin.servlet.AbstractDownloadStrategy
authenticationContext, bambooContentTypeResolver, bambooPermissionManager, log
-
-
Constructor Summary
Constructors Constructor Description SpecLogsDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooContentTypeResolver bambooContentTypeResolver, BambooPermissionManager bambooPermissionManager, BambooAuthenticationContext authenticationContext, com.atlassian.event.api.EventPublisher eventPublisher, RepositoryStoredSpecsLogService repositoryStoredSpecLogService, RepositoryDefinitionManager repositoryDefinitionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull TitledFile
getFileToServe(@NotNull 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
-
-
-
-
Field Detail
-
SERVLET_PATH
public static final String SERVLET_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SpecLogsDownloadStrategy
@Inject public SpecLogsDownloadStrategy(AdministrationConfigurationAccessor administrationConfigurationAccessor, BambooContentTypeResolver bambooContentTypeResolver, BambooPermissionManager bambooPermissionManager, BambooAuthenticationContext authenticationContext, com.atlassian.event.api.EventPublisher eventPublisher, RepositoryStoredSpecsLogService repositoryStoredSpecLogService, RepositoryDefinitionManager repositoryDefinitionManager)
-
-
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(@NotNull @NotNull RequestPath requestPath, javax.servlet.http.HttpServletRequest request) throws org.acegisecurity.AccessDeniedException, UserNotLoggedInException, FileNotFoundException, WebValidationException
- Specified by:
getFileToServe
in classAbstractDownloadStrategy
- Returns:
- file to serve, with an optional display name if file is a directory
- Throws:
org.acegisecurity.AccessDeniedException
UserNotLoggedInException
FileNotFoundException
WebValidationException
-
-