-
Notifications
You must be signed in to change notification settings - Fork 1
/
CookieManager.xml
462 lines (462 loc) · 31.2 KB
/
CookieManager.xml
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
<Type Name="CookieManager" FullName="Java.Net.CookieManager">
<TypeSignature Language="C#" Value="public class CookieManager : Java.Net.CookieHandler" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit CookieManager extends Java.Net.CookieHandler" />
<TypeSignature Language="DocId" Value="T:Java.Net.CookieManager" />
<TypeSignature Language="F#" Value="type CookieManager = class
 inherit CookieHandler" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Net.CookieHandler</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("java/net/CookieManager", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/net/CookieManager", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="9">
<summary>CookieManager provides a concrete implementation of <c>CookieHandler</c>,
which separates the storage of cookies from the policy surrounding accepting
and rejecting cookies.</summary>
<remarks>
<para>CookieManager provides a concrete implementation of <c>CookieHandler</c>,
which separates the storage of cookies from the policy surrounding accepting
and rejecting cookies. A CookieManager is initialized with a <c>CookieStore</c>
which manages storage, and a <c>CookiePolicy</c> object, which makes
policy decisions on cookie acceptance/rejection.</para>
<para>The HTTP cookie management in java.net package looks like:
<blockquote></para>
<code lang="text/java">{@code
use
CookieHandler <------- HttpURLConnection
^
| impl
| use
CookieManager -------> CookiePolicy
| use
|--------> HttpCookie
| ^
| | use
| use |
|--------> CookieStore
^
| impl
|
Internal in-memory implementation
}</code>
<para><ul>
<li>
CookieHandler is at the core of cookie management. User can call
CookieHandler.setDefault to set a concrete CookieHanlder implementation
to be used.
</li>
<li>
CookiePolicy.shouldAccept will be called by CookieManager.put to see whether
or not one cookie should be accepted and put into cookie store. User can use
any of three pre-defined CookiePolicy, namely ACCEPT_ALL, ACCEPT_NONE and
ACCEPT_ORIGINAL_SERVER, or user can define his own CookiePolicy implementation
and tell CookieManager to use it.
</li>
<li>
CookieStore is the place where any accepted HTTP cookie is stored in.
If not specified when created, a CookieManager instance will use an internal
in-memory implementation. Or user can implements one and tell CookieManager
to use it.
</li>
<li>
Currently, only CookieStore.add(URI, HttpCookie) and CookieStore.get(URI)
are used by CookieManager. Others are for completeness and might be needed
by a more sophisticated CookieStore implementation, e.g. a NetscapeCookieStore.
</li>
</ul>
</blockquote></para>
<para>There're various ways user can hook up his own HTTP cookie management behavior, e.g.
<blockquote>
<ul>
<li>Use CookieHandler.setDefault to set a brand new <c>CookieHandler</c> implementation
<li>Let CookieManager be the default <c>CookieHandler</c> implementation,
but implement user's own <c>CookieStore</c> and <c>CookiePolicy</c>
and tell default CookieManager to use them:
<blockquote></para>
<code lang="text/java">// this should be done at the beginning of an HTTP session
CookieHandler.setDefault(new CookieManager(new MyCookieStore(), new MyCookiePolicy()));
</code>
<para></blockquote>
<li>Let CookieManager be the default <c>CookieHandler</c> implementation, but
use customized <c>CookiePolicy</c>:
<blockquote></para>
<code lang="text/java">// this should be done at the beginning of an HTTP session
CookieHandler.setDefault(new CookieManager());
// this can be done at any point of an HTTP session
((CookieManager)CookieHandler.getDefault()).setCookiePolicy(new MyCookiePolicy());
</code>
<para></blockquote>
</ul>
</blockquote></para>
<para>The implementation conforms to <see href="http://www.ietf.org/rfc/rfc2965.txt">RFC 2965</see>, section 3.3.</para>
<para>Added in 1.6.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/CookieManager" title="Reference documentation">Java documentation for <code>java.net.CookieManager</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 9" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public CookieManager ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.CookieManager.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "()V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "()V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Create a new cookie manager.</summary>
<remarks>
<para>Create a new cookie manager.</para>
<para>This constructor will create new cookie manager with default
cookie store and accept policy. The effect is same as
<c>CookieManager(null, null)</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/CookieManager#CookieManager()" title="Reference documentation">Java documentation for <code>java.net.CookieManager.CookieManager()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 9" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public CookieManager (Java.Net.ICookieStore? store, Java.Net.ICookiePolicy? cookiePolicy);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Net.ICookieStore store, class Java.Net.ICookiePolicy cookiePolicy) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.CookieManager.#ctor(Java.Net.ICookieStore,Java.Net.ICookiePolicy)" />
<MemberSignature Language="F#" Value="new Java.Net.CookieManager : Java.Net.ICookieStore * Java.Net.ICookiePolicy -> Java.Net.CookieManager" Usage="new Java.Net.CookieManager (store, cookiePolicy)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/net/CookieStore;Ljava/net/CookiePolicy;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/net/CookieStore;Ljava/net/CookiePolicy;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="store" Type="Java.Net.ICookieStore" />
<Parameter Name="cookiePolicy" Type="Java.Net.ICookiePolicy" />
</Parameters>
<Docs>
<param name="store">a <c>CookieStore</c> to be used by cookie manager.
if <c>null</c>, cookie manager will use a default one,
which is an in-memory CookieStore implementation.</param>
<param name="cookiePolicy">a <c>CookiePolicy</c> instance
to be used by cookie manager as policy callback.
if <c>null</c>, ACCEPT_ORIGINAL_SERVER will
be used.</param>
<summary>Create a new cookie manager with specified cookie store and cookie policy.</summary>
<remarks>
<para>Create a new cookie manager with specified cookie store and cookie policy.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/CookieManager#CookieManager(java.net.CookieStore,%20java.net.CookiePolicy)" title="Reference documentation">Java documentation for <code>java.net.CookieManager.CookieManager(java.net.CookieStore, java.net.CookiePolicy)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 9" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CookieManager (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.CookieManager.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Java.Net.CookieManager : nativeint * Android.Runtime.JniHandleOwnership -> Java.Net.CookieManager" Usage="new Java.Net.CookieManager (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">A <see cref="T:System.IntPtr" />containing a Java Native Interface (JNI) object reference.</param>
<param name="transfer">A <see cref="T:Android.Runtime.JniHandleOwnership" />indicating how to handle <paramref name="javaReference" /></param>
<summary>A constructor used when creating managed representations of JNI objects; called by the runtime.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CookieStore">
<MemberSignature Language="C#" Value="public virtual Java.Net.ICookieStore? CookieStore { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Net.ICookieStore CookieStore" />
<MemberSignature Language="DocId" Value="P:Java.Net.CookieManager.CookieStore" />
<MemberSignature Language="F#" Value="member this.CookieStore : Java.Net.ICookieStore" Usage="Java.Net.CookieManager.CookieStore" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getCookieStore", "()Ljava/net/CookieStore;", "GetGetCookieStoreHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getCookieStore", "()Ljava/net/CookieStore;", "GetGetCookieStoreHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Net.ICookieStore</ReturnType>
</ReturnValue>
<Docs>
<summary>To retrieve current cookie store.</summary>
<value>the cookie store currently used by cookie manager.</value>
<remarks>
<para>To retrieve current cookie store.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/CookieManager#getCookieStore()" title="Reference documentation">Java documentation for <code>java.net.CookieManager.getCookieStore()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 9" />
</Docs>
</Member>
<Member MemberName="Get">
<MemberSignature Language="C#" Value="public override System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>>? Get (Java.Net.URI? uri, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>>? requestHeaders);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.Collections.Generic.IDictionary`2<string, class System.Collections.Generic.IList`1<string>> Get(class Java.Net.URI uri, class System.Collections.Generic.IDictionary`2<string, class System.Collections.Generic.IList`1<string>> requestHeaders) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.CookieManager.Get(Java.Net.URI,System.Collections.Generic.IDictionary{System.String,System.Collections.Generic.IList{System.String}})" />
<MemberSignature Language="F#" Value="override this.Get : Java.Net.URI * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>> -> System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>>" Usage="cookieManager.Get (uri, requestHeaders)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("get", "(Ljava/net/URI;Ljava/util/Map;)Ljava/util/Map;", "GetGet_Ljava_net_URI_Ljava_util_Map_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("get", "(Ljava/net/URI;Ljava/util/Map;)Ljava/util/Map;", "GetGet_Ljava_net_URI_Ljava_util_Map_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IDictionary<System.String,System.Collections.Generic.IList<System.String>></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="uri" Type="Java.Net.URI" />
<Parameter Name="requestHeaders" Type="System.Collections.Generic.IDictionary<System.String,System.Collections.Generic.IList<System.String>>" />
</Parameters>
<Docs>
<param name="uri">To be added.</param>
<param name="requestHeaders">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="JniPeerMembers">
<MemberSignature Language="C#" Value="public override Java.Interop.JniPeerMembers JniPeerMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Interop.JniPeerMembers JniPeerMembers" />
<MemberSignature Language="DocId" Value="P:Java.Net.CookieManager.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Java.Net.CookieManager.JniPeerMembers" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Interop.JniPeerMembers</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Put">
<MemberSignature Language="C#" Value="public override void Put (Java.Net.URI? uri, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>>? responseHeaders);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void Put(class Java.Net.URI uri, class System.Collections.Generic.IDictionary`2<string, class System.Collections.Generic.IList`1<string>> responseHeaders) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.CookieManager.Put(Java.Net.URI,System.Collections.Generic.IDictionary{System.String,System.Collections.Generic.IList{System.String}})" />
<MemberSignature Language="F#" Value="override this.Put : Java.Net.URI * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>> -> unit" Usage="cookieManager.Put (uri, responseHeaders)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("put", "(Ljava/net/URI;Ljava/util/Map;)V", "GetPut_Ljava_net_URI_Ljava_util_Map_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("put", "(Ljava/net/URI;Ljava/util/Map;)V", "GetPut_Ljava_net_URI_Ljava_util_Map_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="uri" Type="Java.Net.URI" />
<Parameter Name="responseHeaders" Type="System.Collections.Generic.IDictionary<System.String,System.Collections.Generic.IList<System.String>>" />
</Parameters>
<Docs>
<param name="uri">To be added.</param>
<param name="responseHeaders">To be added.</param>
<summary>To be added.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="SetCookiePolicy">
<MemberSignature Language="C#" Value="public virtual void SetCookiePolicy (Java.Net.ICookiePolicy? cookiePolicy);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetCookiePolicy(class Java.Net.ICookiePolicy cookiePolicy) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.CookieManager.SetCookiePolicy(Java.Net.ICookiePolicy)" />
<MemberSignature Language="F#" Value="abstract member SetCookiePolicy : Java.Net.ICookiePolicy -> unit
override this.SetCookiePolicy : Java.Net.ICookiePolicy -> unit" Usage="cookieManager.SetCookiePolicy cookiePolicy" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("setCookiePolicy", "(Ljava/net/CookiePolicy;)V", "GetSetCookiePolicy_Ljava_net_CookiePolicy_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("setCookiePolicy", "(Ljava/net/CookiePolicy;)V", "GetSetCookiePolicy_Ljava_net_CookiePolicy_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cookiePolicy" Type="Java.Net.ICookiePolicy" />
</Parameters>
<Docs>
<param name="cookiePolicy">the cookie policy. Can be <c>null</c>, which
has no effects on current cookie policy.</param>
<summary>To set the cookie policy of this cookie manager.</summary>
<remarks>
<para>To set the cookie policy of this cookie manager.</para>
<para>A instance of <c>CookieManager</c> will have
cookie policy ACCEPT_ORIGINAL_SERVER by default. Users always
can call this method to set another cookie policy.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/CookieManager#setCookiePolicy(java.net.CookiePolicy)" title="Reference documentation">Java documentation for <code>java.net.CookieManager.setCookiePolicy(java.net.CookiePolicy)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 9" />
</Docs>
</Member>
<Member MemberName="ThresholdClass">
<MemberSignature Language="C#" Value="protected override IntPtr ThresholdClass { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance native int ThresholdClass" />
<MemberSignature Language="DocId" Value="P:Java.Net.CookieManager.ThresholdClass" />
<MemberSignature Language="F#" Value="member this.ThresholdClass : nativeint" Usage="Java.Net.CookieManager.ThresholdClass" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.</summary>
<value>A <see cref="T:System.IntPtr" /> which contains the <c>java.lang.Class</c> JNI value corresponding to this type.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ThresholdType">
<MemberSignature Language="C#" Value="protected override Type ThresholdType { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Type ThresholdType" />
<MemberSignature Language="DocId" Value="P:Java.Net.CookieManager.ThresholdType" />
<MemberSignature Language="F#" Value="member this.ThresholdType : Type" Usage="Java.Net.CookieManager.ThresholdType" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Type</ReturnType>
</ReturnValue>
<Docs>
<summary>This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.</summary>
<value>A <see cref="T:System.Type" /> which provides the declaring type.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
</Members>
</Type>