Class AbstractTransformedDownloadableResource

java.lang.Object
com.atlassian.plugin.webresource.transformer.AbstractTransformedDownloadableResource
All Implemented Interfaces:
com.atlassian.plugin.servlet.DownloadableResource
Direct Known Subclasses:
CharSequenceDownloadableResource

public abstract class AbstractTransformedDownloadableResource extends Object implements com.atlassian.plugin.servlet.DownloadableResource
Abstract class for implementing downloadable resources that are wrapping an underlying resource. Subclasses are expected to implement DownloadableResource.streamResource(OutputStream), while the other methods are delegated by default.
Since:
2.5.0
  • Constructor Details

    • AbstractTransformedDownloadableResource

      public AbstractTransformedDownloadableResource(com.atlassian.plugin.servlet.DownloadableResource originalResource)
  • Method Details

    • isResourceModified

      public boolean isResourceModified(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
      Specified by:
      isResourceModified in interface com.atlassian.plugin.servlet.DownloadableResource
    • serveResource

      public void serveResource(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse response) throws com.atlassian.plugin.servlet.DownloadException
      Specified by:
      serveResource in interface com.atlassian.plugin.servlet.DownloadableResource
      Throws:
      com.atlassian.plugin.servlet.DownloadException
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface com.atlassian.plugin.servlet.DownloadableResource
    • getOriginalResource

      protected com.atlassian.plugin.servlet.DownloadableResource getOriginalResource()
    • toString

      public String toString()
      Overrides:
      toString in class Object