URLConnection getRequestProperty Example
URLConnection class getRequestProperty example. public String getRequestProperty(String key) Returns the value of the named general request property for this connection.
|
| |
URLConnection getURL Example
URLConnection class getURL example. public URL getURL() Returns the value of this URLConnection's URL field.
|
| |
URLConnection getRequestPropertys Example
URLConnection class getRequestPropertys example. public Map getRequestProperties() Returns an unmodifiable Map of general request properties for this connection. The Map keys are Strings that represent the request-header field names.
|
| |
URLConnection getReadTimeout Example
URLConnection class getReadTimeout example. public int getReadTimeout() Returns setting for read timeout. 0 return implies that the option is disabled (i.e., timeout of infinity).
|
| |
URLConnection getPermission Example
URLConnection class getPermission example. public Permission getPermission() throws IOException Returns a permission object representing the permission necessary to make the connection represented by this object. This method returns null if no permission is required to make the connection.
|
| |
URLConnection getOutputStream Example
URLConnection class getOutputStream example. public OutputStream getOutputStream() throws IOException Returns an output stream that writes to this connection.
|
| |
URLConnection getLastModified Example
URLConnection class getLastModified example. public long getLastModified() Returns the value of the last-modified header field. The result is the number of milliseconds since January 1, 1970 GMT.
|
| |
URLConnection getInputStream Example
URLConnection class getInputStream example. public InputStream getInputStream() throws IOException Returns an input stream that reads from this open connection. A SocketTimeoutException can be thrown when reading from the returned input stream if the read timeout expires before data is available for read.
|
| |
URLConnection getIfModifiedSince Example
URLConnection class getIfModifiedSince example. public long getIfModifiedSince() Returns the value of this object's ifModifiedSince field.
|
| |
URLConnection getHeaderFields Example
URLConnection class getHeaderFields example. public Map
|
| |
MulticastSocket SetTTL() Example
MulticastSocketclass SetTTL() method example. This example shows you how to use SetTTL() method.This method Set the default time-to-live for multicast packets sent out on this MulticastSocket
|
| |
MulticastSocket SetTimeToLive() Example
MulticastSocketclass SetTimeToLive() method example. This example shows you how to use SetTimeToLive() method.This method Set the default time-to-live for multicast packets sent out on this MulticastSocket
|
| |
URLConnection getHeaderFieldKey Example
URLConnection class getHeaderFieldKey example. public String getHeaderFieldKey(int n) Returns the key for the nth header field. It returns null if there are fewer than n+1 fields.
|
| |
MulticastSocket SetLoopbackMode() Example
MulticastSocketclass SetLoopbackMode() method example. This example shows you how to use SetLoopbackMode() method.This method Disable/Enable local loopback of multicast datagrams
|
| |
URLConnection getHeaderFieldInt Example
URLConnection class getHeaderFieldInt example. public int getHeaderFieldInt(String name, int Default) Returns the value of the named field parsed as a number. This form of getHeaderField exists because some connection types (e.g., http-ng) have pre-parsed headers. Classes for that connection type can override this method and short-circuit the parsing.
|
| |
MulticastSocket SetInterface() Example
MulticastSocketclass SetInterface() method example. This example shows you how to use SetInterface() method.This method Set the multicast network interface
|
| |
URLConnection getHeaderFieldDate Example
URLConnection class getHeaderFieldDate example. public long getHeaderFieldDate(String name, long Default) Returns the value of the named field parsed as date. The result is the number of milliseconds since January 1, 1970 GMT represented by the named field.
|
| |
MulticastSocket GetTTL() Example
MulticastSocketclass GetTTL() method example. This example shows you how to use GetTTL() method.This method returns the default time-to-live value
|
| |
MulticastSocket GetTimeToLive() Example
MulticastSocketclass GetTimeToLive() method example. This example shows you how to use GetTimeToLive() method.This method returns the default time-to-live value
|
| |
MulticastSocket GetNetworkInterface() Example
MulticastSocketclass GetNetworkInterface() method example. This example shows you how to use GetNetworkInterface() method.This method returns the multicast NetworkInterface currently set
|
| |
MulticastSocket GetLoopbackMode() Example
MulticastSocketclass GetLoopbackMode() method example. This example shows you how to use GetLoopbackMode() method.This method returns true if the LoopbackMode has been disabled
|
| |
MulticastSocket GetInterface() Example
MulticastSocketclass GetInterface() method example. This example shows you how to use GetInterface() method.This method Returns An InetAddress representing the address of the network interface
|
| |
SocketPermission NewPermissionCollection() Example
SocketPermissionclass NewPermissionCollection() method example. This example shows you how to use NewPermissionCollection() method.This method Returns a new PermissionCollection object
|
| |
SocketPermission Implies() Example
SocketPermissionclass Implies() method example. This example shows you how to use Implies() method.This method Checks if this socket permission object "implies" the specified permission.
|
| |
SocketPermission HashCode() Example
SocketPermissionclass HashCode() method example. This example shows you how to use HashCode() method.This method Returns the hash code value for this object.
|
| |
SocketPermission GetActions() Example
SocketPermissionclass GetActions() method example. This example shows you how to use GetActions() method.This method returns present actions in the following order: connect, listen, accept, resolve.
|
| |
SocketPermission Equals() Example
SocketPermissionclass Equals() method example. This example shows you how to use Equals() method.This method Checks two SocketPermission
|
| |
URLConnection getHeaderField Example
URLConnection class getHeaderField example. public String getHeaderField(String name) Returns the value of the named header field. If called on a connection that sets the same header multiple times with possibly different values, only the last value is returned.
|
| |
URLConnection getHeaderField Example
URLConnection class getHeaderField example. public String getHeaderField(int n) Returns the value for the nth header field. It returns null if there are fewer than n+1fields. This method can be used in conjunction with the getHeaderFieldKey method to iterate through all the headers in the message.
|
| |
URLConnection getFileNameMap Example
URLConnection class getFileNameMap example. public static FileNameMap getFileNameMap() Loads filename map (a mimetable) from a data file. It will first try to load the user-specific table, defined by "content.types.user.table" property. If that fails, it tries to load the default built-in table at lib/content-types.properties under java home.
|
| |
 |
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
|
|
| |