Method Summary |
|
public static void | addHtmlErrorListener(HTMLParserListener el) Add an Html error listener. |
public static void | clearScriptErrorMessages() Clears the accumulated script error messages. |
public static boolean | getAutoRedirect() Returns true if HttpUnit should automatically follow page redirect requests (status 3xx). |
public static boolean | getAutoRefresh() Returns true if HttpUnit should automatically follow page refresh requests. |
public static String | getDefaultCharacterSet() Returns the character set to be used for pages which do not specify one. |
public static String | getDefaultContentType() Returns the content type to be used for pages which do not specify one. |
public static boolean | getExceptionsThrownOnErrorStatus() Returns true if WebClient.getResponse throws exceptions when detected an error status. |
public static boolean | getExceptionsThrownOnScriptError() Returns true if script errors cause exceptions to be thrown. |
public static Vector | getHtmlErrorListeners() |
public static boolean | getImagesTreatedAsAltText() Returns true if images are treated as text, using their alt attributes. |
public static boolean | getMatchesIgnoreCase() If true, text matches in methods such as
HTMLSegment.getLinkWith are
case insensitive. |
public static boolean | getParameterValuesValidated() Returns true if form parameter settings are checked. |
public static boolean | getParserWarningsEnabled() Returns true if parser warnings are enabled. |
public static int | getRedirectDelay() Returns the delay, in milliseconds, before a redirect request is issues. |
public static String | getScriptEngineClassName() |
public static String[] | getScriptErrorMessages() Returns the accumulated script error messages encountered. |
public static ScriptingEngineFactory | getScriptingEngine() |
public static boolean | isAcceptCookies() Returns true if HttpUnit is accepting and saving cookies. |
public static boolean | isAcceptGzip() Returns true if any WebClient created will accept GZIP encoding of responses. |
public static boolean | isCheckContentLength() Returns true if HttpUnit will throw an exception when a message is only partially received. |
public static boolean | isLoggingHttpHeaders() Returns true if HTTP headers are to be dumped to system output. |
public static boolean | isPostIncludesCharset() Returns true if POST requests should include the character set in the content-type header. |
public static boolean | isScriptingEnabled() |
public static void | removeHtmlErrorListener(HTMLParserListener el) Remove an Html error listener. |
public static void | reset() Resets all options to their default values. |
public static void | resetDefaultCharacterSet() Resets the default character set to the HTTP default encoding. |
public static void | resetDefaultContentType() Resets the default content type to plain text. |
public static void | setAcceptCookies(boolean acceptCookies) Specifies whether HttpUnit should accept and send cookies. |
public static void | setAcceptGzip(boolean acceptGzip) Specifies whether a WebClient will be initialized to accept GZIP encoded responses. |
public static void | setAutoRedirect(boolean autoRedirect) Determines whether HttpUnit should automatically follow page redirect requests (status 3xx). |
public static void | setAutoRefresh(boolean autoRefresh) Specifies whether HttpUnit should automatically follow page refresh requests.
By default, this is false, so that programs can verify the redirect page presented
to users before the browser switches to the new page. |
public static void | setCheckContentLength(boolean checkContentLength) Specifies whether HttpUnit should throw an exception when the content length of a message does not match its
actual received length. |
public static void | setDefaultCharacterSet(String characterSet) Sets the default character set for pages which do not specify one and for requests created without HTML sources. |
public static void | setDefaultContentType(String contentType) Sets the default content type for pages which do not specify one. |
public static void | setExceptionsThrownOnErrorStatus(boolean enabled) If true, WebClient.getResponse throws an exception when it receives an error status. |
public static void | setExceptionsThrownOnScriptError(boolean throwExceptions) Determines whether script errors result in exceptions or warning messages. |
public static void | setImagesTreatedAsAltText(boolean asText) 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. |
public static void | setLoggingHttpHeaders(boolean enabled) If true, tells HttpUnit to log HTTP headers to system output. |
public static void | setMatchesIgnoreCase(boolean ignoreCase) If true, text matches in methods such as
HTMLSegment.getLinkWith are
case insensitive. |
public static void | setParameterValuesValidated(boolean validated) 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. |
public static void | setParserWarningsEnabled(boolean enabled) If true, tells the parser to display warning messages. |
public static void | setPostIncludesCharset(boolean postIncludesCharset) Determines whether a normal POST request will include the character set in the content-type header. |
public static void | setRedirectDelay(int delayInMilliseconds) Sets the delay, in milliseconds, before a redirect request is issued. |
public static void | setScriptEngineClassName(String scriptEngineClassName) |
public static void | setScriptingEnabled(boolean scriptingEnabled) |