/Generated/v2.1/Java.Net.cs

https://gitlab.com/Pfhoenix/api · C# · 1145 lines · 424 code · 89 blank · 632 comment · 0 complexity · cb0ac7d7ce1eab36b396aa1a54338666 MD5 · raw file

  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Java.Net.cs
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. #pragma warning disable 1717
  17. namespace Java.Net
  18. {
  19. /// <summary>
  20. /// <para>This class establishes a connection to a <c> jar: </c> URL using the <c> JAR </c> protocol. A <c> JarURLConnection </c> instance can refer to either a JAR archive file or to an entry of such a file. <c> jar: </c> URLs are specified as follows: <b>jar:{archive-url}!/{entry}</b> where "!/" is called a separator. This separator is important to determine if an archive or an entry of an archive is referred. </para><para>Examples: Archive: <c> jar:http://www.example.com/applets/archive.jar!/ </c> File Entry: <c> jar:http://www.example.com/applets/archive.jar!/test.class </c> Directory Entry: <c> jar:http://www.example.com/applets/archive.jar!/applets/ </c> </para>
  21. /// </summary>
  22. /// <java-name>
  23. /// java/net/JarURLConnection
  24. /// </java-name>
  25. [Dot42.DexImport("java/net/JarURLConnection", AccessFlags = 1057)]
  26. public abstract partial class JarURLConnection : global::Java.Net.URLConnection
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>The location part of the represented URL. </para>
  31. /// </summary>
  32. /// <java-name>
  33. /// jarFileURLConnection
  34. /// </java-name>
  35. [Dot42.DexImport("jarFileURLConnection", "Ljava/net/URLConnection;", AccessFlags = 4)]
  36. protected internal global::Java.Net.URLConnection JarFileURLConnection;
  37. /// <summary>
  38. /// <para>Constructs an instance of <c> JarURLConnection </c> that refers to the specified URL.</para><para></para>
  39. /// </summary>
  40. [Dot42.DexImport("<init>", "(Ljava/net/URL;)V", AccessFlags = 4)]
  41. protected internal JarURLConnection(global::Java.Net.URL url) /* MethodBuilder.Create */
  42. {
  43. }
  44. /// <summary>
  45. /// <para>Returns all attributes of the <c> JarEntry </c> referenced by this <c> JarURLConnection </c> .</para><para></para>
  46. /// </summary>
  47. /// <returns>
  48. /// <para>the attributes of the referenced <c> JarEntry </c> . </para>
  49. /// </returns>
  50. /// <java-name>
  51. /// getAttributes
  52. /// </java-name>
  53. [Dot42.DexImport("getAttributes", "()Ljava/util/jar/Attributes;", AccessFlags = 1)]
  54. public virtual global::Java.Util.Jar.Attributes GetAttributes() /* MethodBuilder.Create */
  55. {
  56. return default(global::Java.Util.Jar.Attributes);
  57. }
  58. /// <summary>
  59. /// <para>Returns all certificates of the <c> JarEntry </c> referenced by this <c> JarURLConnection </c> instance. This method will return <c> null </c> until the <c> InputStream </c> has been completely verified.</para><para></para>
  60. /// </summary>
  61. /// <returns>
  62. /// <para>the certificates of the <c> JarEntry </c> as an array. </para>
  63. /// </returns>
  64. /// <java-name>
  65. /// getCertificates
  66. /// </java-name>
  67. [Dot42.DexImport("getCertificates", "()[Ljava/security/cert/Certificate;", AccessFlags = 1)]
  68. public virtual global::Java.Security.Cert.Certificate[] GetCertificates() /* MethodBuilder.Create */
  69. {
  70. return default(global::Java.Security.Cert.Certificate[]);
  71. }
  72. /// <summary>
  73. /// <para>Gets the name of the entry referenced by this <c> JarURLConnection </c> . The return value will be <c> null </c> if this instance refers to a JAR file rather than an JAR file entry.</para><para></para>
  74. /// </summary>
  75. /// <returns>
  76. /// <para>the <c> JarEntry </c> name this instance refers to. </para>
  77. /// </returns>
  78. /// <java-name>
  79. /// getEntryName
  80. /// </java-name>
  81. [Dot42.DexImport("getEntryName", "()Ljava/lang/String;", AccessFlags = 1)]
  82. public virtual string GetEntryName() /* MethodBuilder.Create */
  83. {
  84. return default(string);
  85. }
  86. /// <summary>
  87. /// <para>Gets the <c> JarEntry </c> object of the entry referenced by this <c> JarURLConnection </c> .</para><para></para>
  88. /// </summary>
  89. /// <returns>
  90. /// <para>the referenced <c> JarEntry </c> object or <c> null </c> if no entry name is specified. </para>
  91. /// </returns>
  92. /// <java-name>
  93. /// getJarEntry
  94. /// </java-name>
  95. [Dot42.DexImport("getJarEntry", "()Ljava/util/jar/JarEntry;", AccessFlags = 1)]
  96. public virtual global::Java.Util.Jar.JarEntry GetJarEntry() /* MethodBuilder.Create */
  97. {
  98. return default(global::Java.Util.Jar.JarEntry);
  99. }
  100. /// <summary>
  101. /// <para>Gets the manifest file associated with this JAR-URL.</para><para></para>
  102. /// </summary>
  103. /// <returns>
  104. /// <para>the manifest of the referenced JAR-file. </para>
  105. /// </returns>
  106. /// <java-name>
  107. /// getManifest
  108. /// </java-name>
  109. [Dot42.DexImport("getManifest", "()Ljava/util/jar/Manifest;", AccessFlags = 1)]
  110. public virtual global::Java.Util.Jar.Manifest GetManifest() /* MethodBuilder.Create */
  111. {
  112. return default(global::Java.Util.Jar.Manifest);
  113. }
  114. /// <summary>
  115. /// <para>Gets the <c> JarFile </c> object referenced by this <c> JarURLConnection </c> .</para><para></para>
  116. /// </summary>
  117. /// <returns>
  118. /// <para>the referenced JarFile object. </para>
  119. /// </returns>
  120. /// <java-name>
  121. /// getJarFile
  122. /// </java-name>
  123. [Dot42.DexImport("getJarFile", "()Ljava/util/jar/JarFile;", AccessFlags = 1025)]
  124. public abstract global::Java.Util.Jar.JarFile GetJarFile() /* MethodBuilder.Create */ ;
  125. /// <summary>
  126. /// <para>Gets the URL to the JAR-file referenced by this <c> JarURLConnection </c> .</para><para></para>
  127. /// </summary>
  128. /// <returns>
  129. /// <para>the URL to the JAR-file or <c> null </c> if there was an error retrieving the URL. </para>
  130. /// </returns>
  131. /// <java-name>
  132. /// getJarFileURL
  133. /// </java-name>
  134. [Dot42.DexImport("getJarFileURL", "()Ljava/net/URL;", AccessFlags = 1)]
  135. public virtual global::Java.Net.URL GetJarFileURL() /* MethodBuilder.Create */
  136. {
  137. return default(global::Java.Net.URL);
  138. }
  139. /// <summary>
  140. /// <para>Gets all attributes of the manifest file referenced by this <c> JarURLConnection </c> . If this instance refers to a JAR-file rather than a JAR-file entry, <c> null </c> will be returned.</para><para></para>
  141. /// </summary>
  142. /// <returns>
  143. /// <para>the attributes of the manifest file or <c> null </c> . </para>
  144. /// </returns>
  145. /// <java-name>
  146. /// getMainAttributes
  147. /// </java-name>
  148. [Dot42.DexImport("getMainAttributes", "()Ljava/util/jar/Attributes;", AccessFlags = 1)]
  149. public virtual global::Java.Util.Jar.Attributes GetMainAttributes() /* MethodBuilder.Create */
  150. {
  151. return default(global::Java.Util.Jar.Attributes);
  152. }
  153. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  154. internal JarURLConnection() /* TypeBuilder.AddDefaultConstructor */
  155. {
  156. }
  157. /// <summary>
  158. /// <para>Returns all attributes of the <c> JarEntry </c> referenced by this <c> JarURLConnection </c> .</para><para></para>
  159. /// </summary>
  160. /// <returns>
  161. /// <para>the attributes of the referenced <c> JarEntry </c> . </para>
  162. /// </returns>
  163. /// <java-name>
  164. /// getAttributes
  165. /// </java-name>
  166. public global::Java.Util.Jar.Attributes Attributes
  167. {
  168. [Dot42.DexImport("getAttributes", "()Ljava/util/jar/Attributes;", AccessFlags = 1)]
  169. get{ return GetAttributes(); }
  170. }
  171. /// <summary>
  172. /// <para>Returns all certificates of the <c> JarEntry </c> referenced by this <c> JarURLConnection </c> instance. This method will return <c> null </c> until the <c> InputStream </c> has been completely verified.</para><para></para>
  173. /// </summary>
  174. /// <returns>
  175. /// <para>the certificates of the <c> JarEntry </c> as an array. </para>
  176. /// </returns>
  177. /// <java-name>
  178. /// getCertificates
  179. /// </java-name>
  180. public global::Java.Security.Cert.Certificate[] Certificates
  181. {
  182. [Dot42.DexImport("getCertificates", "()[Ljava/security/cert/Certificate;", AccessFlags = 1)]
  183. get{ return GetCertificates(); }
  184. }
  185. /// <summary>
  186. /// <para>Gets the name of the entry referenced by this <c> JarURLConnection </c> . The return value will be <c> null </c> if this instance refers to a JAR file rather than an JAR file entry.</para><para></para>
  187. /// </summary>
  188. /// <returns>
  189. /// <para>the <c> JarEntry </c> name this instance refers to. </para>
  190. /// </returns>
  191. /// <java-name>
  192. /// getEntryName
  193. /// </java-name>
  194. public string EntryName
  195. {
  196. [Dot42.DexImport("getEntryName", "()Ljava/lang/String;", AccessFlags = 1)]
  197. get{ return GetEntryName(); }
  198. }
  199. /// <summary>
  200. /// <para>Gets the <c> JarEntry </c> object of the entry referenced by this <c> JarURLConnection </c> .</para><para></para>
  201. /// </summary>
  202. /// <returns>
  203. /// <para>the referenced <c> JarEntry </c> object or <c> null </c> if no entry name is specified. </para>
  204. /// </returns>
  205. /// <java-name>
  206. /// getJarEntry
  207. /// </java-name>
  208. public global::Java.Util.Jar.JarEntry JarEntry
  209. {
  210. [Dot42.DexImport("getJarEntry", "()Ljava/util/jar/JarEntry;", AccessFlags = 1)]
  211. get{ return GetJarEntry(); }
  212. }
  213. /// <summary>
  214. /// <para>Gets the manifest file associated with this JAR-URL.</para><para></para>
  215. /// </summary>
  216. /// <returns>
  217. /// <para>the manifest of the referenced JAR-file. </para>
  218. /// </returns>
  219. /// <java-name>
  220. /// getManifest
  221. /// </java-name>
  222. public global::Java.Util.Jar.Manifest Manifest
  223. {
  224. [Dot42.DexImport("getManifest", "()Ljava/util/jar/Manifest;", AccessFlags = 1)]
  225. get{ return GetManifest(); }
  226. }
  227. /// <summary>
  228. /// <para>Gets the <c> JarFile </c> object referenced by this <c> JarURLConnection </c> .</para><para></para>
  229. /// </summary>
  230. /// <returns>
  231. /// <para>the referenced JarFile object. </para>
  232. /// </returns>
  233. /// <java-name>
  234. /// getJarFile
  235. /// </java-name>
  236. public global::Java.Util.Jar.JarFile JarFile
  237. {
  238. [Dot42.DexImport("getJarFile", "()Ljava/util/jar/JarFile;", AccessFlags = 1025)]
  239. get{ return GetJarFile(); }
  240. }
  241. /// <summary>
  242. /// <para>Gets the URL to the JAR-file referenced by this <c> JarURLConnection </c> .</para><para></para>
  243. /// </summary>
  244. /// <returns>
  245. /// <para>the URL to the JAR-file or <c> null </c> if there was an error retrieving the URL. </para>
  246. /// </returns>
  247. /// <java-name>
  248. /// getJarFileURL
  249. /// </java-name>
  250. public global::Java.Net.URL JarFileURL
  251. {
  252. [Dot42.DexImport("getJarFileURL", "()Ljava/net/URL;", AccessFlags = 1)]
  253. get{ return GetJarFileURL(); }
  254. }
  255. /// <summary>
  256. /// <para>Gets all attributes of the manifest file referenced by this <c> JarURLConnection </c> . If this instance refers to a JAR-file rather than a JAR-file entry, <c> null </c> will be returned.</para><para></para>
  257. /// </summary>
  258. /// <returns>
  259. /// <para>the attributes of the manifest file or <c> null </c> . </para>
  260. /// </returns>
  261. /// <java-name>
  262. /// getMainAttributes
  263. /// </java-name>
  264. public global::Java.Util.Jar.Attributes MainAttributes
  265. {
  266. [Dot42.DexImport("getMainAttributes", "()Ljava/util/jar/Attributes;", AccessFlags = 1)]
  267. get{ return GetMainAttributes(); }
  268. }
  269. }
  270. /// <summary>
  271. /// <para>An IPv6 address. See InetAddress. </para>
  272. /// </summary>
  273. /// <java-name>
  274. /// java/net/Inet6Address
  275. /// </java-name>
  276. [Dot42.DexImport("java/net/Inet6Address", AccessFlags = 49)]
  277. public sealed partial class Inet6Address : global::Java.Net.InetAddress
  278. /* scope: __dot42__ */
  279. {
  280. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  281. internal Inet6Address() /* MethodBuilder.Create */
  282. {
  283. }
  284. /// <java-name>
  285. /// getByAddress
  286. /// </java-name>
  287. [Dot42.DexImport("getByAddress", "(Ljava/lang/String;[BI)Ljava/net/Inet6Address;", AccessFlags = 9)]
  288. public static global::Java.Net.Inet6Address GetByAddress(string @string, sbyte[] sByte, int int32) /* MethodBuilder.Create */
  289. {
  290. return default(global::Java.Net.Inet6Address);
  291. }
  292. /// <java-name>
  293. /// getByAddress
  294. /// </java-name>
  295. [Dot42.DexImport("getByAddress", "(Ljava/lang/String;[BI)Ljava/net/Inet6Address;", AccessFlags = 9, IgnoreFromJava = true)]
  296. public static global::Java.Net.Inet6Address GetByAddress(string @string, byte[] @byte, int int32) /* MethodBuilder.Create */
  297. {
  298. return default(global::Java.Net.Inet6Address);
  299. }
  300. /// <java-name>
  301. /// getByAddress
  302. /// </java-name>
  303. [Dot42.DexImport("getByAddress", "(Ljava/lang/String;[BLjava/net/NetworkInterface;)Ljava/net/Inet6Address;", AccessFlags = 9)]
  304. public static global::Java.Net.Inet6Address GetByAddress(string @string, sbyte[] sByte, global::Java.Net.NetworkInterface networkInterface) /* MethodBuilder.Create */
  305. {
  306. return default(global::Java.Net.Inet6Address);
  307. }
  308. /// <java-name>
  309. /// getByAddress
  310. /// </java-name>
  311. [Dot42.DexImport("getByAddress", "(Ljava/lang/String;[BLjava/net/NetworkInterface;)Ljava/net/Inet6Address;", AccessFlags = 9, IgnoreFromJava = true)]
  312. public static global::Java.Net.Inet6Address GetByAddress(string @string, byte[] @byte, global::Java.Net.NetworkInterface networkInterface) /* MethodBuilder.Create */
  313. {
  314. return default(global::Java.Net.Inet6Address);
  315. }
  316. /// <summary>
  317. /// <para>Returns whether this address is a multicast address or not.</para><para>Valid IPv6 multicast addresses have the prefix <c> ff::/8 </c> .</para><para>Valid IPv4 multicast addresses have the prefix <c> 224/4 </c> . </para>
  318. /// </summary>
  319. /// <java-name>
  320. /// isMulticastAddress
  321. /// </java-name>
  322. [Dot42.DexImport("isMulticastAddress", "()Z", AccessFlags = 1)]
  323. public override bool IsMulticastAddress() /* MethodBuilder.Create */
  324. {
  325. return default(bool);
  326. }
  327. /// <summary>
  328. /// <para>Returns whether this is the IPv6 unspecified wildcard address <c> :: </c> or the IPv4 "any" address, <c> 0.0.0.0 </c> . </para>
  329. /// </summary>
  330. /// <java-name>
  331. /// isAnyLocalAddress
  332. /// </java-name>
  333. [Dot42.DexImport("isAnyLocalAddress", "()Z", AccessFlags = 1)]
  334. public override bool IsAnyLocalAddress() /* MethodBuilder.Create */
  335. {
  336. return default(bool);
  337. }
  338. /// <summary>
  339. /// <para>Returns whether this address is a loopback address or not.</para><para>Valid IPv4 loopback addresses have the prefix <c> 127/8 </c> .</para><para>The only valid IPv6 loopback address is <c> ::1 </c> . </para>
  340. /// </summary>
  341. /// <java-name>
  342. /// isLoopbackAddress
  343. /// </java-name>
  344. [Dot42.DexImport("isLoopbackAddress", "()Z", AccessFlags = 1)]
  345. public override bool IsLoopbackAddress() /* MethodBuilder.Create */
  346. {
  347. return default(bool);
  348. }
  349. /// <summary>
  350. /// <para>Returns whether this address is a link-local address or not.</para><para>Valid IPv6 link-local addresses have the prefix <c> fe80::/10 </c> .</para><para> "Default Address Selection for Internet Protocol Version 6 (IPv6)" states that both IPv4 auto-configuration addresses (prefix <c> 169.254/16 </c> ) and IPv4 loopback addresses (prefix <c> 127/8 </c> ) have link-local scope, but Inet4Address only considers the auto-configuration addresses to have link-local scope. That is: the IPv4 loopback address returns false. </para>
  351. /// </summary>
  352. /// <java-name>
  353. /// isLinkLocalAddress
  354. /// </java-name>
  355. [Dot42.DexImport("isLinkLocalAddress", "()Z", AccessFlags = 1)]
  356. public override bool IsLinkLocalAddress() /* MethodBuilder.Create */
  357. {
  358. return default(bool);
  359. }
  360. /// <summary>
  361. /// <para>Returns whether this address is a site-local address or not.</para><para>For the purposes of this method, valid IPv6 site-local addresses have the deprecated prefix <c> fec0::/10 </c> from , <b>not</b> the modern prefix <c> fc00::/7 </c> from .</para><para> "Default Address Selection for Internet Protocol Version 6 (IPv6)" states that IPv4 private addresses have the prefix <c> 10/8 </c> , <c> 172.16/12 </c> , or <c> 192.168/16 </c> .</para><para></para>
  362. /// </summary>
  363. /// <returns>
  364. /// <para><c> true </c> if this instance represents a site-local address, <c> false </c> otherwise. </para>
  365. /// </returns>
  366. /// <java-name>
  367. /// isSiteLocalAddress
  368. /// </java-name>
  369. [Dot42.DexImport("isSiteLocalAddress", "()Z", AccessFlags = 1)]
  370. public override bool IsSiteLocalAddress() /* MethodBuilder.Create */
  371. {
  372. return default(bool);
  373. }
  374. /// <summary>
  375. /// <para>Returns whether this address is a global multicast address or not.</para><para>Valid IPv6 global multicast addresses have the prefix <c> ffxe::/16 </c> , where <c> x </c> is a set of flags and the additional 112 bits make up the global multicast address space.</para><para>Valid IPv4 global multicast addresses are the range of addresses from <c> 224.0.1.0 </c> to <c> 238.255.255.255 </c> . </para>
  376. /// </summary>
  377. /// <java-name>
  378. /// isMCGlobal
  379. /// </java-name>
  380. [Dot42.DexImport("isMCGlobal", "()Z", AccessFlags = 1)]
  381. public override bool IsMCGlobal() /* MethodBuilder.Create */
  382. {
  383. return default(bool);
  384. }
  385. /// <summary>
  386. /// <para>Returns whether this address is a node-local multicast address or not.</para><para>Valid IPv6 node-local multicast addresses have the prefix <c> ffx1::/16 </c> , where x is a set of flags and the additional 112 bits make up the link-local multicast address space.</para><para>There are no valid IPv4 node-local multicast addresses. </para>
  387. /// </summary>
  388. /// <java-name>
  389. /// isMCNodeLocal
  390. /// </java-name>
  391. [Dot42.DexImport("isMCNodeLocal", "()Z", AccessFlags = 1)]
  392. public override bool IsMCNodeLocal() /* MethodBuilder.Create */
  393. {
  394. return default(bool);
  395. }
  396. /// <summary>
  397. /// <para>Returns whether this address is a link-local multicast address or not.</para><para>Valid IPv6 link-local multicast addresses have the prefix <c> ffx2::/16 </c> , where x is a set of flags and the additional 112 bits make up the link-local multicast address space.</para><para>Valid IPv4 link-local multicast addresses have the prefix <c> 224.0.0/24 </c> . </para>
  398. /// </summary>
  399. /// <java-name>
  400. /// isMCLinkLocal
  401. /// </java-name>
  402. [Dot42.DexImport("isMCLinkLocal", "()Z", AccessFlags = 1)]
  403. public override bool IsMCLinkLocal() /* MethodBuilder.Create */
  404. {
  405. return default(bool);
  406. }
  407. /// <summary>
  408. /// <para>Returns whether this address is a site-local multicast address or not.</para><para>Valid IPv6 site-local multicast addresses have the prefix <c> ffx5::/16 </c> , where x is a set of flags and the additional 112 bits make up the link-local multicast address space.</para><para>Valid IPv4 site-local multicast addresses have the prefix <c> 239.255/16 </c> . </para>
  409. /// </summary>
  410. /// <java-name>
  411. /// isMCSiteLocal
  412. /// </java-name>
  413. [Dot42.DexImport("isMCSiteLocal", "()Z", AccessFlags = 1)]
  414. public override bool IsMCSiteLocal() /* MethodBuilder.Create */
  415. {
  416. return default(bool);
  417. }
  418. /// <summary>
  419. /// <para>Returns whether this address is a organization-local multicast address or not.</para><para>Valid IPv6 organization-local multicast addresses have the prefix <c> ffx8::/16 </c> , where x is a set of flags and the additional 112 bits make up the link-local multicast address space.</para><para>Valid IPv4 organization-local multicast addresses have the prefix <c> 239.192/14 </c> . </para>
  420. /// </summary>
  421. /// <java-name>
  422. /// isMCOrgLocal
  423. /// </java-name>
  424. [Dot42.DexImport("isMCOrgLocal", "()Z", AccessFlags = 1)]
  425. public override bool IsMCOrgLocal() /* MethodBuilder.Create */
  426. {
  427. return default(bool);
  428. }
  429. /// <summary>
  430. /// <para>Returns the scope id if this address is scoped to an interface, 0 otherwise. </para>
  431. /// </summary>
  432. /// <java-name>
  433. /// getScopeId
  434. /// </java-name>
  435. [Dot42.DexImport("getScopeId", "()I", AccessFlags = 1)]
  436. public int GetScopeId() /* MethodBuilder.Create */
  437. {
  438. return default(int);
  439. }
  440. /// <summary>
  441. /// <para>Returns the network interface if this address is instanced with a scoped network interface, null otherwise. </para>
  442. /// </summary>
  443. /// <java-name>
  444. /// getScopedInterface
  445. /// </java-name>
  446. [Dot42.DexImport("getScopedInterface", "()Ljava/net/NetworkInterface;", AccessFlags = 1)]
  447. public global::Java.Net.NetworkInterface GetScopedInterface() /* MethodBuilder.Create */
  448. {
  449. return default(global::Java.Net.NetworkInterface);
  450. }
  451. /// <summary>
  452. /// <para>Returns whether this IPv6 address is an IPv4-compatible address or not. An IPv4-compatible address has the prefix <c> ::/96 </c> and is a deprecated and no-longer used equivalent of the modern IPv4-mapped IPv6 addresses. </para>
  453. /// </summary>
  454. /// <java-name>
  455. /// isIPv4CompatibleAddress
  456. /// </java-name>
  457. [Dot42.DexImport("isIPv4CompatibleAddress", "()Z", AccessFlags = 1)]
  458. public bool IsIPv4CompatibleAddress() /* MethodBuilder.Create */
  459. {
  460. return default(bool);
  461. }
  462. /// <summary>
  463. /// <para>Returns a string containing the host name (if available) and host address. For example: <c> "www.google.com/74.125.224.115" </c> or <c> "/127.0.0.1" </c> .</para><para>IPv6 addresses may additionally include an interface name or scope id. For example: <c> "www.google.com/2001:4860:4001:803::1013%eth0" </c> or <c> "/2001:4860:4001:803::1013%2" </c> . </para>
  464. /// </summary>
  465. /// <java-name>
  466. /// toString
  467. /// </java-name>
  468. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  469. public override string ToString() /* MethodBuilder.Create */
  470. {
  471. return default(string);
  472. }
  473. /// <summary>
  474. /// <para>Returns the scope id if this address is scoped to an interface, 0 otherwise. </para>
  475. /// </summary>
  476. /// <java-name>
  477. /// getScopeId
  478. /// </java-name>
  479. public int ScopeId
  480. {
  481. [Dot42.DexImport("getScopeId", "()I", AccessFlags = 1)]
  482. get{ return GetScopeId(); }
  483. }
  484. /// <summary>
  485. /// <para>Returns the network interface if this address is instanced with a scoped network interface, null otherwise. </para>
  486. /// </summary>
  487. /// <java-name>
  488. /// getScopedInterface
  489. /// </java-name>
  490. public global::Java.Net.NetworkInterface ScopedInterface
  491. {
  492. [Dot42.DexImport("getScopedInterface", "()Ljava/net/NetworkInterface;", AccessFlags = 1)]
  493. get{ return GetScopedInterface(); }
  494. }
  495. }
  496. /// <summary>
  497. /// <para>This interface defines a factory for socket implementations. </para>
  498. /// </summary>
  499. /// <java-name>
  500. /// java/net/SocketImplFactory
  501. /// </java-name>
  502. [Dot42.DexImport("java/net/SocketImplFactory", AccessFlags = 1537)]
  503. public partial interface ISocketImplFactory
  504. /* scope: __dot42__ */
  505. {
  506. /// <summary>
  507. /// <para>Creates a new <c> SocketImpl </c> instance.</para><para></para>
  508. /// </summary>
  509. /// <returns>
  510. /// <para>the created <c> SocketImpl </c> instance. </para>
  511. /// </returns>
  512. /// <java-name>
  513. /// createSocketImpl
  514. /// </java-name>
  515. [Dot42.DexImport("createSocketImpl", "()Ljava/net/SocketImpl;", AccessFlags = 1025)]
  516. global::Java.Net.SocketImpl CreateSocketImpl() /* MethodBuilder.Create */ ;
  517. }
  518. /// <summary>
  519. /// <para>This class is used to encode a string using the format required by <c> application/x-www-form-urlencoded </c> MIME content type.</para><para>All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9') and characters '.', '-', '*', '_' are converted into their hexadecimal value prepended by ''. For example: '#' -&gt; %23. In addition, spaces are substituted by '+'. </para>
  520. /// </summary>
  521. /// <java-name>
  522. /// java/net/URLEncoder
  523. /// </java-name>
  524. [Dot42.DexImport("java/net/URLEncoder", AccessFlags = 33)]
  525. public partial class URLEncoder
  526. /* scope: __dot42__ */
  527. {
  528. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  529. internal URLEncoder() /* MethodBuilder.Create */
  530. {
  531. }
  532. /// <summary>
  533. /// <para>Equivalent to <c> encode(s, "UTF-8") </c> .</para><para><xrefsect><xreftitle>Deprecated</xreftitle><xrefdescription><para>use encode(String, String) instead. </para></xrefdescription></xrefsect></para>
  534. /// </summary>
  535. /// <java-name>
  536. /// encode
  537. /// </java-name>
  538. [Dot42.DexImport("encode", "(Ljava/lang/String;)Ljava/lang/String;", AccessFlags = 9)]
  539. public static string Encode(string s) /* MethodBuilder.Create */
  540. {
  541. return default(string);
  542. }
  543. /// <summary>
  544. /// <para>Encodes <c> s </c> using the Charset named by <c> charsetName </c> . </para>
  545. /// </summary>
  546. /// <java-name>
  547. /// encode
  548. /// </java-name>
  549. [Dot42.DexImport("encode", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", AccessFlags = 9)]
  550. public static string Encode(string s, string charsetName) /* MethodBuilder.Create */
  551. {
  552. return default(string);
  553. }
  554. }
  555. /// <summary>
  556. /// <para>This class loader is responsible for loading classes and resources from a list of URLs which can refer to either directories or JAR files. Classes loaded by this <c> URLClassLoader </c> are granted permission to access the URLs contained in the URL search list. </para>
  557. /// </summary>
  558. /// <java-name>
  559. /// java/net/URLClassLoader
  560. /// </java-name>
  561. [Dot42.DexImport("java/net/URLClassLoader", AccessFlags = 33)]
  562. public partial class URLClassLoader : global::Java.Security.SecureClassLoader
  563. /* scope: __dot42__ */
  564. {
  565. /// <summary>
  566. /// <para>Constructs a new <c> URLClassLoader </c> instance. The newly created instance will have the system ClassLoader as its parent. URLs that end with "/" are assumed to be directories, otherwise they are assumed to be JAR files.</para><para></para>
  567. /// </summary>
  568. [Dot42.DexImport("<init>", "([Ljava/net/URL;)V", AccessFlags = 1)]
  569. public URLClassLoader(global::Java.Net.URL[] urls) /* MethodBuilder.Create */
  570. {
  571. }
  572. /// <summary>
  573. /// <para>Constructs a new URLClassLoader instance. The newly created instance will have the system ClassLoader as its parent. URLs that end with "/" are assumed to be directories, otherwise they are assumed to be JAR files.</para><para></para>
  574. /// </summary>
  575. [Dot42.DexImport("<init>", "([Ljava/net/URL;Ljava/lang/ClassLoader;)V", AccessFlags = 1)]
  576. public URLClassLoader(global::Java.Net.URL[] urls, global::Java.Lang.ClassLoader parent) /* MethodBuilder.Create */
  577. {
  578. }
  579. /// <summary>
  580. /// <para>Constructs a new <c> URLClassLoader </c> instance. The newly created instance will have the specified <c> ClassLoader </c> as its parent and use the specified factory to create stream handlers. URLs that end with "/" are assumed to be directories, otherwise they are assumed to be JAR files.</para><para></para>
  581. /// </summary>
  582. [Dot42.DexImport("<init>", "([Ljava/net/URL;Ljava/lang/ClassLoader;Ljava/net/URLStreamHandlerFactory;)V", AccessFlags = 1)]
  583. public URLClassLoader(global::Java.Net.URL[] searchUrls, global::Java.Lang.ClassLoader parent, global::Java.Net.IURLStreamHandlerFactory factory) /* MethodBuilder.Create */
  584. {
  585. }
  586. /// <summary>
  587. /// <para>Adds the specified URL to the search list.</para><para></para>
  588. /// </summary>
  589. /// <java-name>
  590. /// addURL
  591. /// </java-name>
  592. [Dot42.DexImport("addURL", "(Ljava/net/URL;)V", AccessFlags = 4)]
  593. protected internal virtual void AddURL(global::Java.Net.URL url) /* MethodBuilder.Create */
  594. {
  595. }
  596. /// <summary>
  597. /// <para>Returns all known URLs which point to the specified resource.</para><para></para>
  598. /// </summary>
  599. /// <returns>
  600. /// <para>the enumeration of URLs which point to the specified resource. </para>
  601. /// </returns>
  602. /// <java-name>
  603. /// findResources
  604. /// </java-name>
  605. [Dot42.DexImport("findResources", "(Ljava/lang/String;)Ljava/util/Enumeration;", AccessFlags = 1, Signature = "(Ljava/lang/String;)Ljava/util/Enumeration<Ljava/net/URL;>;")]
  606. public new virtual global::Java.Util.IEnumeration<global::Java.Net.URL> FindResources(string name) /* MethodBuilder.Create */
  607. {
  608. return default(global::Java.Util.IEnumeration<global::Java.Net.URL>);
  609. }
  610. /// <summary>
  611. /// <para>Gets all permissions for the specified <c> codesource </c> . First, this method retrieves the permissions from the system policy. If the protocol is "file:/" then a new permission, <c> FilePermission </c> , granting the read permission to the file is added to the permission collection. Otherwise, connecting to and accepting connections from the URL is granted.</para><para></para>
  612. /// </summary>
  613. /// <returns>
  614. /// <para>the list of permissions according to the code source object. </para>
  615. /// </returns>
  616. /// <java-name>
  617. /// getPermissions
  618. /// </java-name>
  619. [Dot42.DexImport("getPermissions", "(Ljava/security/CodeSource;)Ljava/security/PermissionCollection;", AccessFlags = 4)]
  620. protected internal override global::Java.Security.PermissionCollection GetPermissions(global::Java.Security.CodeSource codesource) /* MethodBuilder.Create */
  621. {
  622. return default(global::Java.Security.PermissionCollection);
  623. }
  624. /// <summary>
  625. /// <para>Returns the search list of this <c> URLClassLoader </c> .</para><para></para>
  626. /// </summary>
  627. /// <returns>
  628. /// <para>the list of all known URLs of this instance. </para>
  629. /// </returns>
  630. /// <java-name>
  631. /// getURLs
  632. /// </java-name>
  633. [Dot42.DexImport("getURLs", "()[Ljava/net/URL;", AccessFlags = 1)]
  634. public virtual global::Java.Net.URL[] GetURLs() /* MethodBuilder.Create */
  635. {
  636. return default(global::Java.Net.URL[]);
  637. }
  638. /// <summary>
  639. /// <para>Returns a new <c> URLClassLoader </c> instance for the given URLs and the system <c> ClassLoader </c> as its parent.</para><para></para>
  640. /// </summary>
  641. /// <returns>
  642. /// <para>the created <c> URLClassLoader </c> instance. </para>
  643. /// </returns>
  644. /// <java-name>
  645. /// newInstance
  646. /// </java-name>
  647. [Dot42.DexImport("newInstance", "([Ljava/net/URL;)Ljava/net/URLClassLoader;", AccessFlags = 9)]
  648. public static global::Java.Net.URLClassLoader NewInstance(global::Java.Net.URL[] urls) /* MethodBuilder.Create */
  649. {
  650. return default(global::Java.Net.URLClassLoader);
  651. }
  652. /// <summary>
  653. /// <para>Returns a new <c> URLClassLoader </c> instance for the given URLs and the specified <c> ClassLoader </c> as its parent.</para><para></para>
  654. /// </summary>
  655. /// <returns>
  656. /// <para>the created <c> URLClassLoader </c> instance. </para>
  657. /// </returns>
  658. /// <java-name>
  659. /// newInstance
  660. /// </java-name>
  661. [Dot42.DexImport("newInstance", "([Ljava/net/URL;Ljava/lang/ClassLoader;)Ljava/net/URLClassLoader;", AccessFlags = 9)]
  662. public static global::Java.Net.URLClassLoader NewInstance(global::Java.Net.URL[] urls, global::Java.Lang.ClassLoader parentCl) /* MethodBuilder.Create */
  663. {
  664. return default(global::Java.Net.URLClassLoader);
  665. }
  666. /// <summary>
  667. /// <para>Tries to locate and load the specified class using the known URLs. If the class could be found, a class object representing the loaded class will be returned.</para><para></para>
  668. /// </summary>
  669. /// <java-name>
  670. /// findClass
  671. /// </java-name>
  672. [Dot42.DexImport("findClass", "(Ljava/lang/String;)Ljava/lang/Class;", AccessFlags = 4, Signature = "(Ljava/lang/String;)Ljava/lang/Class<*>;")]
  673. protected internal override global::System.Type FindClass(string className) /* MethodBuilder.Create */
  674. {
  675. return default(global::System.Type);
  676. }
  677. /// <summary>
  678. /// <para>Returns an URL referencing the specified resource or <c> null </c> if the resource could not be found.</para><para></para>
  679. /// </summary>
  680. /// <returns>
  681. /// <para>the URL which points to the given resource. </para>
  682. /// </returns>
  683. /// <java-name>
  684. /// findResource
  685. /// </java-name>
  686. [Dot42.DexImport("findResource", "(Ljava/lang/String;)Ljava/net/URL;", AccessFlags = 1)]
  687. public new virtual global::Java.Net.URL FindResource(string name) /* MethodBuilder.Create */
  688. {
  689. return default(global::Java.Net.URL);
  690. }
  691. /// <summary>
  692. /// <para>Defines a new package using the information extracted from the specified manifest.</para><para></para>
  693. /// </summary>
  694. /// <returns>
  695. /// <para>the created package. </para>
  696. /// </returns>
  697. /// <java-name>
  698. /// definePackage
  699. /// </java-name>
  700. [Dot42.DexImport("definePackage", "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;", AccessFlags = 4)]
  701. protected internal virtual global::Java.Lang.Package DefinePackage(string packageName, global::Java.Util.Jar.Manifest manifest, global::Java.Net.URL url) /* MethodBuilder.Create */
  702. {
  703. return default(global::Java.Lang.Package);
  704. }
  705. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  706. internal URLClassLoader() /* TypeBuilder.AddDefaultConstructor */
  707. {
  708. }
  709. /// <summary>
  710. /// <para>Returns the search list of this <c> URLClassLoader </c> .</para><para></para>
  711. /// </summary>
  712. /// <returns>
  713. /// <para>the list of all known URLs of this instance. </para>
  714. /// </returns>
  715. /// <java-name>
  716. /// getURLs
  717. /// </java-name>
  718. public global::Java.Net.URL[] URLs
  719. {
  720. [Dot42.DexImport("getURLs", "()[Ljava/net/URL;", AccessFlags = 1)]
  721. get{ return GetURLs(); }
  722. }
  723. }
  724. /// <summary>
  725. /// <para>This exception is thrown when a timeout expired on a socket <c> read </c> or <c> accept </c> operation. </para>
  726. /// </summary>
  727. /// <java-name>
  728. /// java/net/SocketTimeoutException
  729. /// </java-name>
  730. [Dot42.DexImport("java/net/SocketTimeoutException", AccessFlags = 33)]
  731. public partial class SocketTimeoutException : global::Java.Io.InterruptedIOException
  732. /* scope: __dot42__ */
  733. {
  734. /// <summary>
  735. /// <para>Constructs a new instance. </para>
  736. /// </summary>
  737. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  738. public SocketTimeoutException() /* MethodBuilder.Create */
  739. {
  740. }
  741. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  742. public SocketTimeoutException(string @string) /* MethodBuilder.Create */
  743. {
  744. }
  745. }
  746. /// <summary>
  747. /// <para>This class converts the content of a certain format (i.e. a MIME type) into a Java type object. It is created by <c> ContentHandlerFactory </c> . The data values should be accessed via <c> URL </c> or <c> URLConnection </c> .</para><para><para>ContentHandlerFactory </para><simplesectsep></simplesectsep><para>URL::getContent() </para><simplesectsep></simplesectsep><para>URLConnection::getContent() </para></para>
  748. /// </summary>
  749. /// <java-name>
  750. /// java/net/ContentHandler
  751. /// </java-name>
  752. [Dot42.DexImport("java/net/ContentHandler", AccessFlags = 1057)]
  753. public abstract partial class ContentHandler
  754. /* scope: __dot42__ */
  755. {
  756. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  757. public ContentHandler() /* MethodBuilder.Create */
  758. {
  759. }
  760. /// <summary>
  761. /// <para>Returns the object pointed by the specified URL connection <c> uConn </c> .</para><para></para>
  762. /// </summary>
  763. /// <returns>
  764. /// <para>object referred by <c> uConn </c> . </para>
  765. /// </returns>
  766. /// <java-name>
  767. /// getContent
  768. /// </java-name>
  769. [Dot42.DexImport("getContent", "(Ljava/net/URLConnection;)Ljava/lang/Object;", AccessFlags = 1025)]
  770. public abstract object GetContent(global::Java.Net.URLConnection uConn) /* MethodBuilder.Create */ ;
  771. /// <summary>
  772. /// <para>Returns the object pointed by the specified URL connection <c> uConn </c> .</para><para></para>
  773. /// </summary>
  774. /// <returns>
  775. /// <para>resource object pointed by this URL or <c> null </c> if the content doesn't match one of the specified content types. </para>
  776. /// </returns>
  777. /// <java-name>
  778. /// getContent
  779. /// </java-name>
  780. [Dot42.DexImport("getContent", "(Ljava/net/URLConnection;[Ljava/lang/Class;)Ljava/lang/Object;", AccessFlags = 1)]
  781. public virtual object GetContent(global::Java.Net.URLConnection uConn, global::System.Type[] types) /* MethodBuilder.Create */
  782. {
  783. return default(object);
  784. }
  785. }
  786. /// <summary>
  787. /// <para>A <c> BindException </c> is thrown when a process cannot bind a local address/port, either because it is already bound or reserved by the OS.</para><para>Most applications <b>should not</b> catch this exception; it is more robust to catch the superclass <c> SocketException </c> . </para>
  788. /// </summary>
  789. /// <java-name>
  790. /// java/net/BindException
  791. /// </java-name>
  792. [Dot42.DexImport("java/net/BindException", AccessFlags = 33)]
  793. public partial class BindException : global::Java.Net.SocketException
  794. /* scope: __dot42__ */
  795. {
  796. /// <summary>
  797. /// <para>Constructs a new instance. </para>
  798. /// </summary>
  799. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  800. public BindException() /* MethodBuilder.Create */
  801. {
  802. }
  803. /// <summary>
  804. /// <para>Constructs a new instance with the given detail message. </para>
  805. /// </summary>
  806. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  807. public BindException(string detailMessage) /* MethodBuilder.Create */
  808. {
  809. }
  810. }
  811. /// <summary>
  812. /// <para>An implementation of this class is able to obtain authentication information for a connection in several ways. For this purpose it has to set the default authenticator which extends <c> Authenticator </c> by <c> setDefault(Authenticator a) </c> . Then it should override <c> getPasswordAuthentication() </c> which dictates how the authentication info is obtained. Usually, it prompts the user for the required input.</para><para><para>setDefault </para><simplesectsep></simplesectsep><para>getPasswordAuthentication </para></para>
  813. /// </summary>
  814. /// <java-name>
  815. /// java/net/Authenticator
  816. /// </java-name>
  817. [Dot42.DexImport("java/net/Authenticator", AccessFlags = 1057)]
  818. public abstract partial class Authenticator
  819. /* scope: __dot42__ */
  820. {
  821. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  822. public Authenticator() /* MethodBuilder.Create */
  823. {
  824. }
  825. /// <summary>
  826. /// <para>Returns the collected username and password for authorization. The subclass has to override this method to return a value different to the default which is <c> null </c> . </para><para>Returns <c> null </c> by default.</para><para></para>
  827. /// </summary>
  828. /// <returns>
  829. /// <para>collected password authentication data. </para>
  830. /// </returns>
  831. /// <java-name>
  832. /// getPasswordAuthentication
  833. /// </java-name>
  834. [Dot42.DexImport("getPasswordAuthentication", "()Ljava/net/PasswordAuthentication;", AccessFlags = 4)]
  835. protected internal virtual global::Java.Net.PasswordAuthentication GetPasswordAuthentication() /* MethodBuilder.Create */
  836. {
  837. return default(global::Java.Net.PasswordAuthentication);
  838. }
  839. /// <summary>
  840. /// <para>Returns the port of the connection that requests authorization.</para><para></para>
  841. /// </summary>
  842. /// <returns>
  843. /// <para>port of the connection. </para>
  844. /// </returns>
  845. /// <java-name>
  846. /// getRequestingPort
  847. /// </java-name>
  848. [Dot42.DexImport("getRequestingPort", "()I", AccessFlags = 20)]
  849. protected internal int GetRequestingPort() /* MethodBuilder.Create */
  850. {
  851. return default(int);
  852. }
  853. /// <summary>
  854. /// <para>Returns the address of the connection that requests authorization or <c> null </c> if unknown.</para><para></para>
  855. /// </summary>
  856. /// <returns>
  857. /// <para>address of the connection. </para>
  858. /// </returns>
  859. /// <java-name>
  860. /// getRequestingSite
  861. /// </java-name>
  862. [Dot42.DexImport("getRequestingSite", "()Ljava/net/InetAddress;", AccessFlags = 20)]
  863. protected internal global::Java.Net.InetAddress GetRequestingSite() /* MethodBuilder.Create */
  864. {
  865. return default(global::Java.Net.InetAddress);
  866. }
  867. /// <summary>
  868. /// <para>Returns the realm (prompt string) of the connection that requests authorization.</para><para></para>
  869. /// </summary>
  870. /// <returns>
  871. /// <para>prompt string of the connection. </para>
  872. /// </returns>
  873. /// <java-name>
  874. /// getRequestingPrompt
  875. /// </java-name>
  876. [Dot42.DexImport("getRequestingPrompt", "()Ljava/lang/String;", AccessFlags = 20)]
  877. protected internal string GetRequestingPrompt() /* MethodBuilder.Create */
  878. {
  879. return default(string);
  880. }
  881. /// <summary>
  882. /// <para>Returns the protocol of the connection that requests authorization.</para><para></para>
  883. /// </summary>
  884. /// <returns>
  885. /// <para>protocol of the connection. </para>
  886. /// </returns>
  887. /// <java-name>
  888. /// getRequestingProtocol
  889. /// </java-name>
  890. [Dot42.DexImport("getRequestingProtocol", "()Ljava/lang/String;", AccessFlags = 20)]
  891. protected internal string GetRequestingProtocol() /* MethodBuilder.Create */
  892. {
  893. return default(string);
  894. }
  895. /// <summary>
  896. /// <para>Returns the scheme of the connection that requests authorization, for example HTTP Basic Authentication.</para><para></para>
  897. /// </summary>
  898. /// <returns>
  899. /// <para>scheme of the connection. </para>
  900. /// </returns>
  901. /// <java-name>
  902. /// getRequestingScheme
  903. /// </java-name>
  904. [Dot42.DexImport("getRequestingScheme", "()Ljava/lang/String;", AccessFlags = 20)]
  905. protected internal string GetRequestingScheme() /* MethodBuilder.Create */
  906. {
  907. return default(string);
  908. }
  909. /// <summary>
  910. /// <para>Invokes the methods of the registered authenticator to get the authentication info.</para><para></para>
  911. /// </summary>
  912. /// <returns>
  913. /// <para>password authentication info or <c> null </c> if no authenticator exists. </para>
  914. /// </returns>
  915. /// <java-name>
  916. /// requestPasswordAuthentication
  917. /// </java-name>
  918. [Dot42.DexImport("requestPasswordAuthentication", "(Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lj" +
  919. "ava/net/PasswordAuthentication;", AccessFlags = 41)]
  920. public static global::Java.Net.PasswordAuthentication RequestPasswordAuthentication(global::Java.Net.InetAddress rAddr, int rPort, string rProtocol, string rPrompt, string rScheme) /* MethodBuilder.Create */
  921. {
  922. return default(global::Java.Net.PasswordAuthentication);
  923. }
  924. /// <summary>
  925. /// <para>Sets <c> a </c> as the default authenticator. It will be called whenever the realm that the URL is pointing to requires authorization.</para><para></para>
  926. /// </summary>
  927. /// <java-name>
  928. /// setDefault
  929. /// </java-name>
  930. [Dot42.DexImport("setDefault", "(Ljava/net/Authenticator;)V", AccessFlags = 9)]
  931. public static void SetDefault(global::Java.Net.Authenticator a) /* MethodBuilder.Create */
  932. {
  933. }
  934. /// <summary>
  935. /// <para>Invokes the methods of the registered authenticator to get the authentication info.</para><para></para>
  936. /// </summary>
  937. /// <returns>
  938. /// <para>password authentication info or <c> null </c> if no authenticator exists. </para>
  939. /// </returns>
  940. /// <java-name>
  941. /// requestPasswordAuthentication
  942. /// </java-name>
  943. [Dot42.DexImport("requestPasswordAuthentication", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Lja" +
  944. "va/lang/String;)Ljava/net/PasswordAuthentication;", AccessFlags = 41)]
  945. public static global::Java.Net.PasswordAuthentication RequestPasswordAuthentication(string rHost, global::Java.Net.InetAddress rAddr, int rPort, string rProtocol, string rPrompt, string rScheme) /* MethodBuilder.Create */
  946. {
  947. return default(global::Java.Net.PasswordAuthentication);
  948. }
  949. /// <summary>
  950. /// <para>Returns the host name of the connection that requests authentication or <c> null </c> if unknown.</para><para></para>
  951. /// </summary>
  952. /// <returns>
  953. /// <para>name of the requesting host or <c> null </c> . </para>
  954. /// </returns>
  955. /// <java-name>
  956. /// getRequestingHost
  957. /// </java-name>
  958. [Dot42.DexImport("getRequestingHost", "()Ljava/lang/String;", AccessFlags = 20)]
  959. protected internal string GetRequestingHost() /* MethodBuilder.Create */
  960. {
  961. return default(string);
  962. }
  963. /// <summary>
  964. /// <para>Invokes the methods of the registered authenticator to get the authentication info.</para><para></para>
  965. /// </summary>
  966. /// <returns>
  967. /// <para>password authentication info or <c> null </c> if no authenticator exists. </para>
  968. /// </returns>
  969. /// <java-name>
  970. /// requestPasswordAuthentication
  971. /// </java-name>
  972. [Dot42.DexImport("requestPasswordAuthentication", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Lja" +
  973. "va/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/Pa" +
  974. "sswordAuthentication;", AccessFlags = 9)]
  975. public static global::Java.Net.PasswordAuthentication RequestPasswordAuthentication(string rHost, global::Java.Net.InetAddress rAddr, int rPort, string rProtocol, string rPrompt, string rScheme, global::Java.Net.URL rURL, global::Java.Net.Authenticator.RequestorType reqType) /* MethodBuilder.Create */
  976. {
  977. return default(global::Java.Net.PasswordAuthentication);
  978. }
  979. /// <summary>
  980. /// <para>Returns the URL of the authentication request.</para><para></para>
  981. /// </summary>
  982. /// <returns>
  983. /// <para>authentication request url. </para>
  984. /// </returns>
  985. /// <java-name>
  986. /// getRequestingURL
  987. /// </java-name>
  988. [Dot42.DexImport("getRequestingURL", "()Ljava/net/URL;", AccessFlags = 4)]
  989. protected internal virtual global::Java.Net.URL GetRequestingURL() /* MethodBuilder.Create */
  990. {
  991. return default(global::Java.Net.URL);
  992. }
  993. /// <summary>
  994. /// <para>Returns the type of this request, it can be <c> PROXY </c> or <c> SERVER </c> .</para><para></para>
  995. /// </summary>
  996. /// <returns>
  997. /// <para>RequestorType of the authentication request. </para>
  998. /// </returns>
  999. /// <java-name>
  1000. /// getRequestorType
  1001. /// </java-name>
  1002. [Dot42.DexImport("getRequestorType", "()Ljava/net/Authenticator$RequestorType;", AccessFlags = 4)]
  1003. protected internal virtual global::Java.Net.Authenticator.RequestorType GetRequestorType() /* MethodBuilder.Create */
  1004. {
  1005. return default(global::Java.Net.Authenticator.RequestorType);
  1006. }
  1007. /// <summary>
  1008. /// <para>Returns the collected username and password for authorization. The subclass has to override this method to return a value different to the default which is <c> null </c> . </para><para>Returns <c> null </c> by default.</para><para></para>
  1009. /// </summary>
  1010. /// <returns>
  1011. /// <para>collected password authentication data. </para>
  1012. /// </returns>
  1013. /// <java-name>
  1014. /// getPasswordAuthentication
  1015. /// </java-name>
  1016. protected internal global::Java.Net.PasswordAuthentication PasswordAuthentication
  1017. {
  1018. [Dot42.DexImport("getPasswordAuthentication", "()Ljava/net/PasswordAuthentication;", AccessFlags = 4)]
  1019. get{ return GetPasswordAuthentication(); }
  1020. }
  1021. /// <summary>
  1022. /// <para>Returns the port of the connection that requests authorization.</para><para></para>
  1023. /// </summary>
  1024. /// <returns>
  1025. /// <para>port of the connection. </para>
  1026. /// </returns>
  1027. /// <java-name>
  1028. /// getRequestingPort
  1029. /// </java-name>
  1030. protected internal int RequestingPort
  1031. {
  1032. [Dot42.DexImport("getRequestingPort", "()I", AccessFlags = 20)]
  1033. get{ return GetRequestingPort(); }
  1034. }
  1035. /// <summary>
  1036. /// <para>Returns the address of the connection that requests authorization or <c> null </c> if unknown.</para><para></para>
  1037. /// </summary>
  1038. /// <returns>
  1039. /// <para>address of the connection. </para>
  1040. /// </returns>
  1041. /// <java-name>
  1042. /// getRequestingSite
  1043. /// </java-name>
  1044. protected internal global::Java.Net.InetAddress RequestingSite
  1045. {
  1046. [Dot42.DexImport("getRequestingSite", "()Ljava/net/InetAddress;", AccessFlags = 20)]
  1047. get{ return GetRequestingSite(); }
  1048. }
  1049. /// <summary>
  1050. /// <para>Returns the realm (prompt string) of the connection that requests authorization.</para><para></para>
  1051. /// </summary>
  1052. /// <returns>
  1053. /// <para>prompt string of the connection. </para>
  1054. /// </returns>
  1055. /// <java-name>
  1056. /// getRequesting