Method Summary |
|
public Object | getAttribute(String theName) |
public Enumeration | getAttributeNames() |
public ServletContext | getContext(String theUripath) |
public String | getInitParameter(String theName) |
public Enumeration | getInitParameterNames() |
public Vector | getLogs() Returns all the text logs that have been generated using the
log() methods so that it is possible to easily assert the
content of the logs. |
public int | getMajorVersion() |
public String | getMimeType(String theFilename) |
public int | getMinorVersion() |
public RequestDispatcher | getNamedDispatcher(String theName) |
public ServletContext | getOriginalContext() |
public String | getRealPath(String thePath) |
public RequestDispatcher | getRequestDispatcher(String thePath) |
public URL | getResource(String thePath) |
public InputStream | getResourceAsStream(String thePath) |
public String | getServerInfo() |
public Servlet | getServlet(String theName) |
public Enumeration | getServletNames() |
public Enumeration | getServlets() |
public void | log(String theMessage, Throwable theCause) Intercept the log call and add the message to an internal vector of
log messages that can then later be retrieved and asserted by the
test case writer. |
public void | log(String theMessage) Intercept the log call and add the message to an internal vector of
log messages that can then later be retrieved and asserted by the
test case writer. |
public void | log(Exception theException, String theMessage) Intercept the log call and add the message to an internal vector of
log messages that can then later be retrieved and asserted by the
test case writer. |
public void | removeAttribute(String theName) |
public void | setAttribute(String theName, Object theAttribute) |
public void | setInitParameter(String theName, String theValue) Sets a parameter as if it were set in the web.xml file
(using the <context-param> element). |