/usr/share/doc/libhttpunit-java/api/com/meterware/httpunit/WebClient.html is in libhttpunit-java-doc 1.7+dfsg-14.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html>
<head>
<!-- Generated by javadoc -->
<title>WebClient (HttpUnit 1.7 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
<script type="text/javascript" src="../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="WebClient (HttpUnit 1.7 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":42,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":42,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":42,"i27":6,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":42,"i35":10,"i36":10,"i37":10,"i38":10,"i39":6,"i40":10,"i41":42,"i42":10,"i43":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../";loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/meterware/httpunit/WebApplet.html" title="class in com.meterware.httpunit"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../com/meterware/httpunit/WebClient.HeaderDictionary.html" title="class in com.meterware.httpunit"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/meterware/httpunit/WebClient.html" target="_top">Frames</a></li>
<li><a href="WebClient.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<ul class="navListSearch">
<li><span>SEARCH: </span>
<input type="text" id="search" value=" " disabled="disabled">
<input type="reset" id="reset" value=" " disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding"> </div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="../../../com/meterware/httpunit/package-summary.html">com.meterware.httpunit</a></div>
<h2 title="Class WebClient" class="title">Class WebClient</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.meterware.httpunit.WebClient</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="../../../com/meterware/servletunit/ServletUnitClient.html" title="class in com.meterware.servletunit">ServletUnitClient</a></code>, <code><a href="../../../com/meterware/httpunit/WebConversation.html" title="class in com.meterware.httpunit">WebConversation</a></code></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="typeNameLabel">WebClient</span>
extends java.lang.Object</pre>
<div class="block">The context for a series of web requests. This class manages cookies used to maintain
session context, computes relative URLs, and generally emulates the browser behavior
needed to build an automated test of a web site.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd><a href="mailto:russgold@httpunit.org">Russell Gold</a>, Jan Ohrstrom, Seth Ladd, Oliver Imbusch</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class </code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.HeaderDictionary.html" title="class in com.meterware.httpunit">WebClient.HeaderDictionary</a></span></code></th>
<td class="colLast"> </td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colSecond" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#WebClient--">WebClient</a></span>​()</code></th>
<td class="colLast"> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#addClientListener-com.meterware.httpunit.WebClientListener-">addClientListener</a></span>​(<a href="../../../com/meterware/httpunit/WebClientListener.html" title="interface in com.meterware.httpunit">WebClientListener</a> listener)</code></th>
<td class="colLast">
<div class="block">Adds a listener to watch for requests and responses.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#addCookie-java.lang.String-java.lang.String-">addCookie</a></span>​(java.lang.String name,
java.lang.String value)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="block"><span class="deprecationComment">as of 1.6, use #putCookie instead.</span></div>
</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#addWindowListener-com.meterware.httpunit.WebWindowListener-">addWindowListener</a></span>​(<a href="../../../com/meterware/httpunit/WebWindowListener.html" title="interface in com.meterware.httpunit">WebWindowListener</a> listener)</code></th>
<td class="colLast">
<div class="block">Adds a listener to watch for window openings and closings.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#clearContents--">clearContents</a></span>​()</code></th>
<td class="colLast">
<div class="block">Resets the state of this client, removing all cookies, frames, and per-client headers.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#clearProxyServer--">clearProxyServer</a></span>​()</code></th>
<td class="colLast">
<div class="block">Clears the proxy server settings.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/ClientProperties.html" title="class in com.meterware.httpunit">ClientProperties</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getClientProperties--">getClientProperties</a></span>​()</code></th>
<td class="colLast">
<div class="block">Returns the properties associated with this client.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/cookies/Cookie.html" title="class in com.meterware.httpunit.cookies">Cookie</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getCookieDetails-java.lang.String-">getCookieDetails</a></span>​(java.lang.String name)</code></th>
<td class="colLast">
<div class="block">Returns an object containing the details of the named cookie</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/cookies/CookieJar.html" title="class in com.meterware.httpunit.cookies">CookieJar</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getCookieJar--">getCookieJar</a></span>​()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="block"><span class="deprecationComment">- use with care - was not public in the past</span></div>
</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>java.lang.String[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getCookieNames--">getCookieNames</a></span>​()</code></th>
<td class="colLast">
<div class="block">Returns the name of all the active cookies which will be sent to the server.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getCookieValue-java.lang.String-">getCookieValue</a></span>​(java.lang.String name)</code></th>
<td class="colLast">
<div class="block">Returns the value of the specified cookie.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getCurrentPage--">getCurrentPage</a></span>​()</code></th>
<td class="colLast">
<div class="block">Returns the response representing the current top page in the main window.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getExceptionsThrownOnErrorStatus--">getExceptionsThrownOnErrorStatus</a></span>​()</code></th>
<td class="colLast">
<div class="block">Returns true if an exception will be thrown when an error status (4xx or 5xx) is detected on a response.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getFrameContents-com.meterware.httpunit.FrameSelector-">getFrameContents</a></span>​(<a href="../../../com/meterware/httpunit/FrameSelector.html" title="class in com.meterware.httpunit">FrameSelector</a> targetFrame)</code></th>
<td class="colLast">
<div class="block">Returns the response associated with the specified frame name in the main window.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getFrameContents-java.lang.String-">getFrameContents</a></span>​(java.lang.String frameName)</code></th>
<td class="colLast">
<div class="block">Returns the response associated with the specified frame name in the main window.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>java.lang.String[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getFrameNames--">getFrameNames</a></span>​()</code></th>
<td class="colLast">
<div class="block">Returns the name of the currently active frames in the main window.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getHeaderField-java.lang.String-">getHeaderField</a></span>​(java.lang.String fieldName)</code></th>
<td class="colLast">
<div class="block">Returns the value for the header field with the specified name.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>protected java.util.Dictionary</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getHeaderFields-java.net.URL-">getHeaderFields</a></span>​(java.net.URL targetURL)</code></th>
<td class="colLast">
<div class="block">Returns the value of all current header fields.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebWindow.html" title="class in com.meterware.httpunit">WebWindow</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getMainWindow--">getMainWindow</a></span>​()</code></th>
<td class="colLast"> </td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getNextAlert--">getNextAlert</a></span>​()</code></th>
<td class="colLast">
<div class="block">Returns the next javascript alert without removing it from the queue.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebWindow.html" title="class in com.meterware.httpunit">WebWindow</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getOpenWindow-java.lang.String-">getOpenWindow</a></span>​(java.lang.String name)</code></th>
<td class="colLast"> </td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebWindow.html" title="class in com.meterware.httpunit">WebWindow</a>[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getOpenWindows--">getOpenWindows</a></span>​()</code></th>
<td class="colLast"> </td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getProxyHost--">getProxyHost</a></span>​()</code></th>
<td class="colLast">
<div class="block">Returns the name of the active proxy server.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getProxyPort--">getProxyPort</a></span>​()</code></th>
<td class="colLast">
<div class="block">Returns the number of the active proxy port, or 0 is none is specified.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getResource-com.meterware.httpunit.WebRequest-">getResource</a></span>​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request)</code></th>
<td class="colLast">
<div class="block">Returns the resource specified by the request.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getResponse-com.meterware.httpunit.WebRequest-">getResponse</a></span>​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request)</code></th>
<td class="colLast">
<div class="block">Submits a web request and returns a response, using all state developed so far as stored in
cookies as requested by the server.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getResponse-java.lang.String-">getResponse</a></span>​(java.lang.String urlString)</code></th>
<td class="colLast">
<div class="block">Submits a GET method request and returns a response.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#getUserAgent--">getUserAgent</a></span>​()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="block"><span class="deprecationComment">as of 1.4.6. Use ClientProperties#getUserAgent instead.</span></div>
</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>protected abstract <a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#newResponse-com.meterware.httpunit.WebRequest-com.meterware.httpunit.FrameSelector-">newResponse</a></span>​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request,
<a href="../../../com/meterware/httpunit/FrameSelector.html" title="class in com.meterware.httpunit">FrameSelector</a> targetFrame)</code></th>
<td class="colLast">
<div class="block">Creates a web response object which represents the response to the specified web request.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#popNextAlert--">popNextAlert</a></span>​()</code></th>
<td class="colLast">
<div class="block">Returns the next javascript alert and removes it from the queue.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#putCookie-java.lang.String-java.lang.String-">putCookie</a></span>​(java.lang.String name,
java.lang.String value)</code></th>
<td class="colLast">
<div class="block">Defines a cookie to be sent to the server on every request.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#removeClientListener-com.meterware.httpunit.WebClientListener-">removeClientListener</a></span>​(<a href="../../../com/meterware/httpunit/WebClientListener.html" title="interface in com.meterware.httpunit">WebClientListener</a> listener)</code></th>
<td class="colLast">
<div class="block">Removes a listener to watch for requests and responses.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#removeWindowListener-com.meterware.httpunit.WebWindowListener-">removeWindowListener</a></span>​(<a href="../../../com/meterware/httpunit/WebWindowListener.html" title="interface in com.meterware.httpunit">WebWindowListener</a> listener)</code></th>
<td class="colLast">
<div class="block">Removes a listener to watch for window openings and closings.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#sendRequest-com.meterware.httpunit.WebRequest-">sendRequest</a></span>​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request)</code></th>
<td class="colLast">
<div class="block">Submits a web request and returns a response.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#setAuthentication-java.lang.String-java.lang.String-java.lang.String-">setAuthentication</a></span>​(java.lang.String realm,
java.lang.String username,
java.lang.String password)</code></th>
<td class="colLast">
<div class="block">Specifies a username and password for on-demand authentication.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#setAuthorization-java.lang.String-java.lang.String-">setAuthorization</a></span>​(java.lang.String userName,
java.lang.String password)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="block"><span class="deprecationComment">as of 1.7. Use #setAuthentication for more accurate emulation of browser behavior.</span></div>
</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#setDialogResponder-com.meterware.httpunit.DialogResponder-">setDialogResponder</a></span>​(<a href="../../../com/meterware/httpunit/DialogResponder.html" title="interface in com.meterware.httpunit">DialogResponder</a> responder)</code></th>
<td class="colLast">
<div class="block">Specifies the object which will respond to all dialogs.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#setExceptionsThrownOnErrorStatus-boolean-">setExceptionsThrownOnErrorStatus</a></span>​(boolean throwExceptions)</code></th>
<td class="colLast">
<div class="block">Specifies whether an exception will be thrown when an error status (4xx or 5xx) is detected on a response.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#setHeaderField-java.lang.String-java.lang.String-">setHeaderField</a></span>​(java.lang.String fieldName,
java.lang.String fieldValue)</code></th>
<td class="colLast">
<div class="block">Sets the value for a header field to be sent with all requests.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#setMainWindow-com.meterware.httpunit.WebWindow-">setMainWindow</a></span>​(<a href="../../../com/meterware/httpunit/WebWindow.html" title="class in com.meterware.httpunit">WebWindow</a> mainWindow)</code></th>
<td class="colLast"> </td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>abstract void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#setProxyServer-java.lang.String-int-">setProxyServer</a></span>​(java.lang.String proxyHost,
int proxyPort)</code></th>
<td class="colLast">
<div class="block">Specifies a proxy server to use for requests from this client.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#setProxyServer-java.lang.String-int-java.lang.String-java.lang.String-">setProxyServer</a></span>​(java.lang.String proxyHost,
int proxyPort,
java.lang.String userName,
java.lang.String password)</code></th>
<td class="colLast">
<div class="block">Specifies a proxy server to use, along with a user and password for authentication.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#setUserAgent-java.lang.String-">setUserAgent</a></span>​(java.lang.String userAgent)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="block"><span class="deprecationComment">as of 1.4.6. Use ClientProperties#setUserAgent instead.</span></div>
</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#updateMainWindow-com.meterware.httpunit.FrameSelector-com.meterware.httpunit.WebResponse-">updateMainWindow</a></span>​(<a href="../../../com/meterware/httpunit/FrameSelector.html" title="class in com.meterware.httpunit">FrameSelector</a> frame,
<a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> response)</code></th>
<td class="colLast">
<div class="block">Updates this web client based on a received response.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/httpunit/WebClient.html#writeMessageBody-com.meterware.httpunit.WebRequest-java.io.OutputStream-">writeMessageBody</a></span>​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request,
java.io.OutputStream stream)</code></th>
<td class="colLast">
<div class="block">Writes the message body for the request.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="WebClient--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>WebClient</h4>
<pre>protected WebClient​()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getMainWindow--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMainWindow</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebWindow.html" title="class in com.meterware.httpunit">WebWindow</a> getMainWindow​()</pre>
</li>
</ul>
<a name="setMainWindow-com.meterware.httpunit.WebWindow-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMainWindow</h4>
<pre>public void setMainWindow​(<a href="../../../com/meterware/httpunit/WebWindow.html" title="class in com.meterware.httpunit">WebWindow</a> mainWindow)</pre>
</li>
</ul>
<a name="getOpenWindows--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOpenWindows</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebWindow.html" title="class in com.meterware.httpunit">WebWindow</a>[] getOpenWindows​()</pre>
</li>
</ul>
<a name="getOpenWindow-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOpenWindow</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebWindow.html" title="class in com.meterware.httpunit">WebWindow</a> getOpenWindow​(java.lang.String name)</pre>
</li>
</ul>
<a name="getResponse-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResponse</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> getResponse​(java.lang.String urlString)
throws java.io.IOException,
org.xml.sax.SAXException</pre>
<div class="block">Submits a GET method request and returns a response.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.xml.sax.SAXException</code> - thrown if there is an error parsing the retrieved page</dd>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
<a name="sendRequest-com.meterware.httpunit.WebRequest-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendRequest</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> sendRequest​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request)
throws java.io.IOException,
org.xml.sax.SAXException</pre>
<div class="block">Submits a web request and returns a response. This is an alternate name for the getResponse method.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
<dd><code>org.xml.sax.SAXException</code></dd>
</dl>
</li>
</ul>
<a name="getCurrentPage--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentPage</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> getCurrentPage​()</pre>
<div class="block">Returns the response representing the current top page in the main window.</div>
</li>
</ul>
<a name="getResponse-com.meterware.httpunit.WebRequest-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResponse</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> getResponse​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request)
throws java.io.IOException,
org.xml.sax.SAXException</pre>
<div class="block">Submits a web request and returns a response, using all state developed so far as stored in
cookies as requested by the server.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.xml.sax.SAXException</code> - thrown if there is an error parsing the retrieved page</dd>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
<a name="getFrameNames--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFrameNames</h4>
<pre>public java.lang.String[] getFrameNames​()</pre>
<div class="block">Returns the name of the currently active frames in the main window.</div>
</li>
</ul>
<a name="getFrameContents-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFrameContents</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> getFrameContents​(java.lang.String frameName)</pre>
<div class="block">Returns the response associated with the specified frame name in the main window.
Throws a runtime exception if no matching frame is defined.</div>
</li>
</ul>
<a name="getFrameContents-com.meterware.httpunit.FrameSelector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFrameContents</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> getFrameContents​(<a href="../../../com/meterware/httpunit/FrameSelector.html" title="class in com.meterware.httpunit">FrameSelector</a> targetFrame)</pre>
<div class="block">Returns the response associated with the specified frame name in the main window.
Throws a runtime exception if no matching frame is defined.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.6</dd>
</dl>
</li>
</ul>
<a name="getResource-com.meterware.httpunit.WebRequest-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResource</h4>
<pre>public <a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> getResource​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request)
throws java.io.IOException</pre>
<div class="block">Returns the resource specified by the request. Does not update the client or load included framesets or scripts.
May return null if the resource is a JavaScript URL which would normally leave the client unchanged.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
<a name="clearContents--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearContents</h4>
<pre>public void clearContents​()</pre>
<div class="block">Resets the state of this client, removing all cookies, frames, and per-client headers. This does not affect
any listeners or preferences which may have been set.</div>
</li>
</ul>
<a name="addCookie-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addCookie</h4>
<pre>public void addCookie​(java.lang.String name,
java.lang.String value)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">as of 1.6, use #putCookie instead.</span></div>
<div class="block">Defines a cookie to be sent to the server on every request.</div>
</li>
</ul>
<a name="putCookie-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putCookie</h4>
<pre>public void putCookie​(java.lang.String name,
java.lang.String value)</pre>
<div class="block">Defines a cookie to be sent to the server on every request. This overrides any previous setting for this cookie name.</div>
</li>
</ul>
<a name="getCookieNames--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCookieNames</h4>
<pre>public java.lang.String[] getCookieNames​()</pre>
<div class="block">Returns the name of all the active cookies which will be sent to the server.</div>
</li>
</ul>
<a name="getCookieDetails-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCookieDetails</h4>
<pre>public <a href="../../../com/meterware/httpunit/cookies/Cookie.html" title="class in com.meterware.httpunit.cookies">Cookie</a> getCookieDetails​(java.lang.String name)</pre>
<div class="block">Returns an object containing the details of the named cookie</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>[ 1488617 ] alternate patch for cookie bug #1371204</dd>
</dl>
</li>
</ul>
<a name="getCookieValue-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCookieValue</h4>
<pre>public java.lang.String getCookieValue​(java.lang.String name)</pre>
<div class="block">Returns the value of the specified cookie.</div>
</li>
</ul>
<a name="getClientProperties--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClientProperties</h4>
<pre>public <a href="../../../com/meterware/httpunit/ClientProperties.html" title="class in com.meterware.httpunit">ClientProperties</a> getClientProperties​()</pre>
<div class="block">Returns the properties associated with this client.</div>
</li>
</ul>
<a name="setUserAgent-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUserAgent</h4>
<pre>public void setUserAgent​(java.lang.String userAgent)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">as of 1.4.6. Use ClientProperties#setUserAgent instead.</span></div>
<div class="block">Specifies the user agent identification. Used to trigger browser-specific server behavior.</div>
</li>
</ul>
<a name="getUserAgent--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUserAgent</h4>
<pre>public java.lang.String getUserAgent​()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">as of 1.4.6. Use ClientProperties#getUserAgent instead.</span></div>
<div class="block">Returns the current user agent setting.</div>
</li>
</ul>
<a name="setAuthorization-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAuthorization</h4>
<pre>public void setAuthorization​(java.lang.String userName,
java.lang.String password)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">as of 1.7. Use #setAuthentication for more accurate emulation of browser behavior.</span></div>
<div class="block">Sets a username and password for a basic authentication scheme.</div>
</li>
</ul>
<a name="setAuthentication-java.lang.String-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAuthentication</h4>
<pre>public void setAuthentication​(java.lang.String realm,
java.lang.String username,
java.lang.String password)</pre>
<div class="block">Specifies a username and password for on-demand authentication. Will only send
the authorization header when challenged for the specified realm.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>realm</code> - the realm for which the credentials apply.</dd>
<dd><code>username</code> - the user to authenticate</dd>
<dd><code>password</code> - the credentials for the user</dd>
</dl>
</li>
</ul>
<a name="setProxyServer-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setProxyServer</h4>
<pre>public abstract void setProxyServer​(java.lang.String proxyHost,
int proxyPort)</pre>
<div class="block">Specifies a proxy server to use for requests from this client.</div>
</li>
</ul>
<a name="setProxyServer-java.lang.String-int-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setProxyServer</h4>
<pre>public void setProxyServer​(java.lang.String proxyHost,
int proxyPort,
java.lang.String userName,
java.lang.String password)</pre>
<div class="block">Specifies a proxy server to use, along with a user and password for authentication.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.6</dd>
</dl>
</li>
</ul>
<a name="clearProxyServer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearProxyServer</h4>
<pre>public void clearProxyServer​()</pre>
<div class="block">Clears the proxy server settings.</div>
</li>
</ul>
<a name="getProxyHost--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProxyHost</h4>
<pre>public java.lang.String getProxyHost​()</pre>
<div class="block">Returns the name of the active proxy server.</div>
</li>
</ul>
<a name="getProxyPort--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProxyPort</h4>
<pre>public int getProxyPort​()</pre>
<div class="block">Returns the number of the active proxy port, or 0 is none is specified.</div>
</li>
</ul>
<a name="setHeaderField-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHeaderField</h4>
<pre>public void setHeaderField​(java.lang.String fieldName,
java.lang.String fieldValue)</pre>
<div class="block">Sets the value for a header field to be sent with all requests. If the value set is null,
removes the header from those to be sent.</div>
</li>
</ul>
<a name="getHeaderField-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHeaderField</h4>
<pre>public java.lang.String getHeaderField​(java.lang.String fieldName)</pre>
<div class="block">Returns the value for the header field with the specified name. This method will ignore the case of the field name.</div>
</li>
</ul>
<a name="setExceptionsThrownOnErrorStatus-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setExceptionsThrownOnErrorStatus</h4>
<pre>public void setExceptionsThrownOnErrorStatus​(boolean throwExceptions)</pre>
<div class="block">Specifies whether an exception will be thrown when an error status (4xx or 5xx) is detected on a response.
Defaults to the value returned by HttpUnitOptions.getExceptionsThrownOnErrorStatus.</div>
</li>
</ul>
<a name="getExceptionsThrownOnErrorStatus--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExceptionsThrownOnErrorStatus</h4>
<pre>public boolean getExceptionsThrownOnErrorStatus​()</pre>
<div class="block">Returns true if an exception will be thrown when an error status (4xx or 5xx) is detected on a response.</div>
</li>
</ul>
<a name="addClientListener-com.meterware.httpunit.WebClientListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addClientListener</h4>
<pre>public void addClientListener​(<a href="../../../com/meterware/httpunit/WebClientListener.html" title="interface in com.meterware.httpunit">WebClientListener</a> listener)</pre>
<div class="block">Adds a listener to watch for requests and responses.</div>
</li>
</ul>
<a name="removeClientListener-com.meterware.httpunit.WebClientListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeClientListener</h4>
<pre>public void removeClientListener​(<a href="../../../com/meterware/httpunit/WebClientListener.html" title="interface in com.meterware.httpunit">WebClientListener</a> listener)</pre>
<div class="block">Removes a listener to watch for requests and responses.</div>
</li>
</ul>
<a name="addWindowListener-com.meterware.httpunit.WebWindowListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addWindowListener</h4>
<pre>public void addWindowListener​(<a href="../../../com/meterware/httpunit/WebWindowListener.html" title="interface in com.meterware.httpunit">WebWindowListener</a> listener)</pre>
<div class="block">Adds a listener to watch for window openings and closings.</div>
</li>
</ul>
<a name="removeWindowListener-com.meterware.httpunit.WebWindowListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeWindowListener</h4>
<pre>public void removeWindowListener​(<a href="../../../com/meterware/httpunit/WebWindowListener.html" title="interface in com.meterware.httpunit">WebWindowListener</a> listener)</pre>
<div class="block">Removes a listener to watch for window openings and closings.</div>
</li>
</ul>
<a name="getNextAlert--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNextAlert</h4>
<pre>public java.lang.String getNextAlert​()</pre>
<div class="block">Returns the next javascript alert without removing it from the queue.</div>
</li>
</ul>
<a name="popNextAlert--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>popNextAlert</h4>
<pre>public java.lang.String popNextAlert​()</pre>
<div class="block">Returns the next javascript alert and removes it from the queue. If the queue is empty,
will return an empty string.</div>
</li>
</ul>
<a name="setDialogResponder-com.meterware.httpunit.DialogResponder-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDialogResponder</h4>
<pre>public void setDialogResponder​(<a href="../../../com/meterware/httpunit/DialogResponder.html" title="interface in com.meterware.httpunit">DialogResponder</a> responder)</pre>
<div class="block">Specifies the object which will respond to all dialogs.</div>
</li>
</ul>
<a name="newResponse-com.meterware.httpunit.WebRequest-com.meterware.httpunit.FrameSelector-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newResponse</h4>
<pre>protected abstract <a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> newResponse​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request,
<a href="../../../com/meterware/httpunit/FrameSelector.html" title="class in com.meterware.httpunit">FrameSelector</a> targetFrame)
throws java.io.IOException</pre>
<div class="block">Creates a web response object which represents the response to the specified web request.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>request</code> - the request to which the response should be generated</dd>
<dd><code>targetFrame</code> - the frame in which the response should be stored</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
<a name="writeMessageBody-com.meterware.httpunit.WebRequest-java.io.OutputStream-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeMessageBody</h4>
<pre>protected final void writeMessageBody​(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a> request,
java.io.OutputStream stream)
throws java.io.IOException</pre>
<div class="block">Writes the message body for the request.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
</dl>
</li>
</ul>
<a name="getHeaderFields-java.net.URL-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHeaderFields</h4>
<pre>protected java.util.Dictionary getHeaderFields​(java.net.URL targetURL)</pre>
<div class="block">Returns the value of all current header fields.</div>
</li>
</ul>
<a name="updateMainWindow-com.meterware.httpunit.FrameSelector-com.meterware.httpunit.WebResponse-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateMainWindow</h4>
<pre>protected final void updateMainWindow​(<a href="../../../com/meterware/httpunit/FrameSelector.html" title="class in com.meterware.httpunit">FrameSelector</a> frame,
<a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a> response)
throws java.io.IOException,
org.xml.sax.SAXException</pre>
<div class="block">Updates this web client based on a received response. This includes updating
cookies and frames. This method is required by ServletUnit, which cannot call the updateWindow method directly.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
<dd><code>org.xml.sax.SAXException</code></dd>
</dl>
</li>
</ul>
<a name="getCookieJar--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getCookieJar</h4>
<pre>public <a href="../../../com/meterware/httpunit/cookies/CookieJar.html" title="class in com.meterware.httpunit.cookies">CookieJar</a> getCookieJar​()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">- use with care - was not public in the past</span></div>
<div class="block">Support Request [ 1288796 ] getCookieJar() in WebClient</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the cookie jar</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Copyright © 2000-2008 Russell Gold. See <a target="_top" href="../license.html">license agreement</A> for rights granted.</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../com/meterware/httpunit/WebApplet.html" title="class in com.meterware.httpunit"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../com/meterware/httpunit/WebClient.HeaderDictionary.html" title="class in com.meterware.httpunit"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/meterware/httpunit/WebClient.html" target="_top">Frames</a></li>
<li><a href="WebClient.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|