This file is indexed.

/usr/share/doc/libhttpunit-java/api/com/meterware/servletunit/ServletUnitClient.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
<!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>ServletUnitClient (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="ServletUnitClient (HttpUnit 1.7 API)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":10,"i1":10,"i2":9,"i3":10,"i4":10,"i5":10,"i6":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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/servletunit/ServletTestCase.html" title="class in com.meterware.servletunit"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../com/meterware/servletunit/ServletUnitServletContext.html" title="class in com.meterware.servletunit"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/meterware/servletunit/ServletUnitClient.html" target="_top">Frames</a></li>
<li><a href="ServletUnitClient.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><span>SEARCH:&nbsp;</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:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.com.meterware.httpunit.WebClient">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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">&nbsp;</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>&nbsp;<a href="../../../com/meterware/servletunit/package-summary.html">com.meterware.servletunit</a></div>
<h2 title="Class ServletUnitClient" class="title">Class ServletUnitClient</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../com/meterware/httpunit/WebClient.html" title="class in com.meterware.httpunit">com.meterware.httpunit.WebClient</a></li>
<li>
<ul class="inheritance">
<li>com.meterware.servletunit.ServletUnitClient</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">ServletUnitClient</span>
extends <a href="../../../com/meterware/httpunit/WebClient.html" title="class in com.meterware.httpunit">WebClient</a></pre>
<div class="block">A client for use with the servlet runner class, allowing the testing of servlets
 without an actual servlet container. Testing can be done in one of two ways.
 End-to-end testing works much like the HttpUnit package, except that only servlets
 actually registered with the ServletRunner will be invoked.  It is also possible
 to test servlets 'from the inside' by creating a ServletInvocationContext and then
 calling any servlet methods which may be desired.  Even in this latter mode, end-to-end
 testing is supported, but requires a call to this class's getResponse method to update
 its cookies and frames.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd><a href="russgold@httpunit.org">Russell Gold</a></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>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.com.meterware.httpunit.WebClient">
<!--   -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;com.meterware.httpunit.<a href="../../../com/meterware/httpunit/WebClient.html" title="class in com.meterware.httpunit">WebClient</a></h3>
<code><a href="../../../com/meterware/httpunit/WebClient.HeaderDictionary.html" title="class in com.meterware.httpunit">WebClient.HeaderDictionary</a></code></li>
</ul>
</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">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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><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/servletunit/ServletUnitClient.html#getResponse-com.meterware.servletunit.InvocationContext-">getResponse</a></span>&#8203;(<a href="../../../com/meterware/servletunit/InvocationContext.html" title="interface in com.meterware.servletunit">InvocationContext</a>&nbsp;invocation)</code></th>
<td class="colLast">
<div class="block">Updates this client and returns the response which would be displayed by the
 user agent.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>javax.servlet.http.HttpSession</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/servletunit/ServletUnitClient.html#getSession-boolean-">getSession</a></span>&#8203;(boolean&nbsp;create)</code></th>
<td class="colLast">
<div class="block">Returns the session that would be used by the next request (if it asks for one).</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="../../../com/meterware/servletunit/ServletUnitClient.html" title="class in com.meterware.servletunit">ServletUnitClient</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/servletunit/ServletUnitClient.html#newClient-com.meterware.servletunit.InvocationContextFactory-">newClient</a></span>&#8203;(<a href="../../../com/meterware/servletunit/InvocationContextFactory.html" title="interface in com.meterware.servletunit">InvocationContextFactory</a>&nbsp;factory)</code></th>
<td class="colLast">
<div class="block">Creates and returns a new servlet unit client instance.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../com/meterware/servletunit/InvocationContext.html" title="interface in com.meterware.servletunit">InvocationContext</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/servletunit/ServletUnitClient.html#newInvocation-com.meterware.httpunit.WebRequest-">newInvocation</a></span>&#8203;(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a>&nbsp;request)</code></th>
<td class="colLast">
<div class="block">Creates and returns a new invocation context to test calling of servlet methods.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../com/meterware/servletunit/InvocationContext.html" title="interface in com.meterware.servletunit">InvocationContext</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/servletunit/ServletUnitClient.html#newInvocation-java.lang.String-">newInvocation</a></span>&#8203;(java.lang.String&nbsp;requestString)</code></th>
<td class="colLast">
<div class="block">Creates and returns a new invocation context from a GET request.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>protected <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/servletunit/ServletUnitClient.html#newResponse-com.meterware.httpunit.WebRequest-com.meterware.httpunit.FrameSelector-">newResponse</a></span>&#8203;(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a>&nbsp;request,
           <a href="../../../com/meterware/httpunit/FrameSelector.html" title="class in com.meterware.httpunit">FrameSelector</a>&nbsp;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="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../com/meterware/servletunit/ServletUnitClient.html#setProxyServer-java.lang.String-int-">setProxyServer</a></span>&#8203;(java.lang.String&nbsp;proxyHost,
              int&nbsp;proxyPort)</code></th>
<td class="colLast">
<div class="block">Specifies a proxy server to use for requests from this client.</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&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.meterware.httpunit.WebClient">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;com.meterware.httpunit.<a href="../../../com/meterware/httpunit/WebClient.html" title="class in com.meterware.httpunit">WebClient</a></h3>
<code><a href="../../../com/meterware/httpunit/WebClient.html#addClientListener-com.meterware.httpunit.WebClientListener-">addClientListener</a>, <a href="../../../com/meterware/httpunit/WebClient.html#addCookie-java.lang.String-java.lang.String-">addCookie</a>, <a href="../../../com/meterware/httpunit/WebClient.html#addWindowListener-com.meterware.httpunit.WebWindowListener-">addWindowListener</a>, <a href="../../../com/meterware/httpunit/WebClient.html#clearContents--">clearContents</a>, <a href="../../../com/meterware/httpunit/WebClient.html#clearProxyServer--">clearProxyServer</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getClientProperties--">getClientProperties</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getCookieDetails-java.lang.String-">getCookieDetails</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getCookieJar--">getCookieJar</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getCookieNames--">getCookieNames</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getCookieValue-java.lang.String-">getCookieValue</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getCurrentPage--">getCurrentPage</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getExceptionsThrownOnErrorStatus--">getExceptionsThrownOnErrorStatus</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getFrameContents-com.meterware.httpunit.FrameSelector-">getFrameContents</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getFrameContents-java.lang.String-">getFrameContents</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getFrameNames--">getFrameNames</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getHeaderField-java.lang.String-">getHeaderField</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getHeaderFields-java.net.URL-">getHeaderFields</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getMainWindow--">getMainWindow</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getNextAlert--">getNextAlert</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getOpenWindow-java.lang.String-">getOpenWindow</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getOpenWindows--">getOpenWindows</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getProxyHost--">getProxyHost</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getProxyPort--">getProxyPort</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getResource-com.meterware.httpunit.WebRequest-">getResource</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getResponse-com.meterware.httpunit.WebRequest-">getResponse</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getResponse-java.lang.String-">getResponse</a>, <a href="../../../com/meterware/httpunit/WebClient.html#getUserAgent--">getUserAgent</a>, <a href="../../../com/meterware/httpunit/WebClient.html#popNextAlert--">popNextAlert</a>, <a href="../../../com/meterware/httpunit/WebClient.html#putCookie-java.lang.String-java.lang.String-">putCookie</a>, <a href="../../../com/meterware/httpunit/WebClient.html#removeClientListener-com.meterware.httpunit.WebClientListener-">removeClientListener</a>, <a href="../../../com/meterware/httpunit/WebClient.html#removeWindowListener-com.meterware.httpunit.WebWindowListener-">removeWindowListener</a>, <a href="../../../com/meterware/httpunit/WebClient.html#sendRequest-com.meterware.httpunit.WebRequest-">sendRequest</a>, <a href="../../../com/meterware/httpunit/WebClient.html#setAuthentication-java.lang.String-java.lang.String-java.lang.String-">setAuthentication</a>, <a href="../../../com/meterware/httpunit/WebClient.html#setAuthorization-java.lang.String-java.lang.String-">setAuthorization</a>, <a href="../../../com/meterware/httpunit/WebClient.html#setDialogResponder-com.meterware.httpunit.DialogResponder-">setDialogResponder</a>, <a href="../../../com/meterware/httpunit/WebClient.html#setExceptionsThrownOnErrorStatus-boolean-">setExceptionsThrownOnErrorStatus</a>, <a href="../../../com/meterware/httpunit/WebClient.html#setHeaderField-java.lang.String-java.lang.String-">setHeaderField</a>, <a href="../../../com/meterware/httpunit/WebClient.html#setMainWindow-com.meterware.httpunit.WebWindow-">setMainWindow</a>, <a href="../../../com/meterware/httpunit/WebClient.html#setProxyServer-java.lang.String-int-java.lang.String-java.lang.String-">setProxyServer</a>, <a href="../../../com/meterware/httpunit/WebClient.html#setUserAgent-java.lang.String-">setUserAgent</a>, <a href="../../../com/meterware/httpunit/WebClient.html#updateMainWindow-com.meterware.httpunit.FrameSelector-com.meterware.httpunit.WebResponse-">updateMainWindow</a>, <a href="../../../com/meterware/httpunit/WebClient.html#writeMessageBody-com.meterware.httpunit.WebRequest-java.io.OutputStream-">writeMessageBody</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="newClient-com.meterware.servletunit.InvocationContextFactory-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newClient</h4>
<pre>public static&nbsp;<a href="../../../com/meterware/servletunit/ServletUnitClient.html" title="class in com.meterware.servletunit">ServletUnitClient</a>&nbsp;newClient&#8203;(<a href="../../../com/meterware/servletunit/InvocationContextFactory.html" title="interface in com.meterware.servletunit">InvocationContextFactory</a>&nbsp;factory)</pre>
<div class="block">Creates and returns a new servlet unit client instance.</div>
</li>
</ul>
<a name="setProxyServer-java.lang.String-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setProxyServer</h4>
<pre>public&nbsp;void&nbsp;setProxyServer&#8203;(java.lang.String&nbsp;proxyHost,
                           int&nbsp;proxyPort)</pre>
<div class="block">Specifies a proxy server to use for requests from this client.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../com/meterware/httpunit/WebClient.html#setProxyServer-java.lang.String-int-">setProxyServer</a></code>&nbsp;in class&nbsp;<code><a href="../../../com/meterware/httpunit/WebClient.html" title="class in com.meterware.httpunit">WebClient</a></code></dd>
</dl>
</li>
</ul>
<a name="newInvocation-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newInvocation</h4>
<pre>public&nbsp;<a href="../../../com/meterware/servletunit/InvocationContext.html" title="interface in com.meterware.servletunit">InvocationContext</a>&nbsp;newInvocation&#8203;(java.lang.String&nbsp;requestString)
                                throws java.io.IOException,
                                       java.net.MalformedURLException</pre>
<div class="block">Creates and returns a new invocation context from a GET request.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
<dd><code>java.net.MalformedURLException</code></dd>
</dl>
</li>
</ul>
<a name="newInvocation-com.meterware.httpunit.WebRequest-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newInvocation</h4>
<pre>public&nbsp;<a href="../../../com/meterware/servletunit/InvocationContext.html" title="interface in com.meterware.servletunit">InvocationContext</a>&nbsp;newInvocation&#8203;(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a>&nbsp;request)
                                throws java.io.IOException,
                                       java.net.MalformedURLException</pre>
<div class="block">Creates and returns a new invocation context to test calling of servlet methods.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
<dd><code>java.net.MalformedURLException</code></dd>
</dl>
</li>
</ul>
<a name="getResponse-com.meterware.servletunit.InvocationContext-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getResponse</h4>
<pre>public&nbsp;<a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a>&nbsp;getResponse&#8203;(<a href="../../../com/meterware/servletunit/InvocationContext.html" title="interface in com.meterware.servletunit">InvocationContext</a>&nbsp;invocation)
                        throws java.net.MalformedURLException,
                               java.io.IOException,
                               org.xml.sax.SAXException</pre>
<div class="block">Updates this client and returns the response which would be displayed by the
 user agent. Note that this will typically be the same as that returned by the
 servlet invocation unless that invocation results in a redirect request.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.net.MalformedURLException</code></dd>
<dd><code>java.io.IOException</code></dd>
<dd><code>org.xml.sax.SAXException</code></dd>
</dl>
</li>
</ul>
<a name="getSession-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSession</h4>
<pre>public&nbsp;javax.servlet.http.HttpSession&nbsp;getSession&#8203;(boolean&nbsp;create)</pre>
<div class="block">Returns the session that would be used by the next request (if it asks for one).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>create</code> - if true, will create a new session if no valid session is defined.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.6</dd>
</dl>
</li>
</ul>
<a name="newResponse-com.meterware.httpunit.WebRequest-com.meterware.httpunit.FrameSelector-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>newResponse</h4>
<pre>protected&nbsp;<a href="../../../com/meterware/httpunit/WebResponse.html" title="class in com.meterware.httpunit">WebResponse</a>&nbsp;newResponse&#8203;(<a href="../../../com/meterware/httpunit/WebRequest.html" title="class in com.meterware.httpunit">WebRequest</a>&nbsp;request,
                                  <a href="../../../com/meterware/httpunit/FrameSelector.html" title="class in com.meterware.httpunit">FrameSelector</a>&nbsp;targetFrame)
                           throws java.net.MalformedURLException,
                                  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="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../com/meterware/httpunit/WebClient.html#newResponse-com.meterware.httpunit.WebRequest-com.meterware.httpunit.FrameSelector-">newResponse</a></code>&nbsp;in class&nbsp;<code><a href="../../../com/meterware/httpunit/WebClient.html" title="class in com.meterware.httpunit">WebClient</a></code></dd>
<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.net.MalformedURLException</code></dd>
<dd><code>java.io.IOException</code></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 &copy; 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/servletunit/ServletTestCase.html" title="class in com.meterware.servletunit"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../com/meterware/servletunit/ServletUnitServletContext.html" title="class in com.meterware.servletunit"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/meterware/servletunit/ServletUnitClient.html" target="_top">Frames</a></li>
<li><a href="ServletUnitClient.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.com.meterware.httpunit.WebClient">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>