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

A

addClientListener(WebClientListener) - Method in class com.meterware.httpunit.WebClient
Adds a listener to watch for requests and responses.
addCookie(String, String) - Method in class com.meterware.httpunit.WebClient
Defines a cookie to be sent to the server on every request.
addEntries(Dictionary) - Method in class com.meterware.httpunit.WebClient.HeaderDictionary
 
addHtmlErrorListener(HtmlErrorListener) - Static method in class com.meterware.httpunit.HttpUnitOptions
Add an Html error listener.
addPresetParameter(String, String) - Method in class com.meterware.httpunit.WebRequestSource
Records a parameter defined by including it in the destination URL.
addPresetParameter(String, String) - Method in class com.meterware.httpunit.WebLink
 
addPresetParameter(String, String) - Method in class com.meterware.httpunit.WebForm
Records a parameter defined by including it in the destination URL.
asText() - Method in class com.meterware.httpunit.WebTable
Returns a rendering of this table with all cells converted to text.
asText() - Method in class com.meterware.httpunit.WebLink
Returns the text value of this link.
asText() - Method in class com.meterware.httpunit.TableCell
Returns the text value of this cell.
AuthorizationRequiredException - exception com.meterware.httpunit.AuthorizationRequiredException.
This exception is thrown when an unauthorized request is made for a page that requires authentication.
AuthorizationRequiredException(String, String) - Constructor for class com.meterware.httpunit.AuthorizationRequiredException
 

B

Base64 - class com.meterware.httpunit.Base64.
$Id: Base64.java,v 1.3 2002/03/21 15:44:03 russgold Exp $ Copyright (c) 2000, Russell Gold Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Base64() - Constructor for class com.meterware.httpunit.Base64
 

C

clearContents() - Method in class com.meterware.httpunit.WebClient
Resets the state of this client, removing all cookies, frames, and per-client headers.
com.meterware.httpunit - package com.meterware.httpunit
Classes for testing http server systems.
com.meterware.servletunit - package com.meterware.servletunit
Classes for unit testing servlets, providing internal access to running servlets using a simulated servlet container.
completeRequest(URLConnection) - Method in class com.meterware.httpunit.MessageBodyWebRequest
Performs any additional processing necessary to complete the request.
completeRequest(URLConnection) - Method in class com.meterware.httpunit.WebRequest
Performs any additional processing necessary to complete the request.

D

decode(String) - Static method in class com.meterware.httpunit.HttpUnitUtils
Returns an interpretation of the specified URL-encoded string.
decode(String) - Static method in class com.meterware.httpunit.Base64
 
DEFAULT_BUFFER_SIZE - Static variable in class com.meterware.httpunit.HttpUnitUtils
 
DEFAULT_TEXT_BUFFER_SIZE - Static variable in class com.meterware.httpunit.HttpUnitUtils
 
defineRawInputStream(InputStream) - Method in class com.meterware.httpunit.WebResponse
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.meterware.servletunit.JUnitServlet
 

E

encode(String) - Static method in class com.meterware.httpunit.Base64
 
equals(Object) - Method in class com.meterware.httpunit.SubmitButton
 
error(URL, String, int, int) - Method in interface com.meterware.httpunit.HtmlErrorListener
callback for HTML errors.

G

get(Object) - Method in class com.meterware.httpunit.WebClient.HeaderDictionary
 
get(String) - Method in interface com.meterware.httpunit.ScriptableObject
Returns the value of the named property.
get(String) - Method in class com.meterware.httpunit.WebForm.Scriptable
 
getAction() - Method in class com.meterware.httpunit.WebForm
Returns the action defined for this form.
getAction() - Method in class com.meterware.httpunit.WebForm.Scriptable
 
getAuthenticationParameter(String) - Method in class com.meterware.httpunit.AuthorizationRequiredException
Returns the named authentication parameter.
getAuthenticationScheme() - Method in class com.meterware.httpunit.AuthorizationRequiredException
Returns the name of the authentication scheme.
getAutoRedirect() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if HttpUnit should automatically follow page redirect requests (status 3xx).
getAutoRefresh() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if HttpUnit should automatically follow page refresh requests.
getBaseURL() - Method in class com.meterware.httpunit.WebRequestSource
 
getCell(int, int) - Method in class com.meterware.httpunit.WebTable
Deprecated. use #getCellAsText
getCellAsText(int, int) - Method in class com.meterware.httpunit.WebTable
Returns the contents of the specified table cell as text.
getCharacterSet() - Method in class com.meterware.httpunit.WebResponse
Returns the character set used in this response.
getCharacterSet() - Method in class com.meterware.httpunit.WebRequest
Returns the character set required for this request.
getCharacterSet() - Method in class com.meterware.httpunit.WebForm
Returns the character set encoding for this form.
getColSpan() - Method in class com.meterware.httpunit.TableCell
Returns the number of columns spanned by this cell.
getColumnCount() - Method in class com.meterware.httpunit.WebTable
Returns the number of columns in the table.
getContentLength() - Method in class com.meterware.httpunit.WebResponse
Returns the content length of this response.
getContentType() - Method in class com.meterware.httpunit.UploadFileSpec
Returns the content type associated with this file upload specification.
getContentType() - Method in class com.meterware.httpunit.MessageBodyWebRequest
 
getContentType() - Method in class com.meterware.httpunit.WebResponse
Returns the content type of this response.
getContentType() - Method in class com.meterware.httpunit.WebRequest
Returns the content type of this request.
getCookieHeaderField() - Method in class com.meterware.httpunit.WebClient
Returns the value of the cookie header, or null if none is defined.
getCookieNames() - Method in class com.meterware.httpunit.WebClient
Returns the name of all the active cookies which will be sent to the server.
getCookieValue(String) - Method in class com.meterware.httpunit.WebClient
Returns the value of the specified cookie.
getDefaultCharacterSet() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns the character set to be used for pages which do not specify one.
getDefaultContentType() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns the content type to be used for pages which do not specify one.
getDestination() - Method in class com.meterware.httpunit.WebRequestSource
 
getDOM() - Method in class com.meterware.httpunit.WebResponse
Returns a copy of the domain object model tree associated with this response.
getDOM() - Method in class com.meterware.httpunit.TableCell
Returns a copy of the domain object model associated with this HTML segment.
getDOMSubtree() - Method in class com.meterware.httpunit.WebRequestSource
Returns a copy of the domain object model subtree associated with this entity.
getExceptionsThrownOnErrorStatus() - Method in class com.meterware.httpunit.WebClient
Returns true if an exception will be thrown when an error status (4xx or 5xx) is detected on a response.
getExceptionsThrownOnErrorStatus() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if WebClient.getResponse throws exceptions when detected an error status.
getExternalStyleSheet() - Method in class com.meterware.httpunit.WebResponse
Returns the stylesheet linked in the head of the page.
getForms() - Method in interface com.meterware.httpunit.HTMLSegment
Returns the forms found in this HTML segment in the order in which they appear.
getForms() - Method in class com.meterware.httpunit.WebResponse
Returns the forms found in the page in the order in which they appear.
getFormWithID(String) - Method in interface com.meterware.httpunit.HTMLSegment
Returns the form found in this HTML segment with the specified ID.
getFormWithID(String) - Method in class com.meterware.httpunit.WebResponse
Returns the form found in the page with the specified ID.
getFormWithName(String) - Method in interface com.meterware.httpunit.HTMLSegment
Returns the form found in this HTML segment with the specified name.
getFormWithName(String) - Method in class com.meterware.httpunit.WebResponse
Returns the form found in the page with the specified name.
getFrameContents(String) - Method in class com.meterware.httpunit.WebClient
Returns the response associated with the specified frame name.
getFrameNames() - Method in class com.meterware.httpunit.WebResponse
Returns the names of the frames found in the page in the order in which they appear.
getFrameNames() - Method in class com.meterware.httpunit.WebClient
Returns the name of the currently active frames.
getHeaderField(String) - Method in class com.meterware.httpunit.WebResponse
Returns the value for the specified header field.
getHeaderField(String) - Method in class com.meterware.httpunit.WebClient
Returns the value for the header field with the specified name.
getHeaderFieldNames() - Method in class com.meterware.httpunit.WebResponse
Returns the names of the header fields found in the response.
getHeaderFields() - Method in class com.meterware.httpunit.WebClient
Returns the value of all current header fields.
getHeaderFields(String) - Method in class com.meterware.httpunit.WebResponse
Returns the values for the specified header field.
getHeaders() - Method in class com.meterware.httpunit.WebRequest
Returns a copy of the headers to be sent with this request.
getHtmlErrorListeners() - Static method in class com.meterware.httpunit.HttpUnitOptions
Get the list of Html Error Listeners
getID() - Method in class com.meterware.httpunit.WebRequestSource
Returns the ID associated with this request source.
getID() - Method in class com.meterware.httpunit.WebTable
Returns the unique ID attribute associated with this table.
getID() - Method in class com.meterware.httpunit.SubmitButton
Returns the ID associated with the button, if any.
getImagesTreatedAsAltText() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if images are treated as text, using their alt attributes.
getInputStream() - Method in class com.meterware.httpunit.WebResponse
Returns a buffered input stream for reading the contents of this reply.
getLinks() - Method in interface com.meterware.httpunit.HTMLSegment
Returns the links found in this HTML segment in the order in which they appear.
getLinks() - Method in class com.meterware.httpunit.WebResponse
Returns the links found in the page in the order in which they appear.
getLinkWith(String) - Method in interface com.meterware.httpunit.HTMLSegment
Returns the first link which contains the specified text.
getLinkWith(String) - Method in class com.meterware.httpunit.WebResponse
Returns the first link which contains the specified text.
getLinkWithID(String) - Method in class com.meterware.httpunit.WebResponse
Returns the link found in the page with the specified ID.
getLinkWithImageText(String) - Method in interface com.meterware.httpunit.HTMLSegment
Returns the first link which contains an image with the specified text as its 'alt' attribute.
getLinkWithImageText(String) - Method in class com.meterware.httpunit.WebResponse
Returns the first link which contains an image with the specified text as its 'alt' attribute.
getLinkWithName(String) - Method in class com.meterware.httpunit.WebResponse
Returns the link found in the page with the specified name.
getMatchesIgnoreCase() - Static method in class com.meterware.httpunit.HttpUnitOptions
If true, text matches in methods such as HTMLSegment.getLinkWith(java.lang.String) are case insensitive.
getMessage() - Method in class com.meterware.httpunit.HttpException
 
getMessage() - Method in class com.meterware.httpunit.AuthorizationRequiredException
 
getMessageBody() - Method in class com.meterware.httpunit.PutMethodWebRequest
Returns a message body based on the input stream.
getMessageBody() - Method in class com.meterware.httpunit.MessageBodyWebRequest
Subclasses must override this method to provide a message body for the request.
getMessageBody() - Method in class com.meterware.httpunit.PostMethodWebRequest
 
getMetaTagContent(String, String) - Method in class com.meterware.httpunit.WebResponse
Retrieves the "content" of the meta tags for a key pair attribute-attributeValue.
getMethod() - Method in class com.meterware.httpunit.PutMethodWebRequest
Returns 'PUT' to indicate the method.
getMethod() - Method in class com.meterware.httpunit.WebRequest
Returns the HTTP method defined for this request.
getMethod() - Method in class com.meterware.httpunit.WebForm
Returns the method defined for this form.
getMethod() - Method in class com.meterware.httpunit.PostMethodWebRequest
Returns the HTTP method defined for this request.
getMethod() - Method in class com.meterware.httpunit.GetMethodWebRequest
Returns the HTTP method defined for this request.
GetMethodWebRequest - class com.meterware.httpunit.GetMethodWebRequest.
An HTTP request using the GET method.
GetMethodWebRequest(String) - Constructor for class com.meterware.httpunit.GetMethodWebRequest
Constructs a web request using a specific absolute url string.
GetMethodWebRequest(URL, String) - Constructor for class com.meterware.httpunit.GetMethodWebRequest
Constructs a web request using a base URL and a relative url string.
GetMethodWebRequest(URL, String, String) - Constructor for class com.meterware.httpunit.GetMethodWebRequest
Constructs a web request with a specific target.
getName() - Method in class com.meterware.httpunit.WebRequestSource
Returns the name associated with this request source.
getNewCookieNames() - Method in class com.meterware.httpunit.WebResponse
Returns a list of new cookie names defined as part of this response.
getNewCookieValue(String) - Method in class com.meterware.httpunit.WebResponse
Returns the new cookie value defined as part of this response.
getNode() - Method in class com.meterware.httpunit.WebRequestSource
Returns the actual DOM for this request source, not a copy.
getNumTextParameters(String) - Method in class com.meterware.httpunit.WebForm
Returns the number of text parameters in this form with the specified name.
getOptions(String) - Method in class com.meterware.httpunit.WebForm
Returns the displayed options defined for the specified parameter name.
getOptionValues(String) - Method in class com.meterware.httpunit.WebForm
Returns the option values defined for the specified parameter name.
getParameter(String) - Method in class com.meterware.httpunit.WebRequest
Returns the value of a parameter in this web request.
getParameterHolder() - Method in class com.meterware.httpunit.WebRequest
 
getParameterNames() - Method in class com.meterware.httpunit.WebRequestSource
Returns an array containing the names of any parameters to be sent on a request based on this request source.
getParameterNames() - Method in class com.meterware.httpunit.WebRequest
Deprecated. use getRequestParameterNames instead
getParameterNames() - Method in class com.meterware.httpunit.WebLink
Returns an array containing the names of any parameters defined as part of this link's URL.
getParameterNames() - Method in class com.meterware.httpunit.WebForm
Returns an array containing the names of the parameters defined for this form.
getParameterValue(String) - Method in class com.meterware.httpunit.WebForm
Returns the default value of the named parameter.
getParameterValues(String) - Method in class com.meterware.httpunit.WebRequestSource
Returns the values of the named parameter.
getParameterValues(String) - Method in class com.meterware.httpunit.WebRequest
Returns the multiple default values of the named parameter.
getParameterValues(String) - Method in class com.meterware.httpunit.WebLink
Returns the multiple default values of the named parameter.
getParameterValues(String) - Method in class com.meterware.httpunit.WebForm
Returns the multiple default values of the named parameter.
getParameterValuesValidated() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if form parameter settings are checked.
getParserWarningsEnabled() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if parser warnings are enabled.
getQueryString() - Method in class com.meterware.httpunit.WebRequest
Returns the query string defined for this request.
getQueryString() - Method in class com.meterware.httpunit.PostMethodWebRequest
Returns the query string defined for this request.
getQueryString() - Method in class com.meterware.httpunit.GetMethodWebRequest
Returns the query string defined for this request.
getRedirectDelay() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns the delay, in milliseconds, before a redirect request is issues.
getRefreshDelay() - Method in class com.meterware.httpunit.WebResponse
Returns the delay before normally following the request to refresh this page, if any.
getRefreshRequest() - Method in class com.meterware.httpunit.WebResponse
Returns a request to refresh this page, if any.
getRequest() - Method in class com.meterware.httpunit.WebRequestSource
Creates and returns a web request from this request source.
getRequest() - Method in class com.meterware.httpunit.WebLink
Creates and returns a web request which will simulate clicking on this link.
getRequest() - Method in class com.meterware.httpunit.WebForm
Creates and returns a web request which will simulate the submission of this form with an unnamed submit button.
getRequest() - Method in interface com.meterware.servletunit.InvocationContext
Returns the request to be processed by the servlet.
getRequest(String) - Method in class com.meterware.httpunit.WebForm
Creates and returns a web request which will simulate the submission of this form with a button with the specified name.
getRequest(String, String) - Method in class com.meterware.httpunit.WebForm
Creates and returns a web request which will simulate the submission of this form with a button with the specified name and value.
getRequest(SubmitButton) - Method in class com.meterware.httpunit.WebForm
Creates and returns a web request which will simulate the submission of this form by pressing the specified button.
getRequest(SubmitButton, int, int) - Method in class com.meterware.httpunit.WebForm
Creates and returns a web request which will simulate the submission of this form by pressing the specified button.
getRequestParameterNames() - Method in class com.meterware.httpunit.WebRequest
Returns an array of all parameter names in this web request.
getResponse() - Method in interface com.meterware.servletunit.InvocationContext
Returns the response which the servlet should modify during its operation.
getResponse(InvocationContext) - Method in class com.meterware.servletunit.ServletUnitClient
Updates this client and returns the response which would be displayed by the user agent.
getResponse(String) - Method in class com.meterware.httpunit.WebClient
Submits a GET method request and returns a response.
getResponse(String) - Method in class com.meterware.servletunit.ServletRunner
Returns the response from the specified servlet using GET.
getResponse(WebRequest) - Method in class com.meterware.httpunit.WebClient
Submits a web request and returns a response, using all state developed so far as stored in cookies as requested by the server.
getResponse(WebRequest) - Method in class com.meterware.servletunit.ServletRunner
Returns the response from the specified servlet.
getResponseCode() - Method in class com.meterware.httpunit.WebResponse
Returns the response code associated with this response.
getResponseCode() - Method in class com.meterware.httpunit.HttpException
 
getResponseMessage() - Method in class com.meterware.httpunit.WebResponse
Returns the response message associated with this response.
getResponseMessage() - Method in class com.meterware.httpunit.HttpException
 
getRowCount() - Method in class com.meterware.httpunit.WebTable
Returns the number of rows in the table.
getRowSpan() - Method in class com.meterware.httpunit.TableCell
Returns the number of rows spanned by this cell.
getScriptableObject() - Method in class com.meterware.httpunit.WebForm
Returns an object which provides scripting access to this form.
getServlet() - Method in interface com.meterware.servletunit.InvocationContext
Returns the selected servlet, initialized to provide access to sessions and servlet context information.
getServletResponse() - Method in interface com.meterware.servletunit.InvocationContext
Returns the final response from the servlet.
getSubframeContents(String) - Method in class com.meterware.httpunit.WebResponse
Returns the contents of the specified subframe of this frameset response.
getSubmitButton(String) - Method in class com.meterware.httpunit.WebForm
Returns the submit button defined in this form with the specified name.
getSubmitButton(String, String) - Method in class com.meterware.httpunit.WebForm
Returns the submit button defined in this form with the specified name and value.
getSubmitButtons() - Method in class com.meterware.httpunit.WebForm
Returns an array containing the submit buttons defined for this form.
getSubmitButtonWithID(String) - Method in class com.meterware.httpunit.WebForm
Returns the submit button defined in this form with the specified ID.
getSummary() - Method in class com.meterware.httpunit.WebTable
Returns the summary attribute associated with this table.
getTableCell(int, int) - Method in class com.meterware.httpunit.WebTable
Returns the contents of the specified table cell as text.
getTableCellWithID(String) - Method in class com.meterware.httpunit.WebTable
Returns the contents of the specified table cell with a given ID
getTables() - Method in interface com.meterware.httpunit.HTMLSegment
Returns the top-level tables found in this HTML segment in the order in which they appear.
getTables() - Method in class com.meterware.httpunit.WebResponse
Returns the top-level tables found in this page in the order in which they appear.
getTableStartingWith(String) - Method in interface com.meterware.httpunit.HTMLSegment
Returns the first table in this HTML segment which has the specified text as the full text of its first non-blank row and non-blank column.
getTableStartingWith(String) - Method in class com.meterware.httpunit.WebResponse
Returns the first table in the response which has the specified text as the full text of its first non-blank row and non-blank column.
getTableStartingWithPrefix(String) - Method in interface com.meterware.httpunit.HTMLSegment
Returns the first table in this HTML segment which has the specified text as a prefix of the text in its first non-blank row and non-blank column.
getTableStartingWithPrefix(String) - Method in class com.meterware.httpunit.WebResponse
Returns the first table in the response which has the specified text as a prefix of the text of its first non-blank row and non-blank column.
getTableWithID(String) - Method in interface com.meterware.httpunit.HTMLSegment
Returns the first table in this HTML segment which has the specified text as its ID attribute.
getTableWithID(String) - Method in class com.meterware.httpunit.WebResponse
Returns the first table in the response which has the specified text as its ID attribute.
getTableWithSummary(String) - Method in interface com.meterware.httpunit.HTMLSegment
Returns the first table in this HTML segment which has the specified text as its summary attribute.
getTableWithSummary(String) - Method in class com.meterware.httpunit.WebResponse
Returns the first table in the response which has the specified text as its summary attribute.
getTarget() - Method in class com.meterware.httpunit.WebRequestSource
Returns the target for this request source.
getTarget() - Method in class com.meterware.httpunit.WebResponse
Returns the target of the page.
getTarget() - Method in class com.meterware.httpunit.WebRequest
Returns the target for this web request.
getTarget() - Method in interface com.meterware.servletunit.InvocationContext
Returns the target for the original request.
getText() - Method in class com.meterware.httpunit.WebResponse
Returns the text of the response (excluding headers) as a string.
getTitle() - Method in class com.meterware.httpunit.WebResponse
Returns the title of the page.
getURL() - Method in class com.meterware.httpunit.WebResponse
Returns the URL which invoked this response.
getURL() - Method in class com.meterware.httpunit.WebRequest
Returns the final URL associated with this web request.
getURLBase() - Method in class com.meterware.httpunit.WebRequest
 
getURLString() - Method in class com.meterware.httpunit.WebRequest
 
getURLString() - Method in class com.meterware.httpunit.WebLink
Returns the URL referenced by this link.
getUserAgent() - Method in class com.meterware.httpunit.WebClient
Returns the current user agent setting.
getValue() - Method in class com.meterware.httpunit.SubmitButton
Returns the value associated with this submit button.
getValues() - Method in class com.meterware.httpunit.SubmitButton
Returns the current value(s) associated with this control.

H

hashCode() - Method in class com.meterware.httpunit.SubmitButton
 
hasParameterNamed(String) - Method in class com.meterware.httpunit.WebForm
Returns true if a parameter with given name exists in this form.
hasParameterStartingWithPrefix(String) - Method in class com.meterware.httpunit.WebForm
Returns true if a parameter starting with a given name exists,
HtmlErrorListener - interface com.meterware.httpunit.HtmlErrorListener.
This interface represents a listener which can receive notification of errors and warnings during the parsing of an HTML page.
HTMLSegment - interface com.meterware.httpunit.HTMLSegment.
Represents the parse tree for a segment of HTML.
HttpException - exception com.meterware.httpunit.HttpException.
This exception is thrown when an Http error (response code 4xx or 5xx) is detected.
HttpException(int) - Constructor for class com.meterware.httpunit.HttpException
 
HttpException(int, String, URL) - Constructor for class com.meterware.httpunit.HttpException
 
HttpInternalErrorException - exception com.meterware.httpunit.HttpInternalErrorException.
This exception is thrown when an internal error is found on the server.
HttpInternalErrorException(URL) - Constructor for class com.meterware.httpunit.HttpInternalErrorException
 
HttpInternalErrorException(URL, Throwable) - Constructor for class com.meterware.httpunit.HttpInternalErrorException
 
HttpNotFoundException - exception com.meterware.httpunit.HttpNotFoundException.
This exception is thrown when the desired URL is not found.
HttpNotFoundException(URL) - Constructor for class com.meterware.httpunit.HttpNotFoundException
 
HttpNotFoundException(URL, Throwable) - Constructor for class com.meterware.httpunit.HttpNotFoundException
 
HttpUnitOptions - class com.meterware.httpunit.HttpUnitOptions.
A collection of global options to control HttpUnit's behavior.
HttpUnitOptions() - Constructor for class com.meterware.httpunit.HttpUnitOptions
 
HttpUnitUtils - class com.meterware.httpunit.HttpUnitUtils.
Utility code shared by httpunit and servletunit.
HttpUnitUtils() - Constructor for class com.meterware.httpunit.HttpUnitUtils
 

I

IllegalRequestParameterException - exception com.meterware.httpunit.IllegalRequestParameterException.
This exception is thrown on an attempt to set a form parameter in a way not possible from a browser.
IllegalRequestParameterException() - Constructor for class com.meterware.httpunit.IllegalRequestParameterException
 
InvocationContext - interface com.meterware.servletunit.InvocationContext.
An interface which represents the invocation of a servlet.
InvocationContextFactory - interface com.meterware.servletunit.InvocationContextFactory.
An interface for an object which acts as a factory of InvocationContexts
isAcceptGzip() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if any WebClient created will accept GZIP encoding of responses.
isCheckContentLength() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if HttpUnit will throw an exception when a message is only partially received.
isFileParameter(String) - Method in class com.meterware.httpunit.WebRequest
Returns true if the specified parameter is a file field.
isFileParameter(String) - Method in class com.meterware.httpunit.WebForm
Returns true if the named parameter accepts files for upload.
isHTML() - Method in class com.meterware.httpunit.WebResponse
Returns true if the response is HTML.
isImageButton() - Method in class com.meterware.httpunit.SubmitButton
Returns true if this submit button is an image map.
isLoggingHttpHeaders() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if HTTP headers are to be dumped to system output.
isMimeEncoded() - Method in class com.meterware.httpunit.WebRequest
Returns true if this request is to be MIME-encoded.
isMultiValuedParameter(String) - Method in class com.meterware.httpunit.WebForm
Returns true if the named parameter accepts multiple values.
isPostIncludesCharset() - Static method in class com.meterware.httpunit.HttpUnitOptions
Returns true if POST requests should include the character set in the content-type header.
isSubmitAsMime() - Method in class com.meterware.httpunit.WebForm
Returns true if this form is to be submitted using mime encoding (the default is URL encoding).
isTextParameter(String) - Method in class com.meterware.httpunit.WebForm
Returns true if the named parameter accepts free-form text.

J

JUnitServlet - class com.meterware.servletunit.JUnitServlet.
A base class for a servlet which can run unit tests inside a servlet context.
JUnitServlet(InvocationContextFactory) - Constructor for class com.meterware.servletunit.JUnitServlet
 

L

loadDestinationParameters() - Method in class com.meterware.httpunit.WebRequestSource
Extracts any parameters specified as part of the destination URL, calling addPresetParameter for each one in the order in which they are found.
loadResponseText() - Method in class com.meterware.httpunit.WebResponse
 

M

maySelectFile(String) - Method in class com.meterware.httpunit.WebRequest
Returns true if selectFile may be called with this parameter.
maySelectFile(String) - Method in class com.meterware.httpunit.PostMethodWebRequest
Returns true if selectFile may be called with this parameter.
MessageBodyWebRequest - class com.meterware.httpunit.MessageBodyWebRequest.
A web request which contains a non-empty message body.
MessageBodyWebRequest.InputStreamMessageBody - class com.meterware.httpunit.MessageBodyWebRequest.InputStreamMessageBody.
A method request message body read directly from an input stream.
MessageBodyWebRequest.InputStreamMessageBody(MessageBodyWebRequest, InputStream, String) - Constructor for class com.meterware.httpunit.MessageBodyWebRequest.InputStreamMessageBody
 
MessageBodyWebRequest(String) - Constructor for class com.meterware.httpunit.MessageBodyWebRequest
Constructs a web request using a specific absolute url string.
MessageBodyWebRequest(URL, String, String) - Constructor for class com.meterware.httpunit.MessageBodyWebRequest
Constructs a web request with a specific target.
MessageBodyWebRequest(WebForm, SubmitButton, int, int) - Constructor for class com.meterware.httpunit.MessageBodyWebRequest
Constructs a web request for a form.

N

newClient() - Method in class com.meterware.servletunit.ServletTestCase
Returns a client object which can access the servlet context in which this test is running.
newClient() - Method in class com.meterware.servletunit.ServletRunner
Creates and returns a new web client that communicates with this servlet runner.
newClient(InvocationContextFactory) - Static method in class com.meterware.servletunit.ServletUnitClient
Creates and returns a new servlet unit client instance.
newInvocation(String) - Method in class com.meterware.servletunit.ServletUnitClient
Creates and returns a new invocation context from a GET request.
newInvocation(WebRequest) - Method in class com.meterware.servletunit.ServletUnitClient
Creates and returns a new invocation context to test calling of servlet methods.
newInvocation(WebRequest, Cookie[], Dictionary, byte[]) - Method in interface com.meterware.servletunit.InvocationContextFactory
Creates and returns a new invocation context to test calling of servlet methods.
newParser() - Static method in class com.meterware.httpunit.HttpUnitUtils
creates a parser using JAXP API.
newResponse(URLConnection) - Static method in class com.meterware.httpunit.WebResponse
Returns a web response built from a URL connection.
newResponse(WebRequest) - Method in class com.meterware.httpunit.WebConversation
Creates a web response object which represents the response to the specified web request.
newResponse(WebRequest) - Method in class com.meterware.httpunit.WebClient
Creates a web response object which represents the response to the specified web request.
newResponse(WebRequest) - Method in class com.meterware.servletunit.ServletUnitClient
Creates a web response object which represents the response to the specified web request.

P

parseContentTypeHeader(String) - Static method in class com.meterware.httpunit.HttpUnitUtils
Returns the content type and encoding as a pair of strings.
PostMethodWebRequest - class com.meterware.httpunit.PostMethodWebRequest.
An HTTP request using the POST method.
PostMethodWebRequest(String) - Constructor for class com.meterware.httpunit.PostMethodWebRequest
Constructs a web request using a specific absolute url string.
PostMethodWebRequest(String, InputStream, String) - Constructor for class com.meterware.httpunit.PostMethodWebRequest
Constructs a web request using a specific absolute url string and input stream.
PostMethodWebRequest(URL, String, String) - Constructor for class com.meterware.httpunit.PostMethodWebRequest
Constructs a web request with a specific target.
purgeEmptyCells() - Method in class com.meterware.httpunit.WebTable
Removes all rows and all columns from this table which have no visible text in them.
put(Object, Object) - Method in class com.meterware.httpunit.WebClient.HeaderDictionary
 
PutMethodWebRequest - class com.meterware.httpunit.PutMethodWebRequest.
A web request using the PUT protocol.
PutMethodWebRequest(String, InputStream, String) - Constructor for class com.meterware.httpunit.PutMethodWebRequest
Constructs a web request using a specific absolute url string and input stream.

R

readRefreshRequest(String) - Method in class com.meterware.httpunit.WebResponse
 
registerServlet(String, String) - Method in class com.meterware.servletunit.ServletRunner
Registers a servlet class to be run.
removeClientListener(WebClientListener) - Method in class com.meterware.httpunit.WebClient
Removes a listener to watch for requests and responses.
removeHtmlErrorListener(HtmlErrorListener) - Static method in class com.meterware.httpunit.HttpUnitOptions
Remove an Html error listener.
removeParameter(String) - Method in class com.meterware.httpunit.WebRequest
Removes a parameter from this web request.
removeParameter(String) - Method in class com.meterware.httpunit.WebForm
Removes a parameter name from this collection.
requestSent(WebClient, WebRequest) - Method in interface com.meterware.httpunit.WebClientListener
Invoked when the web client sends a request.
reset() - Method in class com.meterware.httpunit.WebForm
Resets all parameters to their initial values.
reset() - Static method in class com.meterware.httpunit.HttpUnitOptions
Resets all options to their default values.
resetDefaultCharacterSet() - Static method in class com.meterware.httpunit.HttpUnitOptions
Resets the default character set to the HTTP default encoding.
resetDefaultContentType() - Static method in class com.meterware.httpunit.HttpUnitOptions
Resets the default content type to plain text.
responseReceived(WebClient, WebResponse) - Method in interface com.meterware.httpunit.WebClientListener
Invoked when the web client receives a response.

S

ScriptableObject - interface com.meterware.httpunit.ScriptableObject.
An interface for objects which will be accessible via scripting.
selectFile(String, File) - Method in class com.meterware.httpunit.WebRequest
Sets the file for a parameter upload in a web request.
selectFile(String, File, String) - Method in class com.meterware.httpunit.WebRequest
Sets the file for a parameter upload in a web request.
selectFile(String, String, InputStream, String) - Method in class com.meterware.httpunit.WebRequest
Sets the file for a parameter upload in a web request.
selectImageButtonPosition(SubmitButton, int, int) - Method in class com.meterware.httpunit.WebForm
Specifies the position at which an image button (if any) was clicked.
sendRequest(WebRequest) - Method in class com.meterware.httpunit.WebClient
Submits a web request and returns a response.
ServletRunner - class com.meterware.servletunit.ServletRunner.
This class acts as a test environment for servlets.
ServletRunner() - Constructor for class com.meterware.servletunit.ServletRunner
Default constructor, which defines no servlets.
ServletRunner(InputStream) - Constructor for class com.meterware.servletunit.ServletRunner
Constructor which expects an input stream containing the web.xml for the application.
ServletRunner(InputStream, String) - Constructor for class com.meterware.servletunit.ServletRunner
Constructor which expects an input stream containing the web.xml for the application.
ServletRunner(String) - Constructor for class com.meterware.servletunit.ServletRunner
Constructor which expects the full path to the web.xml for the application.
ServletRunner(String, String) - Constructor for class com.meterware.servletunit.ServletRunner
Constructor which expects the full path to the web.xml for the application and a context path under which to mount it.
ServletTestCase - class com.meterware.servletunit.ServletTestCase.
A base class for test cases to be run via JUnitServlet.
ServletTestCase(String) - Constructor for class com.meterware.servletunit.ServletTestCase
 
ServletUnitClient - class com.meterware.servletunit.ServletUnitClient.
A client for use with the servlet runner class, allowing the testing of servlets without an actual servlet container.
set(String, Object) - Method in interface com.meterware.httpunit.ScriptableObject
Sets the value of the named property.
set(String, Object) - Method in class com.meterware.httpunit.WebForm.Scriptable
 
setAcceptGzip(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
Specifies whether a WebClient will be initialized to accept GZIP encoded responses.
setAction(String) - Method in class com.meterware.httpunit.WebForm.Scriptable
 
setAuthorization(String, String) - Method in class com.meterware.httpunit.WebClient
Sets a username and password for a basic authentication scheme.
setAutoRedirect(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
Determines whether HttpUnit should automatically follow page redirect requests (status 3xx).
setAutoRefresh(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
Specifies whether HttpUnit should automatically follow page refresh requests.
setCheckContentLength(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
Specifies whether HttpUnit should throw an exception when the content length of a message does not match its actual received length.
setContentTypeHeader(String) - Method in class com.meterware.httpunit.WebResponse
Overwrites the current value (if any) of the content type header.
setDefaultCharacterSet(String) - Static method in class com.meterware.httpunit.HttpUnitOptions
Sets the default character set for pages which do not specify one.
setDefaultContentType(String) - Static method in class com.meterware.httpunit.HttpUnitOptions
Sets the default content type for pages which do not specify one.
setExceptionsThrownOnErrorStatus(boolean) - Method in class com.meterware.httpunit.WebClient
Specifies whether an exception will be thrown when an error status (4xx or 5xx) is detected on a response.
setExceptionsThrownOnErrorStatus(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
If true, WebClient.getResponse throws an exception when it receives an error status.
setHeaderField(String, String) - Method in class com.meterware.httpunit.WebRequest
Sets the value of a header to be sent with this request.
setHeaderField(String, String) - Method in class com.meterware.httpunit.WebClient
Sets the value for a header field to be sent with all requests.
setImageButtonClickPosition(int, int) - Method in class com.meterware.httpunit.WebRequest
Specifies the click position for the submit button.
setImagesTreatedAsAltText(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
If true, tells HttpUnit to treat images with alt attributes as though they were the text value of that attribute in all searches and displays.
setLocation(int, int) - Method in class com.meterware.httpunit.SubmitButton
 
setLoggingHttpHeaders(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
If true, tells HttpUnit to log HTTP headers to system output.
setMatchesIgnoreCase(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
If true, text matches in methods such as HTMLSegment.getLinkWith(java.lang.String) are case insensitive.
setMimeEncoded(boolean) - Method in class com.meterware.httpunit.WebRequest
Selects whether MIME-encoding will be used for this request.
setMimeEncoded(boolean) - Method in class com.meterware.httpunit.PostMethodWebRequest
Selects whether MIME-encoding will be used for this request.
setParameter(String, String) - Method in class com.meterware.httpunit.WebRequest
Sets the value of a parameter in a web request.
setParameter(String, String) - Method in class com.meterware.httpunit.WebForm
Sets the value of a parameter in this form.
setParameter(String, String[]) - Method in class com.meterware.httpunit.WebRequest
Sets the multiple values of a parameter in a web request.
setParameter(String, String[]) - Method in class com.meterware.httpunit.WebForm
 
setParameter(String, UploadFileSpec[]) - Method in class com.meterware.httpunit.WebRequest
Sets the multiple values of a file upload parameter in a web request.
setParameter(String, UploadFileSpec[]) - Method in class com.meterware.httpunit.WebForm
Sets the multiple values of a file upload parameter in a web request.
setParameterValue(String, String) - Method in class com.meterware.httpunit.WebForm.Scriptable
 
setParameterValuesValidated(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
If true, tells HttpUnit to throw an exception on any attempt to set a form parameter to a value which could not be set via the browser.
setParserWarningsEnabled(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
If true, tells the parser to display warning messages.
setPostIncludesCharset(boolean) - Static method in class com.meterware.httpunit.HttpUnitOptions
Determines whether a normal POST request will include the character set in the content-type header.
setPressed(boolean) - Method in class com.meterware.httpunit.SubmitButton
 
setRedirectDelay(int) - Static method in class com.meterware.httpunit.HttpUnitOptions
Sets the delay, in milliseconds, before a redirect request is issued.
setUserAgent(String) - Method in class com.meterware.httpunit.WebClient
Specifies the user agent identification.
SubmitButton - class com.meterware.httpunit.SubmitButton.
This class represents a submit button in an HTML form.

T

TableCell - class com.meterware.httpunit.TableCell.
A single cell in an HTML table.
toString() - Method in class com.meterware.httpunit.WebTable
 
toString() - Method in class com.meterware.httpunit.WebResponse
 
toString() - Method in class com.meterware.httpunit.WebRequest
 
toString() - Method in class com.meterware.httpunit.SubmitButton
 

U

UNNAMED_BUTTON - Static variable in class com.meterware.httpunit.SubmitButton
 
updateClient(WebResponse) - Method in class com.meterware.httpunit.WebClient
Updates this web client based on a received response.
UploadFileSpec - class com.meterware.httpunit.UploadFileSpec.
A description of a file to be uploaded as part of a form submission.
UploadFileSpec(File) - Constructor for class com.meterware.httpunit.UploadFileSpec
Creates a specification based on a File object.
UploadFileSpec(File, String) - Constructor for class com.meterware.httpunit.UploadFileSpec
Creates a specification based on a File object and with a specified content type.
UploadFileSpec(String, InputStream, String) - Constructor for class com.meterware.httpunit.UploadFileSpec
Creates a specification for an upload from an input stream.

W

warning(URL, String, int, int) - Method in interface com.meterware.httpunit.HtmlErrorListener
callback for HTML warning.
WebClient - class com.meterware.httpunit.WebClient.
The context for a series of web requests.
WebClient.HeaderDictionary - class com.meterware.httpunit.WebClient.HeaderDictionary.
 
WebClient.HeaderDictionary() - Constructor for class com.meterware.httpunit.WebClient.HeaderDictionary
 
WebClient() - Constructor for class com.meterware.httpunit.WebClient
 
WebClientListener - interface com.meterware.httpunit.WebClientListener.
A listener for messages sent and received by a web client.
WebConversation - class com.meterware.httpunit.WebConversation.
The context for a series of HTTP requests.
WebConversation() - Constructor for class com.meterware.httpunit.WebConversation
Creates a new web conversation.
WebForm - class com.meterware.httpunit.WebForm.
This class represents a form in an HTML page.
WebForm.Scriptable - class com.meterware.httpunit.WebForm.Scriptable.
 
WebForm.Scriptable() - Constructor for class com.meterware.httpunit.WebForm.Scriptable
 
WebLink - class com.meterware.httpunit.WebLink.
This class represents a link in an HTML page.
WebRequest - class com.meterware.httpunit.WebRequest.
A request sent to a web server.
WebRequest(String) - Constructor for class com.meterware.httpunit.WebRequest
Constructs a web request using an absolute URL string.
WebRequest(URL, String) - Constructor for class com.meterware.httpunit.WebRequest
Constructs a web request using a base URL and a relative URL string.
WebRequest(URL, String, String) - Constructor for class com.meterware.httpunit.WebRequest
Constructs a web request using a base URL, a relative URL string, and a target.
WebRequest(WebForm, SubmitButton, int, int) - Constructor for class com.meterware.httpunit.WebRequest
Constructs a web request from a form.
WebRequest(WebRequestSource) - Constructor for class com.meterware.httpunit.WebRequest
 
WebRequest(WebRequest, String, String) - Constructor for class com.meterware.httpunit.WebRequest
Constructs a web request using a base request and a relative URL string.
WebRequestSource - class com.meterware.httpunit.WebRequestSource.
 
WebResponse - class com.meterware.httpunit.WebResponse.
A response to a web request from a web server.
WebResponse(String, URL) - Constructor for class com.meterware.httpunit.WebResponse
Constructs a response object.
WebTable - class com.meterware.httpunit.WebTable.
This class represents a table in an HTML page.
writeMessageBody(OutputStream) - Method in class com.meterware.httpunit.MessageBodyWebRequest
 
writeMessageBody(OutputStream) - Method in class com.meterware.httpunit.WebRequest
Writes the contents of the message body to the specified stream.
writeMessageBody(WebRequest, OutputStream) - Method in class com.meterware.httpunit.WebClient
Writes the message body for the request.

A B C D E G H I J L M N P R S T U W
Copyright © 2000-2002 Russell Gold. See license agreement for rights granted.