public class

MockServletContext

extends Object
implements ServletContext
java.lang.Object
   ↳ com.atlassian.jira.mock.servlet.MockServletContext

Class Overview

A mock implementation of javax.servlet.ServletContext

Summary

Public Constructors
MockServletContext()
MockServletContext(String realPath)
Public Methods
Object getAttribute(String s)
Enumeration getAttributeNames()
ServletContext getContext(String s)
String getInitParameter(String s)
Enumeration getInitParameterNames()
int getMajorVersion()
String getMimeType(String s)
int getMinorVersion()
RequestDispatcher getNamedDispatcher(String s)
String getRealPath(String s)
RequestDispatcher getRequestDispatcher(String s)
URL getResource(String s)
InputStream getResourceAsStream(String s)
Set getResourcePaths(String s)
String getServerInfo()
Servlet getServlet(String s)
String getServletContextName()
Enumeration getServletNames()
Enumeration getServlets()
void log(String s, Throwable throwable)
void log(Exception e, String s)
void log(String s)
void removeAttribute(String s)
void setAttribute(String s, Object o)
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.servlet.ServletContext

Public Constructors

public MockServletContext ()

public MockServletContext (String realPath)

Public Methods

public Object getAttribute (String s)

public Enumeration getAttributeNames ()

public ServletContext getContext (String s)

public String getInitParameter (String s)

public Enumeration getInitParameterNames ()

public int getMajorVersion ()

public String getMimeType (String s)

public int getMinorVersion ()

public RequestDispatcher getNamedDispatcher (String s)

public String getRealPath (String s)

public RequestDispatcher getRequestDispatcher (String s)

public URL getResource (String s)

public InputStream getResourceAsStream (String s)

public Set getResourcePaths (String s)

public String getServerInfo ()

public Servlet getServlet (String s)

Throws
ServletException

public String getServletContextName ()

public Enumeration getServletNames ()

public Enumeration getServlets ()

public void log (String s, Throwable throwable)

public void log (Exception e, String s)

public void log (String s)

public void removeAttribute (String s)

public void setAttribute (String s, Object o)