com.atlassian.plugin.servlet
Class PluginResourceDownload
java.lang.Object
com.atlassian.plugin.servlet.PluginResourceDownload
- All Implemented Interfaces:
- DownloadStrategy
public class PluginResourceDownload
- extends java.lang.Object
- implements DownloadStrategy
A downloadable plugin resource, as described here: http://confluence.atlassian.com/display/JIRA/Downloadable+plugin+resource
The URL that it parses looks like this:
{server root}/download/resources/{plugin key}:{module
key}/{resource name}
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginResourceDownload
public PluginResourceDownload()
PluginResourceDownload
public PluginResourceDownload(PluginAccessor pluginAccessor)
matches
public boolean matches(java.lang.String urlPath)
- Specified by:
matches in interface DownloadStrategy
setPluginManager
public void setPluginManager(PluginManager pluginManager)
serveFile
public void serveFile(BaseFileServerServlet servlet,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException
- Specified by:
serveFile in interface DownloadStrategy
- Throws:
java.io.IOException
servePluginResource
protected void servePluginResource(BaseFileServerServlet servlet,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.String moduleCompleteKey,
java.lang.String resourceName)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.