com.atlassian.plugin.webresource.util
Class DownloadableResourceTestImpl

java.lang.Object
  extended by 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


Constructor Summary
DownloadableResourceTestImpl(String contentType, String content)
           
 
Method Summary
 String getContentType()
           
 boolean isResourceModified(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void serveResource(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void streamResource(OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadableResourceTestImpl

public DownloadableResourceTestImpl(String contentType,
                                    String content)
Method Detail

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.