OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / libjava / classpath / doc / www.gnu.org / inetlib.wml
1 #include "include/layout.wml"\r
2 \r
3 <set-var last-modified-author="prk">\r
4 <subject "GNU Classpath inetlib">\r
5 \r
6 <box>\r
7 <boxtitle><a name="main">Classpath::inetlib</a></boxtitle>\r
8 <boxitem>\r
9 <en>\r
10 \r
11 <p>\r
12 GNU inetlib is a library of clients for common internet protocols.\r
13 The following protocols are currently supported:\r
14 </p>\r
15 \r
16 <ul>\r
17 <li>Hypertext Transfer Protocol (HTTP)</li>\r
18 <li>File Transfer Protocol (FTP)</li>\r
19 <li>Simple Mail Transfer Protocol (SMTP)</li>\r
20 <li>Internet Message Access Protocol (IMAP)</li>\r
21 <li>Post Office Protocol (POP)</li>\r
22 <li>Network News Transfer Protocol (NNTP)</li>\r
23 <li>Lightweight Directory Access Protocol (LDAP) (alpha)</li>\r
24 <li>Gopher</li>\r
25 <li>Finger</li>\r
26 </ul>\r
27 \r
28 <p>\r
29 The inetlib library is similar in intent to the Python internet protocols\r
30 library - the API is as close as possible to the intent of the underlying\r
31 protocol design. This allows for very efficient coding of user agents.\r
32 </p>\r
33 \r
34 <p>\r
35 Additionally, inetlib includes URLStreamHandler implementations for some\r
36 of the protocols. These can be used to add support for the corresponding\r
37 URL scheme to the java.net.URL class.\r
38 </p>\r
39 \r
40 </en>\r
41 </boxitem>\r
42 \r
43 <boxtitle><a name="http">Classpath::inetlib::HTTP</a></boxtitle>\r
44 <boxitem>\r
45 <en>\r
46 \r
47 <p>\r
48 The inetlib HTTP client supports HTTP/1.1 as described in RFC 2616, with\r
49 the following features:\r
50 </p>\r
51 \r
52 <ul>\r
53 <li>Persistent connections</li>\r
54 <li>Basic and Digest authentication (RFC 2617)</li>\r
55 <li>HTTPS</li>\r
56 <li>HTTP proxies</li>\r
57 <li>HTTP/1.0 compatibility</li>\r
58 <li>Support for WebDAV methods and other HTTP extensions</li>\r
59 <li>Automatic decoding of the chunked transfer-coding</li>\r
60 <li>Parsing of HTTP date headers</li>\r
61 <li>Support for the 100-continue expectation</li>\r
62 </ul>\r
63 \r
64 <p>\r
65 The design of the API is similar to the\r
66 <createlink url="http://www.webdav.org/neon/" name="neon"> \r
67 WebDAV/HTTP library. A logical connection to the server is instantiated,\r
68 and multiple requests can be issued on this connection. Each request has\r
69 an atomic <code>dispatch</code> method which returns the response.\r
70 All I/O, authentication, etc is handled by registering callback objects\r
71 with the request prior to dispatch, which are notified during the dispatch\r
72 procedure as necessary. Simple byte-array content callbacks are supplied\r
73 which can manage any request/response content that fits in available memory.\r
74 </p>\r
75 \r
76 <p>\r
77 An URL stream handler is provided, supporting the full HttpURLConnection\r
78 specification.\r
79 </p>\r
80 \r
81 </en>\r
82 </boxitem>\r
83 \r
84 <boxtitle><a name="ftp">Classpath::inetlib::FTP</a></boxtitle>\r
85 <boxitem>\r
86 <en>\r
87 \r
88 <p>\r
89 The inetlib FTP client supports both active and passive mode FTP and all\r
90 transfer modes and representation types. The client implements RFC 959,\r
91 with the following exceptions and limitations:\r
92 </p>\r
93 \r
94 <ul>\r
95 <li>Only one concurrent transfer connection is supported</li>\r
96 <li>The STAT, HELP, SITE, SMNT, and ACCT commands are not supported</li>\r
97 <li>The TYPE command does not allow alternatives to the default bytesize\r
98 (Non-print), and local bytesize is not supported</li>\r
99 </ul>\r
100 \r
101 <p>\r
102 An URL stream handler is provided, which allows the setting of transfer modes\r
103 and representation types by means of the <code>setRequestProperty</code>\r
104 method.\r
105 </p>\r
106 \r
107 </en>\r
108 </boxitem>\r
109 \r
110 <boxtitle><a name="smtp">Classpath::inetlib::SMTP</a></boxtitle>\r
111 <boxitem>\r
112 <en>\r
113 \r
114 <p>\r
115 The inetlib SMTP client fully implements RFC 2821 including the ESMTP\r
116 extension standard.\r
117 </p>\r
118 \r
119 <p>\r
120 The client also implements TLS negotiation (RFC 3207) and SASL\r
121 authentication (RFC 2554).\r
122 </p>\r
123 \r
124 </en>\r
125 </boxitem>\r
126 \r
127 <boxtitle><a name="imap">Classpath::inetlib::IMAP</a></boxtitle>\r
128 <boxitem>\r
129 <en>\r
130 \r
131 <p>\r
132 The inetlib IMAP client fully implements IMAP4rev1 and includes the\r
133 following features:\r
134 </p>\r
135 \r
136 <ul>\r
137 <li>Extensible authentication using any available SASL mechanism</li>\r
138 <li>TLS negotiation (RFC 2595)</li>\r
139 <li>Automatic UTF-7imap folder name decoding/encoding</li>\r
140 <li>IMAP over SSL</li>\r
141 </ul>\r
142 \r
143 </en>\r
144 </boxitem>\r
145 \r
146 <boxtitle><a name="pop3">Classpath::inetlib::POP3</a></boxtitle>\r
147 <boxitem>\r
148 <en>\r
149 \r
150 <p>\r
151 The inetlib POP client implements version 3 only, as specified in RFC 1939,\r
152 with the exception of the no-arg LIST and UIDL commands (use STAT followed\r
153 by multiple LIST and/or UIDL instead).\r
154 It supports the following features:\r
155 </p>\r
156 \r
157 <ul>\r
158 <li>The POP3 extension mechanism CAPA</li>\r
159 <li>Extensible authentication using any available SASL mechanism via\r
160 the AUTH mechanism (RFC 1734)</li>\r
161 <li>TLS negotiation (RFC 2595)</li>\r
162 </ul>\r
163 \r
164 </en>\r
165 </boxitem>\r
166 \r
167 <boxtitle><a name="nntp">Classpath::inetlib::NNTP</a></boxtitle>\r
168 <boxitem>\r
169 <en>\r
170 \r
171 <p>\r
172 The inetlib NNTP client implements all of RFC 977, and many of the common\r
173 NNTP extensions specified in RFC 2980. It supports the XOVER and XHDR\r
174 commands, and simple authentication.\r
175 </p>\r
176 \r
177 <p>\r
178 There is also a newsrc mechanism for storing newsgroup subscriptions and read\r
179 articles in an implementation-independent manner, including a file-based\r
180 implementation.\r
181 </p>\r
182 \r
183 </en>\r
184 </boxitem>\r
185 </box>\r
186 \r