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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::Test::WTestEnvironment Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<b>Test</b>::<a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html">WTestEnvironment</a>
</div>
</div>
<div class="contents">
<h1>Wt::Test::WTestEnvironment Class Reference</h1><!-- doxytag: class="Wt::Test::WTestEnvironment" --><!-- doxytag: inherits="Wt::WEnvironment" -->An environment for testing purposes.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/Test/WTestEnvironment></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::Test::WTestEnvironment:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1Test_1_1WTestEnvironment__inherit__graph.png" border="0" usemap="#Wt_1_1Test_1_1WTestEnvironment__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1Test_1_1WTestEnvironment__inherit__map">
<area shape="rect" href="classWt_1_1WEnvironment.html" title="A class that captures information on the application environment." alt="" coords="33,5,164,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1Test_1_1WTestEnvironment-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#f194aa75c8027150907de581a692da7e">WTestEnvironment</a> (const std::string &applicationPath="/", const std::string &configurationFile="", <a class="el" href="namespaceWt.html#f4b6ed5fd28b4f5fa141b153c1107349">EntryPointType</a> type=Application)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. <a href="#f194aa75c8027150907de581a692da7e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#0731bffca88279f3ea581b5d73c8afe9">~WTestEnvironment</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#0731bffca88279f3ea581b5d73c8afe9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#07ad68d340246eddc979951f96c7fd76">setParameterMap</a> (const <a class="el" href="namespaceWt_1_1Http.html#3420f95c8bfecf3d46e65920c765345a">Http::ParameterMap</a> &parameters)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets parameters to the application. <a href="#07ad68d340246eddc979951f96c7fd76"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#a80a019dc055b5ae98c35956ba524c60">setCookies</a> (const <a class="el" href="classWt_1_1WEnvironment.html#163671f35f1080badcb791a826f5fadd">CookieMap</a> &cookies)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets HTTP cookies. <a href="#a80a019dc055b5ae98c35956ba524c60"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#ef3602fd6c1b8e15adcbc40bc1b7c6c4">setHeaderValue</a> (const std::string &value)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets a HTTP header value. <a href="#ef3602fd6c1b8e15adcbc40bc1b7c6c4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#48f865810ad560cc9df88b7adf17b591">setSupportsCookies</a> (bool enabled)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether cookies are supported. <a href="#48f865810ad560cc9df88b7adf17b591"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#aaf6e252105cbd4b1bfaad14f0c47fa8">setAjax</a> (bool enabled)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether AJAX is supported. <a href="#aaf6e252105cbd4b1bfaad14f0c47fa8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#b2fd0942e9c5722948fdc98db92fe83a">setDpiScale</a> (double dpiScale)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the display's DPI scale. <a href="#b2fd0942e9c5722948fdc98db92fe83a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#58f53c406a0a697d2c3d6d5ffe4f08cf">setLocale</a> (const std::string &locale)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the locale. <a href="#58f53c406a0a697d2c3d6d5ffe4f08cf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#5deabdbe1d1d0546882047a5820e070c">setHostName</a> (const std::string &hostName)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the host name. <a href="#5deabdbe1d1d0546882047a5820e070c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#df16dd87cb333f3ef8e690fcd1a924c6">setUrlScheme</a> (const std::string &scheme)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the URL scheme. <a href="#df16dd87cb333f3ef8e690fcd1a924c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#cfdde9c75469004a8308393b86b5ddce">setUserAgent</a> (const std::string &userAgent)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the user agent. <a href="#cfdde9c75469004a8308393b86b5ddce"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#6109afee2818835a96de8d6c9e5e48c2">setReferer</a> (const std::string &referer)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the referer. <a href="#6109afee2818835a96de8d6c9e5e48c2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#9aeb155e7b624d0a130fb2f609b4945f">setAccept</a> (const std::string &accept)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the accept header. <a href="#9aeb155e7b624d0a130fb2f609b4945f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#2addf62069b391b6a94c9acd07c314aa">setServerSignature</a> (const std::string &signature)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the server signature. <a href="#2addf62069b391b6a94c9acd07c314aa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#41c449aed002dcb98d1ac5535966407c">setServerSoftware</a> (const std::string &software)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the server software. <a href="#41c449aed002dcb98d1ac5535966407c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#3b4866badc5e66113d846699fa3fa1e3">setServerAdmin</a> (const std::string &serverAdmin)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the server admin. <a href="#3b4866badc5e66113d846699fa3fa1e3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#0745f61072135090923bb492e0d19774">setClientAddress</a> (const std::string &clientAddress)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the client address. <a href="#0745f61072135090923bb492e0d19774"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#3fe9fffe6069c96d959ef499087c3fc8">setInternalPath</a> (const std::string &internalPath)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the initial internal path. <a href="#3fe9fffe6069c96d959ef499087c3fc8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Test_1_1WTestEnvironment.html#42d0159129b9174ff1e03376408f7f47">setContentType</a> (<a class="el" href="classWt_1_1WEnvironment.html#b293698bb21313768c279dbe3a9803b6">ContentType</a> contentType)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the content type. <a href="#42d0159129b9174ff1e03376408f7f47"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An environment for testing purposes.
<p>
This environment is useful for use in unit tests: you may configure its properties and pass it to the constructor of an application.<p>
This is useful for (unit) test-cases:<p>
<div class="fragment"><pre class="fragment"> <span class="keywordtype">void</span> testX() {
Test::WTestEnvironment environment;
MyApplication app(environment);
...
}
</pre></div><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html" title="A class that captures information on the application environment.">WEnvironment</a>, <a class="el" href="classWt_1_1WApplication.html#e29a843f4d50159b17abfa9503c389db" title="Creates a new application instance.">WApplication::WApplication(const WEnvironment&)</a> </dd></dl>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="f194aa75c8027150907de581a692da7e"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::WTestEnvironment" ref="f194aa75c8027150907de581a692da7e" args="(const std::string &applicationPath="/", const std::string &configurationFile="", EntryPointType type=Application)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::Test::WTestEnvironment::WTestEnvironment </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>applicationPath</em> = <code>"/"</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>configurationFile</em> = <code>""</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceWt.html#f4b6ed5fd28b4f5fa141b153c1107349">EntryPointType</a> </td>
<td class="paramname"> <em>type</em> = <code>Application</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Default constructor.
<p>
Constructs a test environment that resembles FireFox 3.0 with default settings.<p>
The <em>applicationPath</em> is the simulated deployment path. The configuration file points to a wt_config.xml configuration file. The <em>type</em> indicates the application type.<p>
After construction, but before passing it to the constructor of a <a class="el" href="classWt_1_1WApplication.html" title="Represents an application instance for a single session.">WApplication</a>, you can change any of the environment properties using the setter methods.
</div>
</div><p>
<a class="anchor" name="0731bffca88279f3ea581b5d73c8afe9"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::~WTestEnvironment" ref="0731bffca88279f3ea581b5d73c8afe9" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::Test::WTestEnvironment::~WTestEnvironment </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Destructor.
<p>
!
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="07ad68d340246eddc979951f96c7fd76"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setParameterMap" ref="07ad68d340246eddc979951f96c7fd76" args="(const Http::ParameterMap &parameters)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setParameterMap </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespaceWt_1_1Http.html#3420f95c8bfecf3d46e65920c765345a">Http::ParameterMap</a> & </td>
<td class="paramname"> <em>parameters</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets parameters to the application.
<p>
The default value is an empty map.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#c333df7571b921b4f22492c2bb95bcd4" title="Parameters passed to the application.">getParameterMap()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="a80a019dc055b5ae98c35956ba524c60"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setCookies" ref="a80a019dc055b5ae98c35956ba524c60" args="(const CookieMap &cookies)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setCookies </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WEnvironment.html#163671f35f1080badcb791a826f5fadd">CookieMap</a> & </td>
<td class="paramname"> <em>cookies</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets HTTP cookies.
<p>
The default value is an empty map.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#30810ecfa507bc6f655c38a6f218dc92" title="Cookies set in the initial call to the application.">cookies()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="ef3602fd6c1b8e15adcbc40bc1b7c6c4"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setHeaderValue" ref="ef3602fd6c1b8e15adcbc40bc1b7c6c4" args="(const std::string &value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setHeaderValue </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>value</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets a HTTP header value.
<p>
The default value is no headers.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#6048d608f4d7a6c2f5c74abe517d7bb0" title="Returns a cgi environment header value.">headerValue()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="48f865810ad560cc9df88b7adf17b591"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setSupportsCookies" ref="48f865810ad560cc9df88b7adf17b591" args="(bool enabled)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setSupportsCookies </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>enabled</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets whether cookies are supported.
<p>
The default value is <em>true</em>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#bf06c6d85be1b482c037f80e63890f3a" title="Returns whether the browser has enabled support for cookies.">supportsCookies()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="aaf6e252105cbd4b1bfaad14f0c47fa8"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setAjax" ref="aaf6e252105cbd4b1bfaad14f0c47fa8" args="(bool enabled)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setAjax </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>enabled</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets whether AJAX is supported.
<p>
The default value is <em>true</em>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#f39702064f91a549514f28de713b7cd2" title="Returns whether the browser has enabled support for AJAX.">ajax()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="b2fd0942e9c5722948fdc98db92fe83a"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setDpiScale" ref="b2fd0942e9c5722948fdc98db92fe83a" args="(double dpiScale)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setDpiScale </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"> <em>dpiScale</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the display's DPI scale.
<p>
The default value is 1.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#06c074249363d4ef4b90bc9cbae96261" title="Returns the browser-side DPI scaling factor.">dpiScale()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="58f53c406a0a697d2c3d6d5ffe4f08cf"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setLocale" ref="58f53c406a0a697d2c3d6d5ffe4f08cf" args="(const std::string &locale)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setLocale </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>locale</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the locale.
<p>
The default value is "en".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#42b10cde31c3df634dc753b5dbd1e800" title="Returns the preferred language indicated in the request header.">locale()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="5deabdbe1d1d0546882047a5820e070c"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setHostName" ref="5deabdbe1d1d0546882047a5820e070c" args="(const std::string &hostName)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setHostName </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>hostName</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the host name.
<p>
The default value is "localhost".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#d798f03cb67b859cc42ed2e1ced82fcd" title="Returns the server host name that is used by the client.">hostName()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="df16dd87cb333f3ef8e690fcd1a924c6"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setUrlScheme" ref="df16dd87cb333f3ef8e690fcd1a924c6" args="(const std::string &scheme)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setUrlScheme </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>scheme</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the URL scheme.
<p>
The default value is "http".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#5dd3ea667a61c3bbc2c6e1e3a879dc2f" title="Returns the URL scheme used for the current request ("http" or "https")...">urlScheme()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="cfdde9c75469004a8308393b86b5ddce"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setUserAgent" ref="cfdde9c75469004a8308393b86b5ddce" args="(const std::string &userAgent)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setUserAgent </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>userAgent</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the user agent.
<p>
The default value is no "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009060309 Ubuntu/9.04 (jaunty) Firefox/3.0.11".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#3ac010296af1ee9dbcbfecad96dc5a0f" title="Returns the user agent.">userAgent()</a> </dd></dl>
<p>Reimplemented from <a class="el" href="classWt_1_1WEnvironment.html">Wt::WEnvironment</a>.</p>
</div>
</div><p>
<a class="anchor" name="6109afee2818835a96de8d6c9e5e48c2"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setReferer" ref="6109afee2818835a96de8d6c9e5e48c2" args="(const std::string &referer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setReferer </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>referer</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the referer.
<p>
The default value is "".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#a68ac8744d2dc060d6c66ab22fbadbe1" title="Returns the referer.">referer()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="9aeb155e7b624d0a130fb2f609b4945f"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setAccept" ref="9aeb155e7b624d0a130fb2f609b4945f" args="(const std::string &accept)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setAccept </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>accept</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the accept header.
<p>
The default value is "text/html,application/xhtml+xml,application/xml;q=0.9,* /*;q=0.8".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#9160e82a73d21aa1a0a76bf5eeeac886" title="Returns the accept header.">accept()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="2addf62069b391b6a94c9acd07c314aa"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setServerSignature" ref="2addf62069b391b6a94c9acd07c314aa" args="(const std::string &signature)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setServerSignature </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>signature</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the server signature.
<p>
The default value is "None (WTestEnvironment)".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#8d2c52cbf0c79d315088e56c8e5fe224" title="Returns the web server signature.">serverSignature()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="41c449aed002dcb98d1ac5535966407c"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setServerSoftware" ref="41c449aed002dcb98d1ac5535966407c" args="(const std::string &software)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setServerSoftware </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>software</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the server software.
<p>
The default value is "None (WTestEnvironment)".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#d0d4a99a818ca7cb851ef43187c9ade7" title="Returns the web server software.">serverSoftware()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="3b4866badc5e66113d846699fa3fa1e3"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setServerAdmin" ref="3b4866badc5e66113d846699fa3fa1e3" args="(const std::string &serverAdmin)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setServerAdmin </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>serverAdmin</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the server admin.
<p>
The default value is "your@onyourown.here".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#a407aa90c7a3ab9ecb46de0ed9451797" title="Returns the email address of the server admin.">serverAdmin()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="0745f61072135090923bb492e0d19774"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setClientAddress" ref="0745f61072135090923bb492e0d19774" args="(const std::string &clientAddress)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setClientAddress </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>clientAddress</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the client address.
<p>
The default value is "127.0.0.1".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#3cd4cc541b27cfe4f937d2b945f5ff6a" title="Returns the IP address of the client.">clientAddress()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="3fe9fffe6069c96d959ef499087c3fc8"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setInternalPath" ref="3fe9fffe6069c96d959ef499087c3fc8" args="(const std::string &internalPath)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setInternalPath </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>internalPath</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the initial internal path.
<p>
The default value is "".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#cb2ba1f1f88e9cd6b7a57a2e51518ec6" title="Returns the initial internal path.">internalPath()</a> </dd></dl>
<p>Reimplemented from <a class="el" href="classWt_1_1WEnvironment.html">Wt::WEnvironment</a>.</p>
</div>
</div><p>
<a class="anchor" name="42d0159129b9174ff1e03376408f7f47"></a><!-- doxytag: member="Wt::Test::WTestEnvironment::setContentType" ref="42d0159129b9174ff1e03376408f7f47" args="(ContentType contentType)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::Test::WTestEnvironment::setContentType </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classWt_1_1WEnvironment.html#b293698bb21313768c279dbe3a9803b6">ContentType</a> </td>
<td class="paramname"> <em>contentType</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the content type.
<p>
The default value is XHTML1.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WEnvironment.html#375dfdc05e69eb22b8b644d2fada4d41" title="The type of the content provided to the browser.">contentType()</a> </dd></dl>
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:08 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|