public class

QUnitTestResourceServlet

extends HttpServlet
java.lang.Object
   ↳ javax.servlet.GenericServlet
     ↳ javax.servlet.http.HttpServlet
       ↳ com.atlassian.confluence.test.qunit.QUnitTestResourceServlet

Class Overview

Provides a means to download an arbitrary test javascript file from the plugin.

Possibly to be susceptible to directory traversal attacks with the right testName - but this is for testing only.

No caching is performed, and resources can be found via the jvm -Dplugin.resource.directories parameter for your development convenience.

Summary

Public Constructors
QUnitTestResourceServlet()
Public Methods
void init(ServletConfig config)
Protected Methods
void doGet(HttpServletRequest req, HttpServletResponse resp)
[Expand]
Inherited Methods
From class javax.servlet.http.HttpServlet
From class javax.servlet.GenericServlet
From class java.lang.Object
From interface javax.servlet.Servlet
From interface javax.servlet.ServletConfig

Public Constructors

public QUnitTestResourceServlet ()

Public Methods

public void init (ServletConfig config)

Throws
ServletException

Protected Methods

protected void doGet (HttpServletRequest req, HttpServletResponse resp)

Throws
ServletException
IOException