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 Summary
ConstructorsConstructorDescriptionAbstractTransformedDownloadableResource(com.atlassian.plugin.servlet.DownloadableResource originalResource) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.atlassian.plugin.servlet.DownloadableResourcebooleanisResourceModified(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) voidserveResource(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse response) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.plugin.servlet.DownloadableResource
streamResource
-
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:
isResourceModifiedin interfacecom.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:
serveResourcein interfacecom.atlassian.plugin.servlet.DownloadableResource- Throws:
com.atlassian.plugin.servlet.DownloadException
-
getContentType
- Specified by:
getContentTypein interfacecom.atlassian.plugin.servlet.DownloadableResource
-
getOriginalResource
protected com.atlassian.plugin.servlet.DownloadableResource getOriginalResource() -
toString
-