Method Summary |
|
public synchronized void | addAttributeListener(ServletContextAttributeListener listener) |
public synchronized void | addResourcePath(String path, String resourcePath) |
public synchronized void | addResourcePaths(String path, Collection pathes) |
public synchronized void | clearAttributes() |
public synchronized void | clearInitParameters() Clears the init parameters. |
public synchronized void | clearRequestDispatcherMap() Clears the map of RequestDispatcher objects. |
public synchronized Object | getAttribute(String key) |
public synchronized Enumeration | getAttributeNames() |
public synchronized ServletContext | getContext(String url) |
public String | getContextPath() |
public synchronized String | getInitParameter(String name) |
public synchronized Enumeration | getInitParameterNames() |
public synchronized int | getMajorVersion() |
public synchronized String | getMimeType(String file) |
public synchronized int | getMinorVersion() |
public synchronized RequestDispatcher | getNamedDispatcher(String name) |
public synchronized String | getRealPath(String path) |
public synchronized RequestDispatcher | getRequestDispatcher(String path) |
public synchronized Map | getRequestDispatcherMap() Returns the map of RequestDispatcher objects. |
public synchronized URL | getResource(String path) |
public synchronized InputStream | getResourceAsStream(String path) |
public synchronized Set | getResourcePaths(String path) |
public synchronized String | getServerInfo() |
public synchronized Servlet | getServlet(String arg0) |
public synchronized String | getServletContextName() |
public synchronized Enumeration | getServletNames() |
public synchronized Enumeration | getServlets() |
public synchronized void | log(Exception exc, String message) |
public synchronized void | log(String message, Throwable exc) |
public synchronized void | log(String message) |
public synchronized void | removeAttribute(String key) |
public synchronized void | resetAll() |
public synchronized void | setAttribute(String key, Object value) |
public synchronized void | setContext(String url, ServletContext context) |
public void | setContextPath(String contextPath) |
public synchronized void | setInitParameter(String name, String value) Sets an init parameter. |
public synchronized void | setInitParameters(Map parameters) Sets several init parameters. |
public synchronized void | setMimeType(String file, String type) |
public synchronized void | setRealPath(String path, String realPath) |
public synchronized void | setRequestDispatcher(String path, RequestDispatcher dispatcher) Sets a RequestDispatcher that will be returned when calling
MockServletContext.getRequestDispatcher or
MockServletContext.getNamedDispatcher with the specified path or name. |
public synchronized void | setResource(String path, URL url) |
public synchronized void | setResourceAsStream(String path, InputStream inputStream) |
public synchronized void | setResourceAsStream(String path, byte[] data) |
public synchronized void | setServletContextName(String servletContextName) |