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
 
Fields inherited from class com.atlassian.confluence.servlet.download.AttachmentDownload
attachmentManager, contentEntityObjectDao, eventManager, permissionManager, userAccessor
 
Constructor Summary
ThumbnailDownload()
           
 
Method Summary
protected  InputStream getAttachmentStream(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, Attachment attachment)
           
protected  Date getLastModificationDate(Attachment attachment)
           
protected  String getUrlPrefix()
           
protected  void setHeadersForAttachment(Attachment attachment, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
           
 void setThumbnailManager(ThumbnailManager thumbnailManager)
           
 
Methods inherited from class com.atlassian.confluence.servlet.download.AttachmentDownload
extractAttachmentFileName, extractObjectId, extractVersion, generateAttachmentDownloadEvent, getAttachment, getEntity, getStreamForDownload, getUserAccessor, hasUserPrivilegeForDownload, matches, setAttachmentManager, setContentEntityObjectDao, setEventManager, setFileNameHeader, setPermissionManager, setUserAccessor
 
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
 

Constructor Detail

ThumbnailDownload

public ThumbnailDownload()
Method Detail

getAttachmentStream

protected InputStream getAttachmentStream(javax.servlet.http.HttpServletRequest httpServletRequest,
                                          javax.servlet.http.HttpServletResponse httpServletResponse,
                                          Attachment attachment)
                                   throws IOException
Overrides:
getAttachmentStream in class AttachmentDownload
Throws:
IOException

setThumbnailManager

public void setThumbnailManager(ThumbnailManager thumbnailManager)

getLastModificationDate

protected Date getLastModificationDate(Attachment attachment)
Overrides:
getLastModificationDate in class AttachmentDownload

setHeadersForAttachment

protected void setHeadersForAttachment(Attachment attachment,
                                       javax.servlet.http.HttpServletRequest httpServletRequest,
                                       javax.servlet.http.HttpServletResponse httpServletResponse)
Overrides:
setHeadersForAttachment in class AttachmentDownload

getUrlPrefix

protected String getUrlPrefix()
Overrides:
getUrlPrefix in class AttachmentDownload


Confluence is developed by Atlassian.