com.atlassian.plugin.webresource.util
Class DownloadableResourceTestImpl
java.lang.Object
com.atlassian.plugin.webresource.util.DownloadableResourceTestImpl
- All Implemented Interfaces:
- com.atlassian.plugin.servlet.DownloadableResource
public class DownloadableResourceTestImpl
- extends Object
- implements com.atlassian.plugin.servlet.DownloadableResource
A implementation of DownloadableResource for testing purposes
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DownloadableResourceTestImpl
public DownloadableResourceTestImpl(String contentType,
String content)
isResourceModified
public boolean isResourceModified(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Specified by:
isResourceModified in interface com.atlassian.plugin.servlet.DownloadableResource
serveResource
public void serveResource(javax.servlet.http.HttpServletRequest request,
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
streamResource
public void streamResource(OutputStream out)
- Specified by:
streamResource in interface com.atlassian.plugin.servlet.DownloadableResource
getContentType
public String getContentType()
- Specified by:
getContentType in interface com.atlassian.plugin.servlet.DownloadableResource
Copyright © 2011 Atlassian. All Rights Reserved.