/usr/share/doc/libgnuinet-java/gnu/inet/http/HTTPConnection.html is in libgnuinet-java 1.1.2-2build1.
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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_03) on Fri May 18 11:52:42 UTC 2012 -->
<title>HTTPConnection (GNU inetlib API documentation)</title>
<meta name="date" content="2012-05-18">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="HTTPConnection (GNU inetlib API documentation)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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="class-use/HTTPConnection.html">Use</a></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="../../../gnu/inet/http/Headers.html" title="class in gnu.inet.http"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../gnu/inet/http/HTTPDateFormat.html" title="class in gnu.inet.http"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?gnu/inet/http/HTTPConnection.html" target="_top">Frames</a></li>
<li><a href="HTTPConnection.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>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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 ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">gnu.inet.http</div>
<h2 title="Class HTTPConnection" class="title">Class HTTPConnection</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>gnu.inet.http.HTTPConnection</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">HTTPConnection</span>
extends java.lang.Object</pre>
<div class="block">A connection to an HTTP server.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd><a href='mailto:dog@gnu.org'>Chris Burdess</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#connectionTimeout">connectionTimeout</a></strong></code>
<div class="block">The connection timeout for connecting the underlying socket.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../gnu/inet/http/CookieManager.html" title="interface in gnu.inet.http">CookieManager</a></code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#cookieManager">cookieManager</a></strong></code>
<div class="block">The cookie manager for this connection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#hostname">hostname</a></strong></code>
<div class="block">The host name of the server to connect to.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#HTTP_PORT">HTTP_PORT</a></strong></code>
<div class="block">The default HTTP port.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#HTTPS_PORT">HTTPS_PORT</a></strong></code>
<div class="block">The default HTTPS port.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.io.InputStream</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#in">in</a></strong></code>
<div class="block">The socket input stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#majorVersion">majorVersion</a></strong></code>
<div class="block">The major version of HTTP supported by this client.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#minorVersion">minorVersion</a></strong></code>
<div class="block">The minor version of HTTP supported by this client.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.io.OutputStream</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#out">out</a></strong></code>
<div class="block">The socket output stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#port">port</a></strong></code>
<div class="block">The port to connect to.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#proxyHostname">proxyHostname</a></strong></code>
<div class="block">The host name of the proxy to connect to.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#proxyPort">proxyPort</a></strong></code>
<div class="block">The port on the proxy to connect to.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#secure">secure</a></strong></code>
<div class="block">Whether the connection should use transport level security (HTTPS).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.net.Socket</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#socket">socket</a></strong></code>
<div class="block">The socket this connection communicates on.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#timeout">timeout</a></strong></code>
<div class="block">The read timeout for reads on the underlying socket.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#HTTPConnection(java.lang.String)">HTTPConnection</a></strong>(java.lang.String hostname)</code>
<div class="block">Creates a new HTTP connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#HTTPConnection(java.lang.String, boolean)">HTTPConnection</a></strong>(java.lang.String hostname,
boolean secure)</code>
<div class="block">Creates a new HTTP or HTTPS connection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#HTTPConnection(java.lang.String, boolean, int, int)">HTTPConnection</a></strong>(java.lang.String hostname,
boolean secure,
int connectionTimeout,
int timeout)</code>
<div class="block">Creates a new HTTP or HTTPS connection on the specified port.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#HTTPConnection(java.lang.String, int)">HTTPConnection</a></strong>(java.lang.String hostname,
int port)</code>
<div class="block">Creates a new HTTP connection on the specified port.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#HTTPConnection(java.lang.String, int, boolean)">HTTPConnection</a></strong>(java.lang.String hostname,
int port,
boolean secure)</code>
<div class="block">Creates a new HTTP or HTTPS connection on the specified port.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#HTTPConnection(java.lang.String, int, boolean, int, int)">HTTPConnection</a></strong>(java.lang.String hostname,
int port,
boolean secure,
int connectionTimeout,
int timeout)</code>
<div class="block">Creates a new HTTP or HTTPS connection on the specified port.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#addConnectionListener(gnu.inet.http.event.ConnectionListener)">addConnectionListener</a></strong>(gnu.inet.http.event.ConnectionListener l)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#addRequestListener(gnu.inet.http.event.RequestListener)">addRequestListener</a></strong>(gnu.inet.http.event.RequestListener l)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#close()">close</a></strong>()</code>
<div class="block">Closes this connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#closeConnection()">closeConnection</a></strong>()</code>
<div class="block">Closes the underlying socket, if any.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#fireConnectionEvent(int)">fireConnectionEvent</a></strong>(int type)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#fireRequestEvent(int, gnu.inet.http.Request)">fireRequestEvent</a></strong>(int type,
<a href="../../../gnu/inet/http/Request.html" title="class in gnu.inet.http">Request</a> request)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../gnu/inet/http/CookieManager.html" title="interface in gnu.inet.http">CookieManager</a></code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#getCookieManager()">getCookieManager</a></strong>()</code>
<div class="block">Returns the cookie manager in use for this connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#getHostName()">getHostName</a></strong>()</code>
<div class="block">Returns the name of the host to connect to.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.io.InputStream</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#getInputStream()">getInputStream</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.io.OutputStream</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#getOutputStream()">getOutputStream</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#getPort()">getPort</a></strong>()</code>
<div class="block">Returns the port on the host to connect to.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.net.Socket</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#getSocket()">getSocket</a></strong>()</code>
<div class="block">Retrieves the socket associated with this connection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#getURI()">getURI</a></strong>()</code>
<div class="block">Returns a URI representing the connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#getVersion()">getVersion</a></strong>()</code>
<div class="block">Returns the HTTP version string supported by this connection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#isSecure()">isSecure</a></strong>()</code>
<div class="block">Indicates whether to use a secure connection or not.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#isUsingProxy()">isUsingProxy</a></strong>()</code>
<div class="block">Indicates whether this connection is using an HTTP proxy.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../gnu/inet/http/Request.html" title="class in gnu.inet.http">Request</a></code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#newRequest(java.lang.String, java.lang.String)">newRequest</a></strong>(java.lang.String method,
java.lang.String path)</code>
<div class="block">Creates a new request using this connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#removeConnectionListener(gnu.inet.http.event.ConnectionListener)">removeConnectionListener</a></strong>(gnu.inet.http.event.ConnectionListener l)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#removeRequestListener(gnu.inet.http.event.RequestListener)">removeRequestListener</a></strong>(gnu.inet.http.event.RequestListener l)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#setCookieManager(gnu.inet.http.CookieManager)">setCookieManager</a></strong>(<a href="../../../gnu/inet/http/CookieManager.html" title="interface in gnu.inet.http">CookieManager</a> cookieManager)</code>
<div class="block">Sets the cookie manager to use for this connection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#setProxy(java.lang.String, int)">setProxy</a></strong>(java.lang.String hostname,
int port)</code>
<div class="block">Directs this connection to use the specified proxy.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../gnu/inet/http/HTTPConnection.html#setVersion(int, int)">setVersion</a></strong>(int majorVersion,
int minorVersion)</code>
<div class="block">Sets the HTTP version supported by this connection.</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">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="HTTP_PORT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTTP_PORT</h4>
<pre>public static final int HTTP_PORT</pre>
<div class="block">The default HTTP port.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#gnu.inet.http.HTTPConnection.HTTP_PORT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="HTTPS_PORT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTTPS_PORT</h4>
<pre>public static final int HTTPS_PORT</pre>
<div class="block">The default HTTPS port.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#gnu.inet.http.HTTPConnection.HTTPS_PORT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="hostname">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hostname</h4>
<pre>protected final java.lang.String hostname</pre>
<div class="block">The host name of the server to connect to.</div>
</li>
</ul>
<a name="port">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>port</h4>
<pre>protected final int port</pre>
<div class="block">The port to connect to.</div>
</li>
</ul>
<a name="secure">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>secure</h4>
<pre>protected final boolean secure</pre>
<div class="block">Whether the connection should use transport level security (HTTPS).</div>
</li>
</ul>
<a name="connectionTimeout">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>connectionTimeout</h4>
<pre>protected final int connectionTimeout</pre>
<div class="block">The connection timeout for connecting the underlying socket.</div>
</li>
</ul>
<a name="timeout">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>timeout</h4>
<pre>protected final int timeout</pre>
<div class="block">The read timeout for reads on the underlying socket.</div>
</li>
</ul>
<a name="proxyHostname">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>proxyHostname</h4>
<pre>protected java.lang.String proxyHostname</pre>
<div class="block">The host name of the proxy to connect to.</div>
</li>
</ul>
<a name="proxyPort">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>proxyPort</h4>
<pre>protected int proxyPort</pre>
<div class="block">The port on the proxy to connect to.</div>
</li>
</ul>
<a name="majorVersion">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>majorVersion</h4>
<pre>protected int majorVersion</pre>
<div class="block">The major version of HTTP supported by this client.</div>
</li>
</ul>
<a name="minorVersion">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minorVersion</h4>
<pre>protected int minorVersion</pre>
<div class="block">The minor version of HTTP supported by this client.</div>
</li>
</ul>
<a name="socket">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>socket</h4>
<pre>protected java.net.Socket socket</pre>
<div class="block">The socket this connection communicates on.</div>
</li>
</ul>
<a name="in">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>in</h4>
<pre>protected java.io.InputStream in</pre>
<div class="block">The socket input stream.</div>
</li>
</ul>
<a name="out">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>out</h4>
<pre>protected java.io.OutputStream out</pre>
<div class="block">The socket output stream.</div>
</li>
</ul>
<a name="cookieManager">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>cookieManager</h4>
<pre>protected <a href="../../../gnu/inet/http/CookieManager.html" title="interface in gnu.inet.http">CookieManager</a> cookieManager</pre>
<div class="block">The cookie manager for this connection.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="HTTPConnection(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTTPConnection</h4>
<pre>public HTTPConnection(java.lang.String hostname)</pre>
<div class="block">Creates a new HTTP connection.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hostname</code> - the name of the host to connect to</dd></dl>
</li>
</ul>
<a name="HTTPConnection(java.lang.String, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTTPConnection</h4>
<pre>public HTTPConnection(java.lang.String hostname,
boolean secure)</pre>
<div class="block">Creates a new HTTP or HTTPS connection.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hostname</code> - the name of the host to connect to</dd><dd><code>secure</code> - whether to use a secure connection</dd></dl>
</li>
</ul>
<a name="HTTPConnection(java.lang.String, boolean, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTTPConnection</h4>
<pre>public HTTPConnection(java.lang.String hostname,
boolean secure,
int connectionTimeout,
int timeout)</pre>
<div class="block">Creates a new HTTP or HTTPS connection on the specified port.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hostname</code> - the name of the host to connect to</dd><dd><code>secure</code> - whether to use a secure connection</dd><dd><code>connectionTimeout</code> - the connection timeout</dd><dd><code>timeout</code> - the socket read timeout</dd></dl>
</li>
</ul>
<a name="HTTPConnection(java.lang.String, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTTPConnection</h4>
<pre>public HTTPConnection(java.lang.String hostname,
int port)</pre>
<div class="block">Creates a new HTTP connection on the specified port.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hostname</code> - the name of the host to connect to</dd><dd><code>port</code> - the port on the host to connect to</dd></dl>
</li>
</ul>
<a name="HTTPConnection(java.lang.String, int, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HTTPConnection</h4>
<pre>public HTTPConnection(java.lang.String hostname,
int port,
boolean secure)</pre>
<div class="block">Creates a new HTTP or HTTPS connection on the specified port.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hostname</code> - the name of the host to connect to</dd><dd><code>port</code> - the port on the host to connect to</dd><dd><code>secure</code> - whether to use a secure connection</dd></dl>
</li>
</ul>
<a name="HTTPConnection(java.lang.String, int, boolean, int, int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>HTTPConnection</h4>
<pre>public HTTPConnection(java.lang.String hostname,
int port,
boolean secure,
int connectionTimeout,
int timeout)</pre>
<div class="block">Creates a new HTTP or HTTPS connection on the specified port.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hostname</code> - the name of the host to connect to</dd><dd><code>port</code> - the port on the host to connect to</dd><dd><code>secure</code> - whether to use a secure connection</dd><dd><code>connectionTimeout</code> - the connection timeout</dd><dd><code>timeout</code> - the socket read timeout</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getHostName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHostName</h4>
<pre>public java.lang.String getHostName()</pre>
<div class="block">Returns the name of the host to connect to.</div>
</li>
</ul>
<a name="getPort()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPort</h4>
<pre>public int getPort()</pre>
<div class="block">Returns the port on the host to connect to.</div>
</li>
</ul>
<a name="isSecure()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSecure</h4>
<pre>public boolean isSecure()</pre>
<div class="block">Indicates whether to use a secure connection or not.</div>
</li>
</ul>
<a name="getVersion()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVersion</h4>
<pre>public java.lang.String getVersion()</pre>
<div class="block">Returns the HTTP version string supported by this connection.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><code>#version</code></dd></dl>
</li>
</ul>
<a name="setVersion(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVersion</h4>
<pre>public void setVersion(int majorVersion,
int minorVersion)</pre>
<div class="block">Sets the HTTP version supported by this connection.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>majorVersion</code> - the major version</dd><dd><code>minorVersion</code> - the minor version</dd></dl>
</li>
</ul>
<a name="setProxy(java.lang.String, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setProxy</h4>
<pre>public void setProxy(java.lang.String hostname,
int port)</pre>
<div class="block">Directs this connection to use the specified proxy.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>hostname</code> - the proxy host name</dd><dd><code>port</code> - the port on the proxy to connect to</dd></dl>
</li>
</ul>
<a name="isUsingProxy()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUsingProxy</h4>
<pre>public boolean isUsingProxy()</pre>
<div class="block">Indicates whether this connection is using an HTTP proxy.</div>
</li>
</ul>
<a name="setCookieManager(gnu.inet.http.CookieManager)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCookieManager</h4>
<pre>public void setCookieManager(<a href="../../../gnu/inet/http/CookieManager.html" title="interface in gnu.inet.http">CookieManager</a> cookieManager)</pre>
<div class="block">Sets the cookie manager to use for this connection.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cookieManager</code> - the cookie manager</dd></dl>
</li>
</ul>
<a name="getCookieManager()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCookieManager</h4>
<pre>public <a href="../../../gnu/inet/http/CookieManager.html" title="interface in gnu.inet.http">CookieManager</a> getCookieManager()</pre>
<div class="block">Returns the cookie manager in use for this connection.</div>
</li>
</ul>
<a name="newRequest(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newRequest</h4>
<pre>public <a href="../../../gnu/inet/http/Request.html" title="class in gnu.inet.http">Request</a> newRequest(java.lang.String method,
java.lang.String path)</pre>
<div class="block">Creates a new request using this connection.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>method</code> - the HTTP method to invoke</dd><dd><code>path</code> - the URI-escaped RFC2396 <code>abs_path</code> with
optional query part</dd></dl>
</li>
</ul>
<a name="close()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>close</h4>
<pre>public void close()
throws java.io.IOException</pre>
<div class="block">Closes this connection.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
<a name="getSocket()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSocket</h4>
<pre>protected java.net.Socket getSocket()
throws java.io.IOException</pre>
<div class="block">Retrieves the socket associated with this connection.
This creates the socket if necessary.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
<a name="getInputStream()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInputStream</h4>
<pre>protected java.io.InputStream getInputStream()
throws java.io.IOException</pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
<a name="getOutputStream()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOutputStream</h4>
<pre>protected java.io.OutputStream getOutputStream()
throws java.io.IOException</pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
<a name="closeConnection()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>closeConnection</h4>
<pre>protected void closeConnection()
throws java.io.IOException</pre>
<div class="block">Closes the underlying socket, if any.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
<a name="getURI()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getURI</h4>
<pre>protected java.lang.String getURI()</pre>
<div class="block">Returns a URI representing the connection.
This does not include any request path component.</div>
</li>
</ul>
<a name="addConnectionListener(gnu.inet.http.event.ConnectionListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addConnectionListener</h4>
<pre>public void addConnectionListener(gnu.inet.http.event.ConnectionListener l)</pre>
</li>
</ul>
<a name="removeConnectionListener(gnu.inet.http.event.ConnectionListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeConnectionListener</h4>
<pre>public void removeConnectionListener(gnu.inet.http.event.ConnectionListener l)</pre>
</li>
</ul>
<a name="fireConnectionEvent(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fireConnectionEvent</h4>
<pre>protected void fireConnectionEvent(int type)</pre>
</li>
</ul>
<a name="addRequestListener(gnu.inet.http.event.RequestListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addRequestListener</h4>
<pre>public void addRequestListener(gnu.inet.http.event.RequestListener l)</pre>
</li>
</ul>
<a name="removeRequestListener(gnu.inet.http.event.RequestListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeRequestListener</h4>
<pre>public void removeRequestListener(gnu.inet.http.event.RequestListener l)</pre>
</li>
</ul>
<a name="fireRequestEvent(int, gnu.inet.http.Request)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>fireRequestEvent</h4>
<pre>protected void fireRequestEvent(int type,
<a href="../../../gnu/inet/http/Request.html" title="class in gnu.inet.http">Request</a> request)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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="class-use/HTTPConnection.html">Use</a></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="../../../gnu/inet/http/Headers.html" title="class in gnu.inet.http"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../gnu/inet/http/HTTPDateFormat.html" title="class in gnu.inet.http"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?gnu/inet/http/HTTPConnection.html" target="_top">Frames</a></li>
<li><a href="HTTPConnection.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>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </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><a href="#field_detail">Field</a> | </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 ======= -->
<p class="legalCopy"><small>© Copyright 2003 The Free Software Foundation,
all rights reserved</small></p>
</body>
</html>
|