com.atlassian.confluence.servlet.download
Class ThumbnailDownload

java.lang.Object
  extended by com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
      extended by com.atlassian.confluence.servlet.download.AttachmentDownload
          extended by com.atlassian.confluence.servlet.download.ThumbnailDownload
All Implemented Interfaces:
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
static String THUMBNAIL_MIME_TYPE
          Deprecated. since 3.5. Use Thumbnail.MimeType#PNG toString() instead, as we use PNG now thumbnails.
 
Constructor Summary
ThumbnailDownload()
           
 
Method Summary
protected  void getEventToPublish(Attachment attachment)
           
protected  String getUrlPrefix()
           
 void setEventPublisher(EventPublisher eventPublisher)
           
protected  void setHeadersForAttachment(String name, long contentLength, String contentType, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
           
 
Methods inherited from class com.atlassian.confluence.servlet.download.AttachmentDownload
getStreamForDownload, matches, setAttachmentUrlParser, setContentDispositionHeader, setDownloadResourceManager, setMimeTypeTranslator
 
Methods inherited from class com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload
getDecodedPathInfo, getStreamResultCallback, serveFile, setTransactionManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THUMBNAIL_MIME_TYPE

@Deprecated
public static final String THUMBNAIL_MIME_TYPE
Deprecated. since 3.5. Use Thumbnail.MimeType#PNG toString() instead, as we use PNG now thumbnails.
See Also:
Constant Field Values
Constructor Detail

ThumbnailDownload

public ThumbnailDownload()
Method Detail

setEventPublisher

public void setEventPublisher(EventPublisher eventPublisher)
Overrides:
setEventPublisher in class AttachmentDownload

setHeadersForAttachment

protected void setHeadersForAttachment(String name,
                                       long contentLength,
                                       String contentType,
                                       HttpServletRequest httpServletRequest,
                                       HttpServletResponse httpServletResponse)
Overrides:
setHeadersForAttachment in class AttachmentDownload

getUrlPrefix

protected String getUrlPrefix()
Overrides:
getUrlPrefix in class AttachmentDownload

getEventToPublish

protected void getEventToPublish(Attachment attachment)
Overrides:
getEventToPublish in class AttachmentDownload


Confluence is developed by Atlassian.