Class ThumbnailDownload
- java.lang.Object
-
- com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
-
- com.atlassian.confluence.servlet.download.AttachmentDownload
-
- com.atlassian.confluence.servlet.download.ThumbnailDownload
-
- All Implemented Interfaces:
com.atlassian.plugin.servlet.DownloadStrategy
public class ThumbnailDownload extends AttachmentDownload
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
ServeAfterTransactionDownload.StreamResultCallback
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.servlet.download.AttachmentDownload
JWT_REQUEST_USERNAME
-
-
Constructor Summary
Constructors Constructor Description ThumbnailDownload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<String>
getStreamingAnalyticsEventName()
protected String
getUrlPrefix()
protected void
publishEvents(Attachment attachment, boolean download)
protected void
setHeadersForAttachment(InputStream contents, String name, long contentLength, String contentType, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
-
Methods inherited from class com.atlassian.confluence.servlet.download.AttachmentDownload
getEventPublisher, getStreamForDownload, matches, setAttachmentSafeContentHeaderGuesser, setAttachmentUrlParser, setDownloadResourceManager, setEventPublisher, setTokenGenerator, streamResponse
-
Methods inherited from class com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
getDecodedPathInfo, getStreamResultCallback, serveFile, setTransactionManager
-
-
-
-
Method Detail
-
setHeadersForAttachment
protected void setHeadersForAttachment(InputStream contents, String name, long contentLength, String contentType, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
- Overrides:
setHeadersForAttachment
in classAttachmentDownload
-
getUrlPrefix
protected String getUrlPrefix()
- Overrides:
getUrlPrefix
in classAttachmentDownload
-
publishEvents
protected void publishEvents(Attachment attachment, boolean download)
- Overrides:
publishEvents
in classAttachmentDownload
-
getStreamingAnalyticsEventName
protected Optional<String> getStreamingAnalyticsEventName()
- Overrides:
getStreamingAnalyticsEventName
in classAttachmentDownload
-
-