# Deprecated API

## Contents

- Interfaces
- Methods
- Constructors

Deprecated Interfaces
Interface
Description
com.meterware.httpunit.HtmlErrorListener
as of 1.5.2, use HTMLParserListener

Deprecated Methods
Method
Description
com.meterware.httpunit.BlockElement.doEvent(String)
since 1.7 - use doEventScript instead
com.meterware.httpunit.cookies.CookieJar.addCookie(String, String)
as of 1.6, use #putCookie
com.meterware.httpunit.FormControl.sendOnChangeEvent()
since 1.7 use doOnChangeEvent instead
com.meterware.httpunit.FormControl.sendOnClickEvent()
since 1.7 use doOnClickEvent instead
com.meterware.httpunit.FormControl.sendOnMouseDownEvent()
since 1.7 use doOnMouseDownEvent instead
com.meterware.httpunit.FormControl.sendOnMouseUpEvent()
since 1.7 use doOnMouseUpEvent instead
com.meterware.httpunit.HttpUnitOptions.addCustomAttribute(String)
for new Scripting engine
com.meterware.httpunit.HttpUnitOptions.addHtmlErrorListener(HTMLParserListener)
as of 1.5.2, use HTMLParserfactory#addHTMLParserListener
com.meterware.httpunit.HttpUnitOptions.getAutoRedirect()
as of 1.5.3, use ClientProperties#isAutoRedirect();
com.meterware.httpunit.HttpUnitOptions.getAutoRefresh()
as of 1.5.3, use ClientProperties#isAutoRefresh();
com.meterware.httpunit.HttpUnitOptions.getHtmlErrorListeners()
as of 1.5.2, removed with no replacement
com.meterware.httpunit.HttpUnitOptions.getParameterValuesValidated()
as of 1.6, use WebForm#newUnvalidatedRequest() to obtain a request without parameter validation.
com.meterware.httpunit.HttpUnitOptions.getParserWarningsEnabled()
as of 1.5.2, use HTMLParserFactory#isParserWarningsEnabled
com.meterware.httpunit.HttpUnitOptions.isAcceptCookies()
as of 1.5.3, use ClientProperties#isAcceptCookies();
com.meterware.httpunit.HttpUnitOptions.isAcceptGzip()
as of 1.5.3, use ClientProperties#isAcceptGzip();
com.meterware.httpunit.HttpUnitOptions.removeHtmlErrorListener(HTMLParserListener)
as of 1.5.2, use HTMLParserfactory#removeHTMLParserListener
com.meterware.httpunit.HttpUnitOptions.setAcceptCookies(boolean)
as of 1.5.3, use ClientProperties#setAcceptCookies();
com.meterware.httpunit.HttpUnitOptions.setAcceptGzip(boolean)
as of 1.5.3, use ClientProperties#setAcceptGzip();
com.meterware.httpunit.HttpUnitOptions.setAutoRedirect(boolean)
as of 1.5.3, use ClientProperties#setAutoRedirect();
com.meterware.httpunit.HttpUnitOptions.setAutoRefresh(boolean)
as of 1.5.3, use ClientProperties#setAutoRefresh();
com.meterware.httpunit.HttpUnitOptions.setParameterValuesValidated(boolean)
as of 1.6, use WebForm#newUnvalidatedRequest() to obtain a request without parameter validation.
com.meterware.httpunit.HttpUnitOptions.setParserWarningsEnabled(boolean)
as of 1.5.2, use HTMLParserFactory#setParserWarningsEnabled
com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(String)
since 1.7 - use doEventScript instead
com.meterware.httpunit.scripting.ScriptingEventHandler.doEvent(String)
since 1.7
com.meterware.httpunit.TableCell.asText()
as of 1.6, use #getText()
com.meterware.httpunit.WebClient.addCookie(String, String)
as of 1.6, use #putCookie instead.
com.meterware.httpunit.WebClient.getCookieJar()
- use with care - was not public in the past
com.meterware.httpunit.WebClient.getUserAgent()
as of 1.4.6. Use ClientProperties#getUserAgent instead.
com.meterware.httpunit.WebClient.setAuthorization(String, String)
as of 1.7. Use #setAuthentication for more accurate emulation of browser behavior.
com.meterware.httpunit.WebClient.setUserAgent(String)
as of 1.4.6. Use ClientProperties#setUserAgent instead.
com.meterware.httpunit.WebLink.asText()
as of 1.6, use #getText instead
com.meterware.httpunit.WebRequestSource.doEvent(String)
since 1.7 - use doEventScript instead
com.meterware.httpunit.WebRequestSource.getPageFrame()
as of 1.6, use #getFrame
com.meterware.servletunit.ServletRunner.setContextParameter(String, Object)
- test case for this function deactivated wf 2007-12-30
com.meterware.servletunit.ServletUnitServletContext.getServlet(String)
as of Servlet API 2.1
com.meterware.servletunit.ServletUnitServletContext.getServletNames()
as of Servlet API 2.1
com.meterware.servletunit.ServletUnitServletContext.getServlets()
as of Servlet API 2.0
com.meterware.servletunit.ServletUnitServletContext.log(Exception, String)
use log( String, Throwable )

Deprecated Constructors
Constructor
Description
com.meterware.servletunit.ServletRunner(String)
as of 1.6, use `ServletRunner(File)`
com.meterware.servletunit.ServletRunner(String, String)
as of 1.6, use `ServletRunner(File,String)`