- GET - Static variable in class servletunit.HttpServletRequestSimulator
-
- getActionConfig(String, HttpServletRequest, ServletContext) - Static method in class servletunit.struts.Common
-
Returns the configuration for the given action mapping.
- getActionForm() - Method in class servletunit.struts.CactusStrutsTestCase
-
Returns the ActionForm instance stored in either the request or session.
- getActionForm(String, HttpServletRequest, ServletContext) - Static method in class servletunit.struts.Common
-
Returns any ActionForm instance stored in the request or session, if available.
- getActionForm() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns the ActionForm instance stored in either the request or session.
- getActionServlet() - Method in class servletunit.struts.CactusStrutsTestCase
-
Returns the ActionServlet controller used in this
test.
- getActionServlet() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns the ActionServlet controller used in this
test.
- getActualForward() - Method in class servletunit.struts.CactusStrutsTestCase
-
Returns the forward sent to RequestDispatcher.
- getActualForward() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns the forward sent to RequestDispatcher.
- getAttribute(String) - Method in class servletunit.HttpServletRequestSimulator
-
Returns the value of the named attribute as an Object,
or null if no attribute of the given name exists.
- getAttribute(String) - Method in class servletunit.HttpSessionSimulator
-
- getAttribute(String) - Method in class servletunit.ServletContextSimulator
-
Returns the servlet container attribute with the given name,
or null if there is no attribute by that name.
- getAttributeNames() - Method in class servletunit.HttpServletRequestSimulator
-
Returns an Enumeration containing the
names of the attributes available to this request.
- getAttributeNames() - Method in class servletunit.HttpSessionSimulator
-
- getAttributeNames() - Method in class servletunit.ServletContextSimulator
-
Returns an Enumeration containing the
attribute names available
within this servlet context.
- getAuthType() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the name of the authentication scheme used to protect
the servlet.
- getBufferSize() - Method in class servletunit.HttpServletResponseSimulator
-
This method is not supported.
- getBufferSize() - Method in class servletunit.struts.StrutsResponseWrapper
-
- getCharacterEncoding() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the name of the character encoding used in the body of this
request.
- getCharacterEncoding() - Method in class servletunit.HttpServletResponseSimulator
-
This method is not supported.
- getCharacterEncoding() - Method in class servletunit.struts.StrutsResponseWrapper
-
- getContentLength() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the length, in bytes, of the request body
and made available by the input stream, or -1 if the
length is not known.
- getContentLength() - Method in class servletunit.HttpServletResponseSimulator
-
returns the content length previously set in setContentLength()
- getContentType() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the MIME type of the body of the request, or
null if the type is not known.
- getContentType() - Method in class servletunit.HttpServletResponseSimulator
-
returns the content type previously set in setContentType()
- getContext(String) - Method in class servletunit.ServletContextSimulator
-
Unsupported in this version.
- getContextDirectory() - Method in class servletunit.ServletContextSimulator
-
- getContextPath() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the portion of the request URI that indicates the context
of the request.
- getCookies() - Method in class servletunit.HttpServletRequestSimulator
-
Returns an array containing all of the Cookie
objects the client sent with this request.
- getCreationTime() - Method in class servletunit.HttpSessionSimulator
-
- getDateHeader(String) - Method in class servletunit.HttpServletRequestSimulator
-
Returns the value of the specified request header as a long value that represents a Date object.
- getFilterName() - Method in class servletunit.FilterConfigSimulator
-
Gets the filterName attribute of the FilterConfigSimulator object
currently not supported
- getForward() - Method in class servletunit.RequestDispatcherSimulator
-
- getForward() - Method in class servletunit.struts.StrutsServletContextWrapper
-
- getHeader(String) - Method in class servletunit.HttpServletRequestSimulator
-
Returns the value of the specified request header
as a String.
- getHeader(String) - Method in class servletunit.HttpServletResponseSimulator
-
Returns a given header field, or null if this header
has not been set.
- getHeaderNames() - Method in class servletunit.HttpServletRequestSimulator
-
Returns an enumeration of all the header names
this request contains.
- getHeaders(String) - Method in class servletunit.HttpServletRequestSimulator
-
This operation is not supported.
- getId() - Method in class servletunit.HttpSessionSimulator
-
- getInitParameter(String) - Method in class servletunit.FilterConfigSimulator
-
Gets the initParameter attribute of the FilterConfigSimulator object
currently not supported
- getInitParameter(String) - Method in class servletunit.ServletConfigSimulator
-
Returns a String containing the value of the
named initialization parameter, or null if
the parameter does not exist.
- getInitParameter(String) - Method in class servletunit.ServletContextSimulator
-
Returns a String containing the value of the named
context-wide initialization parameter, or null if the
parameter does not exist.
- getInitParameterNames() - Method in class servletunit.FilterConfigSimulator
-
Gets the initParameterNames attribute of the FilterConfigSimulator
object
currently not supported
- getInitParameterNames() - Method in class servletunit.ServletConfigSimulator
-
Returns the names of the servlet's initialization parameters
as an Enumeration of String objects,
or an empty Enumeration if the servlet has
no initialization parameters.
- getInitParameterNames() - Method in class servletunit.ServletContextSimulator
-
Returns the names of the context's initialization parameters as an
Enumeration of String objects, or an
empty Enumeration if the context has no initialization
parameters.
- getInputStream() - Method in class servletunit.HttpServletRequestSimulator
-
This operation is not supported.
- getIntHeader(String) - Method in class servletunit.HttpServletRequestSimulator
-
Returns the value of the specified request header
as an int.
- getLastAccessedTime() - Method in class servletunit.HttpSessionSimulator
-
- getLocalAddr() - Method in class servletunit.HttpServletRequestSimulator
-
- getLocale() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the preferred Locale that the client will
accept content in, based on the Accept-Language header.
- getLocale() - Method in class servletunit.HttpServletResponseSimulator
-
Returns the locale assigned to the response.
- getLocale() - Method in class servletunit.struts.StrutsResponseWrapper
-
- getLocales() - Method in class servletunit.HttpServletRequestSimulator
-
Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale, the locales that are acceptable to the client based on the Accept-Language header.
- getLocalName() - Method in class servletunit.HttpServletRequestSimulator
-
- getLocalPort() - Method in class servletunit.HttpServletRequestSimulator
-
- getMajorVersion() - Method in class servletunit.ServletContextSimulator
-
Returns the major version of the Java Servlet API that this
Web server supports.
- getMaxInactiveInterval() - Method in class servletunit.HttpSessionSimulator
-
- getMessage() - Method in class servletunit.HttpServletResponseSimulator
-
- getMethod() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the name of the HTTP method with which this
request was made, for example, GET, POST, or PUT.
- getMimeType(String) - Method in class servletunit.ServletContextSimulator
-
Unsupported in this version.
- getMinorVersion() - Method in class servletunit.ServletContextSimulator
-
Returns the minor version of the Servlet API that this
Web server supports.
- getMockRequest() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns the mock HttpServletRequest object used in this test.
- getMockResponse() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns the mock HttpServletResponse object used in this test.
- getModuleConfig(HttpServletRequest, ServletContext) - Static method in class servletunit.struts.Common
-
Returns the configuration for the current module.
- getNamedDispatcher(String) - Method in class servletunit.ServletContextSimulator
-
- getOutputStream() - Method in class servletunit.HttpServletResponseSimulator
-
Returns a ServletOutputStream suitable for writing binary
data in the response.
- getOutputStream() - Method in class servletunit.struts.StrutsResponseWrapper
-
- getParameter(String) - Method in class servletunit.HttpServletRequestSimulator
-
Returns the value of a request parameter as a String,
or null if the parameter does not exist.
- getParameter(String) - Method in class servletunit.struts.StrutsRequestWrapper
-
- getParameterMap() - Method in class servletunit.HttpServletRequestSimulator
-
Returns a java.util.Map of the parameters of this request.
- getParameterMap() - Method in class servletunit.struts.StrutsRequestWrapper
-
- getParameterNames() - Method in class servletunit.HttpServletRequestSimulator
-
Returns an Enumeration of String
objects containing the names of the parameters contained
in this request.
- getParameterNames() - Method in class servletunit.struts.StrutsRequestWrapper
-
- getParameterValues(String) - Method in class servletunit.HttpServletRequestSimulator
-
Returns an array of String objects containing
all of the values the given request parameter has, or
null if the parameter does not exist.
- getParameterValues(String) - Method in class servletunit.struts.StrutsRequestWrapper
-
- getPathInfo() - Method in class servletunit.HttpServletRequestSimulator
-
Returns any extra path information associated with
the URL the client sent when it made this request.
- getPathInfo() - Method in class servletunit.struts.StrutsRequestWrapper
-
- getPathTranslated() - Method in class servletunit.HttpServletRequestSimulator
-
This operation is not supported.
- getProtocol() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the name and version of the protocol the request uses
in the form protocol/majorVersion.minorVersion, for
example, HTTP/1.1.
- getQueryString() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the query string that is contained in the request
URL after the path.
- getReader() - Method in class servletunit.HttpServletRequestSimulator
-
This operation is not supported.
- getRealPath(String) - Method in class servletunit.HttpServletRequestSimulator
-
Deprecated.
As of Version 2.1 of the Java Servlet API,
use ServletContext#getRealPath instead.
- getRealPath(String) - Method in class servletunit.ServletContextSimulator
-
- getRedirectLocation() - Method in class servletunit.struts.StrutsResponseWrapper
-
- getRemoteAddr() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the Internet Protocol (IP) address of the client
that sent the request.
- getRemoteHost() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the fully qualified name of the client that sent the
request.
- getRemotePort() - Method in class servletunit.HttpServletRequestSimulator
-
- getRemoteUser() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the fully qualified name of the client that sent the
request.
- getRequest() - Method in class servletunit.FilterChainSimulator
-
Gets the request passed in as a parameter of the doFilter call.
- getRequest() - Method in class servletunit.struts.CactusStrutsTestCase
-
Returns an HttpServletRequest object that can be used in
this test.
- getRequest() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns an HttpServletRequest object that can be used in
this test.
- getRequestDispatcher(String) - Method in class servletunit.HttpServletRequestSimulator
-
Returns a RequestDispatcher object that acts as a wrapper for
the resource located at the given path.
- getRequestDispatcher(String) - Method in class servletunit.ServletContextSimulator
-
Returns a RequestDispatcher object that acts
as a wrapper for the resource located at the given path.
- getRequestDispatcher(String) - Method in class servletunit.struts.StrutsServletContextWrapper
-
- getRequestDispatcherSimulator() - Method in class servletunit.ServletContextSimulator
-
Returns the mock RequestDispatcher object used in this test.
- getRequestedSessionId() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the session ID specified by the client.
- getRequestURI() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the part of this request's URL from the protocol
name up to the query string in the first line of the HTTP request.
- getRequestURL() - Method in class servletunit.HttpServletRequestSimulator
-
Reconstructs the URL the client used to make the request.
- getRequestWrapper() - Method in class servletunit.struts.CactusStrutsTestCase
-
Returns a HttpServletRequestWrapper object that can be used
in this test.
- getRequestWrapper() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns a HttpServletRequestWrapper object that can be used
in this test.
- getResource(String) - Method in class servletunit.ServletContextSimulator
-
TODO: add appropriate comments
- getResource(String) - Method in class servletunit.struts.StrutsServletContextWrapper
-
Override the getResource method to look for resources in the file system, allowing
the use of absolute paths for Struts configuration files.
- getResourceAsFile(String) - Method in class servletunit.ServletContextSimulator
-
Attempts to load a resource from the underlying file system
and return a file handle to it.
- getResourceAsStream(String) - Method in class servletunit.ServletContextSimulator
-
Returns the resource located at the named path as
an InputStream object.
- getResourceAsStream(String) - Method in class servletunit.struts.StrutsServletContextWrapper
-
Override the getResourceAsStream method to look for resources in the file system, allowing
the use of absolute paths for Struts configuration files.
- getResourcePaths() - Method in class servletunit.ServletContextSimulator
-
Unsupported in this version.
- getResourcePaths(String) - Method in class servletunit.ServletContextSimulator
-
Unsupported in this version.
- getResponse() - Method in class servletunit.FilterChainSimulator
-
* Gets the response passed in as a parameter of the doFilter call.
- getResponse() - Method in class servletunit.struts.CactusStrutsTestCase
-
Returns an HttpServletResponse object that can be used in
this test.
- getResponse() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns an HttpServletResponse object that can be used in
this test.
- getResponseWrapper() - Method in class servletunit.struts.CactusStrutsTestCase
-
Returns an HttpServletResponseWrapper object that can be used in
this test.
- getResponseWrapper() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns an HttpServletResponseWrapper object that can be used in
this test.
- getScheme() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the name of the scheme used to make this request,
for example,
http, https, or ftp.
- getServerInfo() - Method in class servletunit.ServletContextSimulator
-
Returns the name and version of the servlet container on which
the servlet is running.
- getServerName() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the host name of the server that received
the request.
- getServerPort() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the port number on which this request was received.
- getServlet(String) - Method in class servletunit.ServletContextSimulator
-
Unsupported in this version.
- getServletContext() - Method in class servletunit.FilterConfigSimulator
-
Gets the servletContext attribute of the FilterConfigSimulator object
- getServletContext() - Method in class servletunit.HttpSessionSimulator
-
- getServletContext() - Method in class servletunit.ServletConfigSimulator
-
Returns a reference to the ServletContext in which the caller
is executing.
- getServletContext() - Method in class servletunit.struts.StrutsServletConfigWrapper
-
- getServletContextName() - Method in class servletunit.ServletContextSimulator
-
Unsupported in this version.
- getServletName() - Method in class servletunit.ServletConfigSimulator
-
Returns the name of this servlet instance.
- getServletNames() - Method in class servletunit.ServletContextSimulator
-
Unsupported in this version.
- getServletPath() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the part of this request's URL that calls
the servlet.
- getServletPath() - Method in class servletunit.struts.StrutsRequestWrapper
-
- getServlets() - Method in class servletunit.ServletContextSimulator
-
Unsupported in this version.
- getSession() - Method in class servletunit.HttpServletRequestSimulator
-
Returns the current session associated with this request,
or if the request does not have a session, creates one.
- getSession(boolean) - Method in class servletunit.HttpServletRequestSimulator
-
Returns the current HttpSession
associated with this request or, if if there is no
current session and create is true, returns
a new session.
- getSession() - Method in class servletunit.struts.CactusStrutsTestCase
-
Returns an HttpSession object that can be used in this
test.
- getSession() - Method in class servletunit.struts.MockStrutsTestCase
-
Returns an HttpSession object that can be used in this
test.
- getSessionContext() - Method in class servletunit.HttpSessionSimulator
-
This method is not supported.
- getStatusCode() - Method in class servletunit.HttpServletResponseSimulator
-
Returns the status code for this response, which is useful for testing expected errors.
- getTilesForward(String, HttpServletRequest, ServletContext, ServletConfig) - Static method in class servletunit.struts.Common
-
Retrieves a forward uri for tile - this is required for applications
using the tiles framework, since the actual forward URI must
be fetched from the tile definition.
- getUserPrincipal() - Method in class servletunit.HttpServletRequestSimulator
-
Returns a java.security.Principal object containing
the name of the current authenticated user.
- getValue(String) - Method in class servletunit.HttpSessionSimulator
-
- getValueNames() - Method in class servletunit.HttpSessionSimulator
-
- getWriter() - Method in class servletunit.HttpServletResponseSimulator
-
Returns a PrintWriter object that
can send character text to the client.
- getWriter() - Method in class servletunit.struts.StrutsResponseWrapper
-
- getWriterBuffer() - Method in class servletunit.HttpServletResponseSimulator
-
Use this method to pick up the string buffer which will hold
the contents of the string buffer.
- SC_ACCEPTED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_BAD_GATEWAY - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_BAD_REQUEST - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_CONFLICT - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_CONTINUE - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_CREATED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_EXPECTATION_FAILED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_FORBIDDEN - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_GATEWAY_TIMEOUT - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_GONE - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_HTTP_VERSION_NOT_SUPPORTED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_INTERNAL_SERVER_ERROR - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_LENGTH_REQUIRED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_METHOD_NOT_ALLOWED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_MOVED_PERMANENTLY - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_MOVED_TEMPORARILY - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_MULTIPLE_CHOICES - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_NO_CONTENT - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_NON_AUTHORITATIVE_INFORMATION - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_NOT_ACCEPTABLE - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_NOT_FOUND - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_NOT_IMPLEMENTED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_NOT_MODIFIED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_OK - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_PARTIAL_CONTENT - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_PAYMENT_REQUIRED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_PRECONDITION_FAILED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_PROXY_AUTHENTICATION_REQUIRED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_REQUEST_ENTITY_TOO_LARGE - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_REQUEST_TIMEOUT - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_REQUEST_URI_TOO_LONG - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_REQUESTED_RANGE_NOT_SATISFIABLE - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_RESET_CONTENT - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_SEE_OTHER - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_SERVICE_UNAVAILABLE - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_SWITCHING_PROTOCOLS - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_UNAUTHORIZED - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_UNSUPPORTED_MEDIA_TYPE - Static variable in class servletunit.HttpServletResponseSimulator
-
- SC_USE_PROXY - Static variable in class servletunit.HttpServletResponseSimulator
-
- sendError(int) - Method in class servletunit.HttpServletResponseSimulator
-
Sends an error response to the client using the specified
status clearing the buffer.
- sendError(int, String) - Method in class servletunit.HttpServletResponseSimulator
-
Sends an error response to the client using the specified
status clearing the buffer.
- sendError(int) - Method in class servletunit.struts.StrutsResponseWrapper
-
- sendError(int, String) - Method in class servletunit.struts.StrutsResponseWrapper
-
- sendRedirect(String) - Method in class servletunit.HttpServletResponseSimulator
-
Resets the response and sets the appropriate redirect headers.
- sendRedirect(String) - Method in class servletunit.struts.StrutsResponseWrapper
-
- ServletConfigSimulator - Class in servletunit
-
This class simulates a ServletConfig.
- ServletConfigSimulator() - Constructor for class servletunit.ServletConfigSimulator
-
- ServletContextSimulator - Class in servletunit
-
This class simulates a ServletContext.
- ServletContextSimulator() - Constructor for class servletunit.ServletContextSimulator
-
- servletMapping - Variable in class servletunit.struts.CactusStrutsTestCase
-
- ServletOutputStreamSimulator - Class in servletunit
-
- ServletOutputStreamSimulator() - Constructor for class servletunit.ServletOutputStreamSimulator
-
Default constructor that sends all output to System.out.
- ServletOutputStreamSimulator(OutputStream) - Constructor for class servletunit.ServletOutputStreamSimulator
-
Constructor that sends all output to given OutputStream.
- servletunit - package servletunit
-
- servletunit.struts - package servletunit.struts
-
- setActionForm(ActionForm) - Method in class servletunit.struts.CactusStrutsTestCase
-
Sets an ActionForm instance to be used in this test.
- setActionForm(ActionForm, HttpServletRequest, String, ServletContext) - Static method in class servletunit.struts.Common
-
Sets an ActionForm instance in the request.
- setActionForm(ActionForm) - Method in class servletunit.struts.MockStrutsTestCase
-
Sets an ActionForm instance to be used in this test.
- setActionServlet(ActionServlet) - Method in class servletunit.struts.CactusStrutsTestCase
-
Sets the ActionServlet to be used in this test execution.
- setActionServlet(ActionServlet) - Method in class servletunit.struts.MockStrutsTestCase
-
Sets the ActionServlet to be used in this test execution.
- setAttribute(String, Object) - Method in class servletunit.HttpServletRequestSimulator
-
Stores an attribute in this request.
- setAttribute(String, Object) - Method in class servletunit.HttpSessionSimulator
-
- setAttribute(String, Object) - Method in class servletunit.ServletContextSimulator
-
Binds an object to a given attribute name in this servlet context.
- setAuthType(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setBufferSize(int) - Method in class servletunit.HttpServletResponseSimulator
-
This method is not supported.
- setBufferSize(int) - Method in class servletunit.struts.StrutsResponseWrapper
-
- setCharacterEncoding(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setCharacterEncoding(String) - Method in class servletunit.HttpServletResponseSimulator
-
- setConfigFile(String) - Method in class servletunit.struts.CactusStrutsTestCase
-
Sets the location of the Struts configuration file for the default module.
- setConfigFile(String, String) - Method in class servletunit.struts.CactusStrutsTestCase
-
Sets the struts configuration file for a given sub-application.
- setConfigFile(String) - Method in class servletunit.struts.MockStrutsTestCase
-
Sets the location of the Struts configuration file for the default module.
- setConfigFile(String, String) - Method in class servletunit.struts.MockStrutsTestCase
-
Sets the struts configuration file for a given sub-application.
- setContentLength(int) - Method in class servletunit.HttpServletResponseSimulator
-
Sets the length of the content body in the response
In HTTP servlets, this method sets the HTTP Content-Length header.
- setContentLength(int) - Method in class servletunit.struts.StrutsResponseWrapper
-
- setContentType(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setContentType(String) - Method in class servletunit.HttpServletResponseSimulator
-
Sets the content type of the response being sent to
the client.
- setContentType(String) - Method in class servletunit.struts.StrutsResponseWrapper
-
- setContextDirectory(File) - Method in class servletunit.ServletContextSimulator
-
Sets the absolute context directory to be used in the getRealPath() method.
- setContextDirectory(File) - Method in class servletunit.struts.MockStrutsTestCase
-
Sets the context directory to be used with the getRealPath() methods in
the ServletContext and HttpServletRequest API.
- setContextPath(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setCookies(Cookie[]) - Method in class servletunit.HttpServletRequestSimulator
-
Adds a set of cookies that can be retrieved from this request via the
getCookies() method.
- setDateHeader(String, long) - Method in class servletunit.HttpServletRequestSimulator
-
Sets a header with the appropriate date string given the time in milliseconds.
- setDateHeader(String, long) - Method in class servletunit.HttpServletResponseSimulator
-
This method is not supported.
- setDateHeader(String, long) - Method in class servletunit.struts.StrutsResponseWrapper
-
- setHeader(String, String) - Method in class servletunit.HttpServletRequestSimulator
-
- setHeader(String, String) - Method in class servletunit.HttpServletResponseSimulator
-
adds the name/value pair to the headers
- setHeader(String, String) - Method in class servletunit.struts.StrutsResponseWrapper
-
- setInitParameter(String, String) - Method in class servletunit.ServletConfigSimulator
-
Sets a named initialization parameter with the supplied
String value.
- setInitParameter(String, String) - Method in class servletunit.ServletContextSimulator
-
Sets a named initialization parameter with the supplied
String value.
- setInitParameter(String, String) - Method in class servletunit.struts.CactusStrutsTestCase
-
Sets an initialization parameter on the
ActionServlet.
- setInitParameter(String, String) - Method in class servletunit.struts.MockStrutsTestCase
-
Sets an initialization parameter on the
ActionServlet.
- setIntHeader(String, int) - Method in class servletunit.HttpServletResponseSimulator
-
Adds the given name/value pair to the headers collection.
- setIntHeader(String, int) - Method in class servletunit.struts.StrutsResponseWrapper
-
- setIsCommitted(boolean) - Method in class servletunit.HttpServletResponseSimulator
-
- setLocalAddr(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setLocale(Locale) - Method in class servletunit.HttpServletRequestSimulator
-
- setLocale(Locale) - Method in class servletunit.HttpServletResponseSimulator
-
Sets the locale of the response, setting the headers (including the
Content-Type's charset) as appropriate.
- setLocale(Locale) - Method in class servletunit.struts.StrutsResponseWrapper
-
- setLocalName(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setLocalPort(int) - Method in class servletunit.HttpServletRequestSimulator
-
- setMaxInactiveInterval(int) - Method in class servletunit.HttpSessionSimulator
-
- setMethod(int) - Method in class servletunit.HttpServletRequestSimulator
-
Sets the name of the HTTP method with which this request
was made.
- setOutputStream(OutputStream) - Method in class servletunit.HttpServletResponseSimulator
-
The default action of calling the getOutputStream method
is to return a javax.servlet.ServletOutputStream object
that sends the data to System.out.
- setParameterValue(String, String[]) - Method in class servletunit.HttpServletRequestSimulator
-
- setPathInfo(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setPathInfo(String) - Method in class servletunit.struts.StrutsRequestWrapper
-
- setProcessRequest(boolean) - Method in class servletunit.struts.StrutsServletContextWrapper
-
- setQueryString(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setRemoteAddr(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setRemoteHost(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setRemotePort(int) - Method in class servletunit.HttpServletRequestSimulator
-
- setRemoteUser(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setRequestedSessionId(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setRequestPathInfo(String) - Method in class servletunit.struts.CactusStrutsTestCase
-
Sets the request path instructing the ActionServlet to used a
particual ActionMapping.
- setRequestPathInfo(String, String) - Method in class servletunit.struts.CactusStrutsTestCase
-
Sets the request path instructing the ActionServlet to used a
particual ActionMapping.
- setRequestPathInfo(String) - Method in class servletunit.struts.MockStrutsTestCase
-
Sets the request path instructing the ActionServlet to used a
particual ActionMapping.
- setRequestPathInfo(String, String) - Method in class servletunit.struts.MockStrutsTestCase
-
Sets the request path instructing the ActionServlet to used a
particual ActionMapping.
- setRequestURI(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setRequestURL(String) - Method in class servletunit.HttpServletRequestSimulator
-
Sets the request URL to be used in this test.
- setRequestWrapper(HttpServletRequestWrapper) - Method in class servletunit.struts.CactusStrutsTestCase
-
Set this TestCase to use a given HttpServletRequestWrapper
class when calling Action.execute().
- setRequestWrapper(HttpServletRequestWrapper) - Method in class servletunit.struts.MockStrutsTestCase
-
Set this TestCase to use a given HttpServletRequestWrapper
class when calling Action.execute().
- setResponseWrapper(HttpServletResponseWrapper) - Method in class servletunit.struts.CactusStrutsTestCase
-
Set this TestCase to use a given HttpServletResponseWrapper
class when calling Action.execute().
- setResponseWrapper(HttpServletResponseWrapper) - Method in class servletunit.struts.MockStrutsTestCase
-
Set this TestCase to use a given HttpServletResponseWrapper
class when calling Action.execute().
- setScheme(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setServerName(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setServerPort(int) - Method in class servletunit.HttpServletRequestSimulator
-
Sets the server port to be used with .
- setServletConfigFile(String) - Method in class servletunit.struts.MockStrutsTestCase
-
Sets the location of the web.xml configuration file to be used
to set up the servlet context and configuration for this test.
- setServletContext(ServletContext) - Method in class servletunit.struts.StrutsServletConfigWrapper
-
- setServletMapping(String) - Method in class servletunit.struts.CactusStrutsTestCase
-
Sets the servlet mapping used to map requests to the Struts controller.
- setServletPath(String) - Method in class servletunit.HttpServletRequestSimulator
-
- setServletPath(String) - Method in class servletunit.struts.StrutsRequestWrapper
-
- setStatus(int) - Method in class servletunit.HttpServletResponseSimulator
-
Sets the given status code.
- setStatus(int, String) - Method in class servletunit.HttpServletResponseSimulator
-
Sets the given status and an associated message.
- setStatus(int) - Method in class servletunit.struts.StrutsResponseWrapper
-
- setStatus(int, String) - Method in class servletunit.struts.StrutsResponseWrapper
-
- setUp() - Method in class servletunit.struts.CactusStrutsTestCase
-
Sets up the test fixture for this test.
- setUp() - Method in class servletunit.struts.MockStrutsTestCase
-
Sets up the test fixture for this test.
- setUserPrincipal(Principal) - Method in class servletunit.HttpServletRequestSimulator
-
- setUserRole(String) - Method in class servletunit.HttpServletRequestSimulator
-
- stripActionPath(String) - Static method in class servletunit.struts.Common
-
Strips off *.do from action paths specified as such.
- stripJSessionID(String) - Static method in class servletunit.struts.Common
-
Strip ;jsessionid= from path.
- StrutsRequestWrapper - Class in servletunit.struts
-
A wrapper for the HttpServletRequest class.
- StrutsRequestWrapper(HttpServletRequestWrapper) - Constructor for class servletunit.struts.StrutsRequestWrapper
-
- StrutsResponseWrapper - Class in servletunit.struts
-
A wrapper for the HttpServletResponse class.
- StrutsResponseWrapper(HttpServletResponse) - Constructor for class servletunit.struts.StrutsResponseWrapper
-
- StrutsServletConfigWrapper - Class in servletunit.struts
-
A wrapper for the ServletConfig class.
- StrutsServletConfigWrapper(ServletConfig) - Constructor for class servletunit.struts.StrutsServletConfigWrapper
-
- StrutsServletContextWrapper - Class in servletunit.struts
-
A wrapper for the ServletContext class.
- StrutsServletContextWrapper(ServletContext) - Constructor for class servletunit.struts.StrutsServletContextWrapper
-