A B C D E F G H I J L M O P R S T U W X

A

AUTOSESSION_NAME_PARAM -
Name of the parameter in the HTTP request that specify if a session should be automatically created for the user or not.
AbstractAuthentication - class org.apache.cactus.client.authentication.AbstractAuthentication
This class was designed with the simple assumption that ALL authentication implementations will have a String Name and a String Password.
AbstractAuthentication(String,String) -
 
AbstractHttpClient - class org.apache.cactus.client.AbstractHttpClient
Abstract class for performing the steps necessary to run a test.
AbstractHttpClient() -
Abstract class for performing the steps necessary to run a test.
AbstractHttpServletRequestWrapper - class org.apache.cactus.server.AbstractHttpServletRequestWrapper
Abstract wrapper around HttpServletRequest.
AbstractHttpServletRequestWrapper(HttpServletRequest,ServletURL) -
Construct an HttpServletRequest instance that delegates it's method calls to the request object passed as parameter and that uses the URL passed as parameter to simulate a URL from which the request would come from.
AbstractPageContextWrapper - class org.apache.cactus.server.AbstractPageContextWrapper
Abstract wrapper around PageContext.
AbstractPageContextWrapper(PageContext,ServletURL) -
Construct an PageContext instance that delegates it's method calls to the page context object passed as parameter and that uses the URL passed as parameter to simulate a URL from which the request would come from.
AbstractServletContextWrapper - class org.apache.cactus.server.AbstractServletContextWrapper
Abstract wrapper around ServletContext.
AbstractServletContextWrapper(ServletContext) -
 
AbstractTestCaller - class org.apache.cactus.server.AbstractTestCaller
Responsible for instanciating the TestCase class on the server side, set up the implicit objects and call the test method.
AbstractTestCaller(WebImplicitObjects) -
 
AbstractTestCase - class org.apache.cactus.AbstractTestCase
Abstract class that specific test cases (ServletTestCase, FilterTestCase, ...) must extend.
AbstractTestCase(String) -
Constructs a JUnit test case with the given name.
AbstractTestController - class org.apache.cactus.server.AbstractTestController
Controller that extracts the requested service from the HTTP request and executes the request by calling a WebTestCaller.
AbstractTestController() -
Controller that extracts the requested service from the HTTP request and executes the request by calling a WebTestCaller.
AbstractWebImplicitObjects - class org.apache.cactus.server.AbstractWebImplicitObjects
Holder class that contains the instances of the implicit objects that exist for all web requests.
AbstractWebImplicitObjects() -
Holder class that contains the instances of the implicit objects that exist for all web requests.
AssertUtils - class org.apache.cactus.util.AssertUtils
Deprecated. As of Cactus 1.2, replaced by WebResponse
AssertUtils() -
Deprecated. As of Cactus 1.2, replaced by WebResponse
AssertionFailedErrorWrapper - error org.apache.cactus.client.AssertionFailedErrorWrapper
Same as ServletExceptionWrapper except that this exception class extends JUnit AssertionFailedError so that JUnit will print a different message in it's runner console.
AssertionFailedErrorWrapper(String) -
Standard throwable constructor.
AssertionFailedErrorWrapper() -
Standard throwable constructor.
AssertionFailedErrorWrapper(String,String,String) -
The constructor to use to simulate a real exception.
addCookie(String,String) -
Adds a cookie to the request.
addCookie(String,String,String) -
Adds a cookie to the request.
addCookie(Cookie) -
Adds a cookie to the request.
addHeader(String,String) -
Adds a header to the request.
addParameter(String,String,String) -
Adds a parameter to the request.
addParameter(String,String) -
Adds a parameter to the request.
around() - Advice in aspect org.apache.cactus.util.log.LogAspect
Log all entries and exits of static methods that have no return values.
around() - Advice in aspect org.apache.cactus.util.log.LogAspect
Log all entries and exits of non-static methods that have no return values.
around() - Advice in aspect org.apache.cactus.util.log.LogAspect
Log all entries and exits of static methods that have return values.
around() - Advice in aspect org.apache.cactus.util.log.LogAspect
Log all entries and exits of non-static methods that have return values.
aspectOf() -
 
aspectOf() -
 

B

BaseLog - class org.apache.cactus.util.log.BaseLog
Wrapper around the Log4j Category class.
BaseLog(String) -
 
BaseLogDummy - class org.apache.cactus.util.log.BaseLogDummy
Dummy class that logs nothing.
BaseLogDummy() -
Dummy class that logs nothing.
BasicAuthentication - class org.apache.cactus.client.authentication.BasicAuthentication
Basic Authentication support.
BasicAuthentication(String,String) -
 
before() - Advice in aspect org.apache.cactus.util.log.LogManagerAspect
Initialise logging subsystem for the client side (client JVM)

C

CALL_TEST_SERVICE -
Call test method Service.
CLASS_NAME_PARAM -
Name of the parameter in the HTTP request that represents the name of the Test class to call.
CONFIG -
Properties file holding configuration data for Cactus.
CONFIG_NAME -
Name of the Cactus configuration file
ChainedRuntimeException - exception org.apache.cactus.util.ChainedRuntimeException
Represent an exception that should stop the running test.
ChainedRuntimeException(String) -
Create a TestException and set the exception error message.
ChainedRuntimeException(String,Throwable) -
Create a ChainedRuntimeException, set the exception error message along with the exception object that caused this exception.
ChainedRuntimeException(Throwable) -
Create a ChainedRuntimeException, and set exception object that caused this exception.
ClientConfigurationChecker - class org.apache.cactus.client.ClientConfigurationChecker
Helper class that checks configuration parameters (for the client side) like if the CLASSPATH contains the jar for the Servlet API, if the cactus.properties file is in the CLASSPATH, ...
ClientCookie - class org.apache.cactus.util.ClientCookie
Deprecated. As of Cactus 1.2, replaced by org.apache.cactus.Cookie
ClientCookie(String,String,String,String,long,String,boolean,float) -
Deprecated. Construct a client cookie.
Configuration - class org.apache.cactus.util.Configuration
Provides acces to the Cactus configuration.
Configuration() -
Provides acces to the Cactus configuration.
Cookie - class org.apache.cactus.Cookie
Client cookie.
Cookie(String,String,String) -
Create a cookie.
checkCactusProperties() -
Checks if the cactus.properties file is in the CLASSPATH.
checkHttpClient() -
Check if the httpclient jar is in the CLASSPATH
checkLog4j() -
Verify that log_client.properties is in the CLASSPATH if the log4j jar is in the classpath TODO: This method should no longer be needed with AspectJ as we should be able to ensure that logging is always initialized.
config -
Valid ServletConfig object that you can access from the testXXX(), setUp and tearDown() methods.
configure(HttpURLConnection) -
Modify the HttpURLConnection passed as parameter so that it will carry authentication information.
configure(HttpURLConnection) -
 
connect(WebRequest) -
Connects to the Cactus Redirector using HTTP.

D

debug(String) -
Log a DEBUG level message.
debug(String,Throwable) -
Log a DEBUG level message along with an exception
debug(String) -
Log a DEBUG level message.
debug(String,Throwable) -
Log a DEBUG level message along with an exception
debug(String) -
Log a DEBUG level message.
debug(String,Throwable) -
Log a DEBUG level message along with an exception
doGet(HttpServletRequest,HttpServletResponse) -
Handle GET requests.
doGet(JspImplicitObjects) -
Handles requests from the jspRedirector.jsp JSP Redirector.
doGetResults() -
Return the last test results in the HTTP response.
doPost(HttpServletRequest,HttpServletResponse) -
Handle POST request.
doRunTest() -
Run the connection test between client and server.
doTest(WebRequest) -
Calls the test method indirectly by calling the Redirector servlet and then open a second HTTP connection to retrieve the test results.
doTest() -
Calls a test method.

E

entry(String) -
Used to log a message when entering a method.
entry(String) -
Used to log a message when entering a method.
entry(String) -
Used to log a message when entering a method.
equals(Object) -
Two cookies match if the name, path and domain match.
equals(String) -
Compares a string representing the name of the service with the Service enumerated type.
error(String) -
Log an ERROR level message.
error(String,Throwable) -
Log an ERROR level message along with an exception
error(Throwable) -
Log an ERROR level exception only
error(String) -
Log an ERROR level message.
error(String,Throwable) -
Log an ERROR level message along with an exception
error(Throwable) -
Log an ERROR level exception only
error(String) -
Log an ERROR level message.
error(String,Throwable) -
Log an ERROR level message along with an exception
error(Throwable) -
Log an ERROR level exception only
exit(String) -
Used to log a message when exiting a method.
exit(String) -
Used to log a message when exiting a method.
exit(String) -
Used to log a message when exiting a method.

F

findAttribute(String) -
 
forward(ServletRequest,ServletResponse) -
Call the original RequestDispatcher forward() method but with the original HTTP request (not the simulation one which would make the servlet engine choke !).
forward(String) -
 

G

GET_METHOD -
GET Method identifier.
GET_RESULTS_SERVICE -
Get the previous test results Service.
getAttribute(String) -
 
getAttribute(String,int) -
 
getAttribute(String) -
 
getAttribute(String) -
 
getAttributeNames() -
 
getAttributeNames() -
 
getAttributeNamesInScope(int) -
 
getAttributesScope(String) -
 
getAuthType() -
 
getAuthentication() -
 
getAutomaticSession() -
 
getCharacterEncoding() -
 
getComment() -
Returns the comment describing the purpose of this cookie, or null if no such comment has been defined.
getComment() -
Deprecated.  
getConnection() -
 
getContentLength() -
 
getContentType() -
 
getContentType() -
 
getContext(String) -
 
getContextPath() -
 
getContextPath() -
 
getContextURL() -
 
getCookie(String) -
Return the first cookie found that has the specified name or null if not found.
getCookies() -
 
getCookies() -
 
getCookies() -
 
getCookies(HttpURLConnection) -
Deprecated. Extract the cookies from a HTTP connection.
getDateHeader(String) -
 
getDomain() -
Returns the domain of this cookie.
getDomain() -
Deprecated.  
getDomain(WebRequest,URLConnection) -
Returns the domain that will be used to send the cookies.
getException() -
 
getExceptionClassName() -
 
getExceptionMessage() -
 
getExceptionStackTrace() -
 
getExpiryDate() -
Return the expiry date.
getFilterRedirectorURL() -
 
getHeader(String) -
Returns the first value corresponding to this header's name.
getHeader(String) -
 
getHeaderNames() -
 
getHeaderNames() -
 
getHeaderValues(String) -
Returns all the values associated with this header's name.
getHeaders(String) -
 
getHost() -
 
getHttpServletRequest() -
 
getHttpServletRequest() -
 
getHttpServletResponse() -
 
getHttpServletResponse() -
 
getInitParameter(String) -
 
getInitParameter(String) -
 
getInitParameterNames() -
 
getInitParameterNames() -
 
getInputStream() -
 
getInputStream() -
 
getInstance() -
 
getInstance() -
 
getIntHeader(String) -
 
getJspRedirectorURL() -
 
getJspWriter() -
 
getLocale() -
 
getLocales() -
 
getLog(String) -
 
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.
getMajorVersion() -
 
getMaxAge() -
Deprecated.  
getMethod() -
 
getMimeType(String) -
 
getMinorVersion() -
 
getName() -
 
getName() -
Deprecated.  
getName() -
 
getNamedDispatcher(String) -
 
getOriginalRequest() -
 
getOut() -
 
getPage() -
 
getPageContext() -
 
getParameter(String) -
 
getParameterGet(String) -
Returns the first value corresponding to this parameter's name (provided this parameter is passed in the URL).
getParameterNames() -
 
getParameterNamesGet() -
 
getParameterNamesPost() -
 
getParameterPost(String) -
Returns the first value corresponding to this parameter's name (provided this parameter is passed in the request body - POST).
getParameterValues(String) -
 
getParameterValuesGet(String) -
Returns all the values corresponding to this parameter's name (provided this parameter is passed in the URL).
getParameterValuesPost(String) -
Returns all the values corresponding to this parameter's name (provided this parameter is passed in the request body - POST).
getPath() -
Return the path this cookie is associated with.
getPath() -
Deprecated.  
getPath() -
 
getPath(WebRequest,URLConnection) -
Returns the path that will be used to validate if a cookie will be sent or not.
getPathInfo() -
 
getPathInfo() -
 
getPathTranslated() -
 
getPort() -
 
getPort(WebRequest,URLConnection) -
Returns the domain that will be used to send the cookies.
getProtocol() -
 
getProtocol() -
 
getQueryString() -
 
getQueryString() -
 
getQueryStringParameter(String,String) -
A substitute method for HttpServletRequest.getParameter().
getReader() -
 
getRealPath(String) -
 
getRealPath(String) -
 
getRedirectorName() -
 
getRemoteAddr() -
 
getRemoteHost() -
 
getRemoteUser() -
 
getRequest() -
 
getRequestDispatcher(String) -
 
getRequestDispatcher(String) -
 
getRequestURI() -
 
getRequestedSessionId() -
 
getResource(String) -
 
getResourceAsStream(String) -
 
getResponse() -
 
getResponseAsString(HttpURLConnection) -
Deprecated.  
getResponseAsStringArray(HttpURLConnection) -
Deprecated.  
getScheme() -
 
getServerInfo() -
 
getServerName() -
 
getServerName() -
 
getServerPort() -
 
getServlet(String) -
 
getServletConfig() -
 
getServletConfig() -
 
getServletContext() -
 
getServletContext() -
 
getServletContext() -
 
getServletContext() -
 
getServletName() -
 
getServletNames() -
 
getServletPath() -
 
getServletPath() -
 
getServletRedirectorURL() -
 
getServlets() -
 
getSession() -
 
getSession() -
 
getSession(boolean) -
 
getTestCaseName(TestCase) -
JUnit 3.7 introduces TestCase.getName() and subsequent versions of JUnit remove the old name() method.
getText(InputStream) -
Read all data in an Inpout stream and return them as a String object.
getText() -
 
getTextAsArray() -
 
getURL() -
 
getUserData() -
 
getUserPrincipal() -
 
getValue() -
 
getValue() -
Deprecated.  
getVersion() -
Deprecated.  
getWebRequest() -
 

H

HttpClientHelper - class org.apache.cactus.client.HttpClientHelper
Helper class to open an HTTP connection to the server redirector and pass to it HTTP parameters, Cookies and HTTP headers.
HttpClientHelper(String) -
 
HttpServletRequestWrapper - class org.apache.cactus.server.HttpServletRequestWrapper
Encapsulation class for the Servlet 2.2 API HttpServletRequest.
HttpServletRequestWrapper(HttpServletRequest,ServletURL) -
Construct an HttpServletRequest instance that delegates it's method calls to the request object passed as parameter and that uses the URL passed as parameter to simulate a URL from which the request would come from.
handlePageException(Exception) -
 
handleRequest(WebImplicitObjects) -
Handles the incoming request by extracting the requested service and calling the correct method on a WebTestCaller.
hasAspect() -
 
hasAspect() -
 
hasException() -
 
hashCode() -
Hash up name, value and domain into new hash.

I

IoUtil - class org.apache.cactus.util.IoUtil
Various utility methods for manipulating IO streams.
IoUtil() -
Various utility methods for manipulating IO streams.
include(ServletRequest,ServletResponse) -
Call the original RequestDispatcher include() method but with the original HTTP request (not the simulation one which would make the servlet engine choke !).
include(String) -
 
info(String) -
Log an INFO level message.
info(String,Throwable) -
Log an INFO level message along with an exception
info(String) -
Log an INFO level message.
info(String,Throwable) -
Log an INFO level message along with an exception
info(String) -
Log an INFO level message.
info(String,Throwable) -
Log an INFO level message along with an exception
init(String) -
Initialize the logging system.
initialize(Servlet,ServletRequest,ServletResponse,String,boolean,int,boolean) -
 
instanceOf(Class) -
As all the server exceptions are wrapped into this ServletExceptionWrapper class, we need to be able to know the original server exception class.
instanceOf(Class) -
As all the server exceptions are wrapped into this ServletExceptionWrapper class, we need to be able to know the original server exception class.
isDebugEnabled() -
 
isDebugEnabled() -
 
isDebugEnabled() -
 
isExpired() -
 
isInitialized() -
 
isLoggingEnabled() -
 
isRequestedSessionIdFromCookie() -
 
isRequestedSessionIdFromURL() -
 
isRequestedSessionIdFromUrl() -
 
isRequestedSessionIdValid() -
 
isSecure() -
 
isSecure() -
Deprecated.  
isSecure() -
 
isToBeDiscarded() -
 
isUserInRole(String) -
 

J

JUnitVersionHelper - class org.apache.cactus.util.JUnitVersionHelper
Work around for some changes to the public JUnit API between different JUnit releases.
JUnitVersionHelper() -
Work around for some changes to the public JUnit API between different JUnit releases.
JspHttpClient - class org.apache.cactus.client.JspHttpClient
Manage the logic for calling the JSP redirector for executing a test on the server side.
JspHttpClient() -
Manage the logic for calling the JSP redirector for executing a test on the server side.
JspImplicitObjects - class org.apache.cactus.server.JspImplicitObjects
Holder class that contains the instances of the implicit objects that will be accessible in the test classes (i.e.
JspImplicitObjects() -
Holder class that contains the instances of the implicit objects that will be accessible in the test classes (i.e.
JspTestCaller - class org.apache.cactus.server.JspTestCaller
Call the test method on the server side after assigning the JSP implicit objects using reflection.
JspTestCaller(JspImplicitObjects) -
 
JspTestCase - class org.apache.cactus.JspTestCase
Test classes that need access to valid JSP implicit objects (such as the page context, the output jsp writer, the HTTP request, ...) must subclass this class.
JspTestCase(String) -
Constructs a JUnit test case with the given name.
JspTestController - class org.apache.cactus.server.JspTestController
JSP Controller that extracts the requested service from the HTTP request and executes the request by calling a JspTestCaller.
JspTestController() -
JSP Controller that extracts the requested service from the HTTP request and executes the request by calling a JspTestCaller.
JspTestRedirector - class org.apache.cactus.server.JspTestRedirector
Extension of the jspRedirector.jsp JSP Redirector in the java realmn in order to provide a symmetry with the ServletRedirector and minimize the amount of java code in jspRedirector.jsp.
JspTestRedirector() -
Extension of the jspRedirector.jsp JSP Redirector in the java realmn in order to provide a symmetry with the ServletRedirector and minimize the amount of java code in jspRedirector.jsp.

L

LOG_CLIENT_CONFIG -
Name of properties file to initialize logging subsystem on the client side.
LOG_CLIENT_CONFIG -
Name of properties file to initialize logging subsystem
Log - interface org.apache.cactus.util.log.Log
Interface for logging implementation classes
Log() -
Interface for logging implementation classes
LogAspect - aspect org.apache.cactus.util.log.LogAspect
Log every entry and exit of methods.
LogAspect() -
Log every entry and exit of methods.
LogManagerAspect - aspect org.apache.cactus.util.log.LogManagerAspect
Manage logging subsystem initialisation.
LogManagerAspect() -
Manage logging subsystem initialisation.
LogService - class org.apache.cactus.util.log.LogService
Logging service acting as a wrapper around the Jakarta Log4j logging framework.
LogService() -
Logging service acting as a wrapper around the Jakarta Log4j logging framework.
loadFromRequest(HttpServletRequest) -
Creates a ServletURL object by loading it's values from the HTTP request.
log(String,Throwable) -
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.
log(String) -
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.
log(Exception,String) -
Deprecated. As of Java Servlet API 2.1, use AbstractServletContextWrapper.log(String message, Throwable throwable) instead. This method was originally defined to write an exception's stack trace and an explanatory error message to the servlet log file.

M

METHOD_NAME_PARAM -
Name of the parameter in the HTTP request that represents the name of the Test method to call.

O

out -
Valid JspWriter object that you can access from the testXXX(), setUp and tearDown() methods.

P

POST_METHOD -
POST Method identifier.
PROTOCOL_HTTP -
Http protocol.
PROTOCOL_HTTPS -
Https protocol.
PageContextWrapper - class org.apache.cactus.server.PageContextWrapper
Wrapper around PageContext so that get methods that would normally return implicit objects will now return Cactus wrapper of implicit objects instead.
PageContextWrapper(PageContext,ServletURL) -
Construct an PageContext instance that delegates it's method calls to the page context object passed as parameter and that uses the URL passed as parameter to simulate a URL from which the request would come from.
pageContext -
Valid PageContext object that you can access from the testXXX(), setUp and tearDown() methods.
parse(String) -
Parse a string and transform it into a WebTestResult object.
popBody() -
 
printStackTrace(PrintStream) -
Simulates a printing of a stack trace by printing the string stack trace
printStackTrace(PrintWriter) -
Simulates a printing of a stack trace by printing the string stack trace
printStackTrace() -
Print the full stack trace, including the original exception.
printStackTrace(PrintStream) -
Print the full stack trace, including the original exception.
printStackTrace(PrintWriter) -
Print the full stack trace, including the original exception.
printStackTrace(PrintStream) -
Simulates a printing of a stack trace by printing the string stack trace
printStackTrace(PrintWriter) -
Simulates a printing of a stack trace by printing the string stack trace
pushBody() -
 

R

RUN_TEST_SERVICE -
Get the previous test results Service.
RequestDispatcherWrapper - class org.apache.cactus.server.RequestDispatcherWrapper
Wrapper around RequestDispatcher which overrides the forward() and include methods to use the original HTTP request object instead of the simulated one used by Cactus.
RequestDispatcherWrapper(RequestDispatcher) -
 
release() -
 
removeAttribute(String) -
 
removeAttribute(String,int) -
 
removeAttribute(String) -
 
removeAttribute(String) -
 
request -
Valid HttpServletRequest object that you can access from the testXXX(), setUp and tearDown() methods.
response -
Valid HttpServletResponse object that you can access from the testXXX(), setUp and tearDown() methods.
runBare() -
Runs the bare test sequence.
runBareServerTest() -
Run the test that was specified in the constructor on the server side, calling setUp() and tearDown().

S

SERVICE_NAME_PARAM -
Name of the parameter in the HTTP request that specify the service asked to the Redirector Servlet.
ServiceDefinition - class org.apache.cactus.ServiceDefinition
Constants that define HTTP parameters required for defining a service that is performed by the ServletTestRedirector servlet.
ServiceDefinition() -
Constants that define HTTP parameters required for defining a service that is performed by the ServletTestRedirector servlet.
ServiceEnumeration - class org.apache.cactus.ServiceEnumeration
List of valid services that the ServletTestRedirector can perform.
ServletConfigWrapper - class org.apache.cactus.server.ServletConfigWrapper
Wrapper around ServletConfig which overrides the getServletContext() method to return our own wrapper around ServletContext.
ServletConfigWrapper(ServletConfig) -
 
ServletContextWrapper - class org.apache.cactus.server.ServletContextWrapper
Wrapper around Servlet 2.2 ServletContext.
ServletContextWrapper(ServletContext) -
 
ServletExceptionWrapper - class org.apache.cactus.client.ServletExceptionWrapper
Wrapper around a Throwable object.
ServletExceptionWrapper(String) -
Standard throwable constructor.
ServletExceptionWrapper() -
Standard throwable constructor.
ServletExceptionWrapper(String,String,String) -
The constructor to use to simulate a real exception.
ServletHttpClient - class org.apache.cactus.client.ServletHttpClient
Manage the logic for calling the Servlet redirector for executing a test on the server side.
ServletHttpClient() -
Manage the logic for calling the Servlet redirector for executing a test on the server side.
ServletImplicitObjects - class org.apache.cactus.server.ServletImplicitObjects
Holder class that contains the instances of the implicit objects that will be accessible in the test classes (i.e.
ServletImplicitObjects() -
Holder class that contains the instances of the implicit objects that will be accessible in the test classes (i.e.
ServletTestCaller - class org.apache.cactus.server.ServletTestCaller
Responsible for instanciating the TestCase class on the server side, set up the implicit objects and call the test method.
ServletTestCaller(ServletImplicitObjects) -
 
ServletTestCase - class org.apache.cactus.ServletTestCase
Test classes that need access to valid Servlet implicit objects (such as the the HTTP request, the HTTP response, the servlet config, ...) must subclass this class.
ServletTestCase(String) -
Constructs a JUnit test case with the given name.
ServletTestController - class org.apache.cactus.server.ServletTestController
Servlet Controller that extracts the requested service from the HTTP request and executes the request by calling a ServletTestCaller.
ServletTestController() -
Servlet Controller that extracts the requested service from the HTTP request and executes the request by calling a ServletTestCaller.
ServletTestRedirector - class org.apache.cactus.server.ServletTestRedirector
Generic Servlet redirector that calls a test method on the server side.
ServletTestRedirector() -
Generic Servlet redirector that calls a test method on the server side.
ServletTestRequest - class org.apache.cactus.ServletTestRequest
Deprecated. As of Cactus 1.2, replaced by WebRequest
ServletTestRequest() -
Deprecated. As of Cactus 1.2, replaced by WebRequest
ServletURL - class org.apache.cactus.ServletURL
Simulate an HTTP URL by breaking it into its different parts :
<
ServletURL(String,String,String,String,String,String) -
Creates the URL to simulate.
ServletURL(String,String,String,String,String) -
Creates the URL to simulate, using the default HTTP protocol.
ServletUtil - class org.apache.cactus.server.ServletUtil
All prupose utility methods for manipulating the Servlet API.
ServletUtil() -
All prupose utility methods for manipulating the Servlet API.
saveToRequest(WebRequest) -
Saves the current URL to a WebRequest object.
session -
Valid HttpSession object that you can access from the testXXX(), setUp and tearDown() methods.
setAttribute(String,Object) -
 
setAttribute(String,Object,int) -
 
setAttribute(String,Object) -
 
setAttribute(String,Object) -
 
setAuthentication(AbstractAuthentication) -
Sets the authentication object that will configure the http request
setAutomaticSession(boolean) -
 
setComment(String) -
If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described using this comment.
setContentType(String) -
Sets the content type that will be set in the http request
setDomain(String) -
Sets the cookie domain.
setExpiryDate(Date) -
Set the cookie expires date.
setHttpServletRequest(HttpServletRequest) -
 
setHttpServletRequest(HttpServletRequest) -
 
setHttpServletResponse(HttpServletResponse) -
 
setHttpServletResponse(HttpServletResponse) -
 
setInitParameter(String,String) -
Sets a parameter as if it were set in the web.xml file.
setJspWriter(JspWriter) -
 
setName(String) -
Sets the cookie name
setName(String) -
Sets the user name.
setPageContext(PageContext) -
 
setPassword(String) -
Sets the user password of the Credential.
setPath(String) -
Sets the cookie path.
setRedirectorName(String) -
Override the redirector Name defined in cactus.properties.
setSecure(boolean) -
Indicates to the user agent that the cookie should only be sent using a secure protocol (https).
setServletConfig(ServletConfig) -
 
setServletContext(ServletContext) -
 
setServletContext(ServletContext) -
 
setServletName(String) -
Sets the servlet name.
setURL(String,String,String,String,String) -
Sets the simulated URL.
setUserData(InputStream) -
Allow the user to send arbitrary data in the request body
setValue(String) -
Sets the cookie value

T

toString() -
 
toString() -
 
toString() -
 
toString() -
 
toString() -
 
toXml() -
 

U

URL_CONTEXT_PATH_PARAM -
Name of the parameter in the HTTP request that represents the context path in the URL to simulate.
URL_PATH_INFO_PARAM -
Name of the parameter in the HTTP request that represents the Path Info in the URL to simulate.
URL_PROTOCOL_PARAM -
Name of the parameter in the HTTP request that represents the protocol (HTTP, HTTPS, etc) in the URL to simulate.
URL_QUERY_STRING_PARAM -
Name of the parameter in the HTTP request that represents the Query String in the URL to simulate.
URL_SERVER_NAME_PARAM -
Name of the parameter in the HTTP request that represents the Server name (+ port) in the URL to simulate.
URL_SERVLET_PATH_PARAM -
Name of the parameter in the HTTP request that represents the Servlet Path in the URL to simulate.

W

WebImplicitObjects - interface org.apache.cactus.server.WebImplicitObjects
Interface for implicit objects that exist for all web requests (HttpServletRequest, HttpServletResponse and ServletContext).
WebImplicitObjects() -
Interface for implicit objects that exist for all web requests (HttpServletRequest, HttpServletResponse and ServletContext).
WebRequest - class org.apache.cactus.WebRequest
Contains all HTTP request data for a test case.
WebRequest() -
Contains all HTTP request data for a test case.
WebResponse - class org.apache.cactus.WebResponse
Default web response implementation that provides a minimal API for asserting returned output stream from the server side.
WebResponse(WebRequest,HttpURLConnection) -
 
WebTestResult - class org.apache.cactus.WebTestResult
Represent the result of the execution of the Test class by the server redirector.If any exception was raised during the test, it is saved by this class.
WebTestResult() -
Constructor to call when the test was ok and no error was raised.
WebTestResult(Throwable) -
Constructor to call when an exception was raised during the test.
WebTestResult(String,String,String) -
Constructor used to reconstruct a WebTestResult object from its String representation.
WebTestResultParser - class org.apache.cactus.client.WebTestResultParser
Parse a string representing a Test result and transform it into a WebTestResult object.
WebTestResultParser() -
Parse a string representing a Test result and transform it into a WebTestResult object.
warn(String) -
Log a WARNING level message.
warn(String,Throwable) -
Log a WARNING level message along with an exception
warn(String) -
Log a WARNING level message.
warn(String,Throwable) -
Log a WARNING level message along with an exception
warn(String) -
Log a WARNING level message.
warn(String,Throwable) -
Log a WARNING level message along with an exception

X

XML_EXCEPTION_CLASSNAME_ATTRIBUTE -
Name of Exception XML attribute that contains the exception classname (see WebTestResult.toXml()).
XML_EXCEPTION_ELEMENT -
Name of Exception XML tag (see WebTestResult.toXml()).
XML_EXCEPTION_MESSAGE_ELEMENT -
Name of Exception Message XML tag (see WebTestResult.toXml()).
XML_EXCEPTION_STACKTRACE_ELEMENT -
Name of Exception Stacktrace XML tag (see WebTestResult.toXml()).
XML_ROOT_ELEMENT -
Name of Root XML tag (see WebTestResult.toXml()).

A B C D E F G H I J L M O P R S T U W X

Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.