/Generated/v4.0.3/Java.Net.cs

https://gitlab.com/Pfhoenix/api · C# · 1188 lines · 449 code · 94 blank · 645 comment · 0 complexity · a0d680d43ddee9c5579786c22e95c825 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 exception is thrown when a timeout expired on a socket <c> read </c> or <c> accept </c> operation. </para>
  21. /// </summary>
  22. /// <java-name>
  23. /// java/net/SocketTimeoutException
  24. /// </java-name>
  25. [Dot42.DexImport("java/net/SocketTimeoutException", AccessFlags = 33)]
  26. public partial class SocketTimeoutException : global::Java.Io.InterruptedIOException
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Constructs a new instance. </para>
  31. /// </summary>
  32. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  33. public SocketTimeoutException() /* MethodBuilder.Create */
  34. {
  35. }
  36. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  37. public SocketTimeoutException(string @string) /* MethodBuilder.Create */
  38. {
  39. }
  40. }
  41. /// <summary>
  42. /// <para>This class is used to represent a network interface of the local device. An interface is defined by its address and a platform dependent name. The class provides methods to get all information about the available interfaces of the system or to identify the local interface of a joined multicast group. </para>
  43. /// </summary>
  44. /// <java-name>
  45. /// java/net/NetworkInterface
  46. /// </java-name>
  47. [Dot42.DexImport("java/net/NetworkInterface", AccessFlags = 49)]
  48. public sealed partial class NetworkInterface
  49. /* scope: __dot42__ */
  50. {
  51. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  52. internal NetworkInterface() /* MethodBuilder.Create */
  53. {
  54. }
  55. /// <summary>
  56. /// <para>Returns the name of this network interface (such as "eth0" or "lo"). </para>
  57. /// </summary>
  58. /// <java-name>
  59. /// getName
  60. /// </java-name>
  61. [Dot42.DexImport("getName", "()Ljava/lang/String;", AccessFlags = 1)]
  62. public string GetName() /* MethodBuilder.Create */
  63. {
  64. return default(string);
  65. }
  66. /// <summary>
  67. /// <para>Returns an enumeration of the addresses bound to this network interface. </para>
  68. /// </summary>
  69. /// <java-name>
  70. /// getInetAddresses
  71. /// </java-name>
  72. [Dot42.DexImport("getInetAddresses", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/InetAddress;>;")]
  73. public global::Java.Util.IEnumeration<global::Java.Net.InetAddress> GetInetAddresses() /* MethodBuilder.Create */
  74. {
  75. return default(global::Java.Util.IEnumeration<global::Java.Net.InetAddress>);
  76. }
  77. /// <summary>
  78. /// <para>Returns a human-readable name for this network interface. On Android, this is the same string as returned by getName. </para>
  79. /// </summary>
  80. /// <java-name>
  81. /// getDisplayName
  82. /// </java-name>
  83. [Dot42.DexImport("getDisplayName", "()Ljava/lang/String;", AccessFlags = 1)]
  84. public string GetDisplayName() /* MethodBuilder.Create */
  85. {
  86. return default(string);
  87. }
  88. /// <summary>
  89. /// <para>Returns the <c> NetworkInterface </c> corresponding to the named network interface, or null if no interface has this name.</para><para></para>
  90. /// </summary>
  91. /// <java-name>
  92. /// getByName
  93. /// </java-name>
  94. [Dot42.DexImport("getByName", "(Ljava/lang/String;)Ljava/net/NetworkInterface;", AccessFlags = 9)]
  95. public static global::Java.Net.NetworkInterface GetByName(string interfaceName) /* MethodBuilder.Create */
  96. {
  97. return default(global::Java.Net.NetworkInterface);
  98. }
  99. /// <summary>
  100. /// <para>Returns the <c> NetworkInterface </c> corresponding to the given address, or null if no interface has this address.</para><para></para>
  101. /// </summary>
  102. /// <java-name>
  103. /// getByInetAddress
  104. /// </java-name>
  105. [Dot42.DexImport("getByInetAddress", "(Ljava/net/InetAddress;)Ljava/net/NetworkInterface;", AccessFlags = 9)]
  106. public static global::Java.Net.NetworkInterface GetByInetAddress(global::Java.Net.InetAddress address) /* MethodBuilder.Create */
  107. {
  108. return default(global::Java.Net.NetworkInterface);
  109. }
  110. /// <summary>
  111. /// <para>Gets a list of all network interfaces available on the local system or <c> null </c> if no interface is available.</para><para></para>
  112. /// </summary>
  113. /// <returns>
  114. /// <para>the list of <c> NetworkInterface </c> instances representing the available interfaces. </para>
  115. /// </returns>
  116. /// <java-name>
  117. /// getNetworkInterfaces
  118. /// </java-name>
  119. [Dot42.DexImport("getNetworkInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 9, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
  120. public static global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> GetNetworkInterfaces() /* MethodBuilder.Create */
  121. {
  122. return default(global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface>);
  123. }
  124. /// <summary>
  125. /// <para>Compares the specified object to this <c> NetworkInterface </c> and returns whether they are equal or not. The object must be an instance of <c> NetworkInterface </c> with the same name, display name, and list of interface addresses.</para><para><para>hashCode() </para></para>
  126. /// </summary>
  127. /// <returns>
  128. /// <para><c> true </c> if the specified object is equal to this <c> NetworkInterface </c> , <c> false </c> otherwise. </para>
  129. /// </returns>
  130. /// <java-name>
  131. /// equals
  132. /// </java-name>
  133. [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 1)]
  134. public override bool Equals(object obj) /* MethodBuilder.Create */
  135. {
  136. return default(bool);
  137. }
  138. /// <summary>
  139. /// <para>Returns the hash code for this <c> NetworkInterface </c> . Since the name should be unique for each network interface the hash code is generated using the name. </para>
  140. /// </summary>
  141. /// <java-name>
  142. /// hashCode
  143. /// </java-name>
  144. [Dot42.DexImport("hashCode", "()I", AccessFlags = 1)]
  145. public override int GetHashCode() /* MethodBuilder.Create */
  146. {
  147. return default(int);
  148. }
  149. /// <summary>
  150. /// <para>Returns a string containing details of this network interface. The exact format is deliberately unspecified. Callers that require a specific format should build a string themselves, using this class' accessor methods. </para>
  151. /// </summary>
  152. /// <java-name>
  153. /// toString
  154. /// </java-name>
  155. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  156. public override string ToString() /* MethodBuilder.Create */
  157. {
  158. return default(string);
  159. }
  160. /// <summary>
  161. /// <para>Returns a List of the InterfaceAddresses for this network interface. <para>1.6 </para></para>
  162. /// </summary>
  163. /// <java-name>
  164. /// getInterfaceAddresses
  165. /// </java-name>
  166. [Dot42.DexImport("getInterfaceAddresses", "()Ljava/util/List;", AccessFlags = 1, Signature = "()Ljava/util/List<Ljava/net/InterfaceAddress;>;")]
  167. public global::Java.Util.IList<global::Java.Net.InterfaceAddress> GetInterfaceAddresses() /* MethodBuilder.Create */
  168. {
  169. return default(global::Java.Util.IList<global::Java.Net.InterfaceAddress>);
  170. }
  171. /// <summary>
  172. /// <para>Returns an enumeration of all the sub-interfaces of this network interface. Sub-interfaces are also known as virtual interfaces.</para><para>For example, <c> eth0:1 </c> would be a sub-interface of <c> eth0 </c> .</para><para><para>1.6 </para></para>
  173. /// </summary>
  174. /// <returns>
  175. /// <para>an Enumeration of all the sub-interfaces of this network interface </para>
  176. /// </returns>
  177. /// <java-name>
  178. /// getSubInterfaces
  179. /// </java-name>
  180. [Dot42.DexImport("getSubInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
  181. public global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> GetSubInterfaces() /* MethodBuilder.Create */
  182. {
  183. return default(global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface>);
  184. }
  185. /// <summary>
  186. /// <para>Returns the parent NetworkInterface of this interface if this is a sub-interface, or null if it's a physical (non virtual) interface.</para><para><para>1.6 </para></para>
  187. /// </summary>
  188. /// <returns>
  189. /// <para>the NetworkInterface this interface is attached to. </para>
  190. /// </returns>
  191. /// <java-name>
  192. /// getParent
  193. /// </java-name>
  194. [Dot42.DexImport("getParent", "()Ljava/net/NetworkInterface;", AccessFlags = 1)]
  195. public global::Java.Net.NetworkInterface GetParent() /* MethodBuilder.Create */
  196. {
  197. return default(global::Java.Net.NetworkInterface);
  198. }
  199. /// <summary>
  200. /// <para>Returns true if this network interface is up.</para><para><para>1.6 </para></para>
  201. /// </summary>
  202. /// <returns>
  203. /// <para>true if the interface is up. </para>
  204. /// </returns>
  205. /// <java-name>
  206. /// isUp
  207. /// </java-name>
  208. [Dot42.DexImport("isUp", "()Z", AccessFlags = 1)]
  209. public bool IsUp() /* MethodBuilder.Create */
  210. {
  211. return default(bool);
  212. }
  213. /// <summary>
  214. /// <para>Returns true if this network interface is a loopback interface.</para><para><para>1.6 </para></para>
  215. /// </summary>
  216. /// <returns>
  217. /// <para>true if the interface is a loopback interface. </para>
  218. /// </returns>
  219. /// <java-name>
  220. /// isLoopback
  221. /// </java-name>
  222. [Dot42.DexImport("isLoopback", "()Z", AccessFlags = 1)]
  223. public bool IsLoopback() /* MethodBuilder.Create */
  224. {
  225. return default(bool);
  226. }
  227. /// <summary>
  228. /// <para>Returns true if this network interface is a point-to-point interface. (For example, a PPP connection using a modem.)</para><para><para>1.6 </para></para>
  229. /// </summary>
  230. /// <returns>
  231. /// <para>true if the interface is point-to-point. </para>
  232. /// </returns>
  233. /// <java-name>
  234. /// isPointToPoint
  235. /// </java-name>
  236. [Dot42.DexImport("isPointToPoint", "()Z", AccessFlags = 1)]
  237. public bool IsPointToPoint() /* MethodBuilder.Create */
  238. {
  239. return default(bool);
  240. }
  241. /// <summary>
  242. /// <para>Returns true if this network interface supports multicast.</para><para><para>1.6 </para></para>
  243. /// </summary>
  244. /// <java-name>
  245. /// supportsMulticast
  246. /// </java-name>
  247. [Dot42.DexImport("supportsMulticast", "()Z", AccessFlags = 1)]
  248. public bool SupportsMulticast() /* MethodBuilder.Create */
  249. {
  250. return default(bool);
  251. }
  252. /// <summary>
  253. /// <para>Returns the hardware address of the interface, if it has one, or null otherwise.</para><para><para>1.6 </para></para>
  254. /// </summary>
  255. /// <java-name>
  256. /// getHardwareAddress
  257. /// </java-name>
  258. [Dot42.DexImport("getHardwareAddress", "()[B", AccessFlags = 1)]
  259. public sbyte[] JavaGetHardwareAddress() /* MethodBuilder.Create */
  260. {
  261. return default(sbyte[]);
  262. }
  263. /// <summary>
  264. /// <para>Returns the hardware address of the interface, if it has one, or null otherwise.</para><para><para>1.6 </para></para>
  265. /// </summary>
  266. /// <java-name>
  267. /// getHardwareAddress
  268. /// </java-name>
  269. [Dot42.DexImport("getHardwareAddress", "()[B", AccessFlags = 1, IgnoreFromJava = true)]
  270. public byte[] GetHardwareAddress() /* MethodBuilder.Create */
  271. {
  272. return default(byte[]);
  273. }
  274. /// <summary>
  275. /// <para>Returns the Maximum Transmission Unit (MTU) of this interface.</para><para><para>1.6 </para></para>
  276. /// </summary>
  277. /// <returns>
  278. /// <para>the value of the MTU for the interface. </para>
  279. /// </returns>
  280. /// <java-name>
  281. /// getMTU
  282. /// </java-name>
  283. [Dot42.DexImport("getMTU", "()I", AccessFlags = 1)]
  284. public int GetMTU() /* MethodBuilder.Create */
  285. {
  286. return default(int);
  287. }
  288. /// <summary>
  289. /// <para>Returns true if this interface is a virtual interface (also called a sub-interface). Virtual interfaces are, on some systems, interfaces created as a child of a physical interface and given different settings (like address or MTU). Usually the name of the interface will the name of the parent followed by a colon (:) and a number identifying the child, since there can be several virtual interfaces attached to a single physical interface.</para><para><para>1.6 </para></para>
  290. /// </summary>
  291. /// <returns>
  292. /// <para>true if this interface is a virtual interface. </para>
  293. /// </returns>
  294. /// <java-name>
  295. /// isVirtual
  296. /// </java-name>
  297. [Dot42.DexImport("isVirtual", "()Z", AccessFlags = 1)]
  298. public bool IsVirtual() /* MethodBuilder.Create */
  299. {
  300. return default(bool);
  301. }
  302. /// <summary>
  303. /// <para>Returns the name of this network interface (such as "eth0" or "lo"). </para>
  304. /// </summary>
  305. /// <java-name>
  306. /// getName
  307. /// </java-name>
  308. public string Name
  309. {
  310. [Dot42.DexImport("getName", "()Ljava/lang/String;", AccessFlags = 1)]
  311. get{ return GetName(); }
  312. }
  313. /// <summary>
  314. /// <para>Returns an enumeration of the addresses bound to this network interface. </para>
  315. /// </summary>
  316. /// <java-name>
  317. /// getInetAddresses
  318. /// </java-name>
  319. public global::Java.Util.IEnumeration<global::Java.Net.InetAddress> InetAddresses
  320. {
  321. [Dot42.DexImport("getInetAddresses", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/InetAddress;>;")]
  322. get{ return GetInetAddresses(); }
  323. }
  324. /// <summary>
  325. /// <para>Returns a human-readable name for this network interface. On Android, this is the same string as returned by getName. </para>
  326. /// </summary>
  327. /// <java-name>
  328. /// getDisplayName
  329. /// </java-name>
  330. public string DisplayName
  331. {
  332. [Dot42.DexImport("getDisplayName", "()Ljava/lang/String;", AccessFlags = 1)]
  333. get{ return GetDisplayName(); }
  334. }
  335. /// <summary>
  336. /// <para>Gets a list of all network interfaces available on the local system or <c> null </c> if no interface is available.</para><para></para>
  337. /// </summary>
  338. /// <returns>
  339. /// <para>the list of <c> NetworkInterface </c> instances representing the available interfaces. </para>
  340. /// </returns>
  341. /// <java-name>
  342. /// getNetworkInterfaces
  343. /// </java-name>
  344. public static global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> NetworkInterfaces
  345. {
  346. [Dot42.DexImport("getNetworkInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 9, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
  347. get{ return GetNetworkInterfaces(); }
  348. }
  349. /// <summary>
  350. /// <para>Returns a List of the InterfaceAddresses for this network interface. <para>1.6 </para></para>
  351. /// </summary>
  352. /// <java-name>
  353. /// getInterfaceAddresses
  354. /// </java-name>
  355. public global::Java.Util.IList<global::Java.Net.InterfaceAddress> InterfaceAddresses
  356. {
  357. [Dot42.DexImport("getInterfaceAddresses", "()Ljava/util/List;", AccessFlags = 1, Signature = "()Ljava/util/List<Ljava/net/InterfaceAddress;>;")]
  358. get{ return GetInterfaceAddresses(); }
  359. }
  360. /// <summary>
  361. /// <para>Returns an enumeration of all the sub-interfaces of this network interface. Sub-interfaces are also known as virtual interfaces.</para><para>For example, <c> eth0:1 </c> would be a sub-interface of <c> eth0 </c> .</para><para><para>1.6 </para></para>
  362. /// </summary>
  363. /// <returns>
  364. /// <para>an Enumeration of all the sub-interfaces of this network interface </para>
  365. /// </returns>
  366. /// <java-name>
  367. /// getSubInterfaces
  368. /// </java-name>
  369. public global::Java.Util.IEnumeration<global::Java.Net.NetworkInterface> SubInterfaces
  370. {
  371. [Dot42.DexImport("getSubInterfaces", "()Ljava/util/Enumeration;", AccessFlags = 1, Signature = "()Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;")]
  372. get{ return GetSubInterfaces(); }
  373. }
  374. /// <summary>
  375. /// <para>Returns the parent NetworkInterface of this interface if this is a sub-interface, or null if it's a physical (non virtual) interface.</para><para><para>1.6 </para></para>
  376. /// </summary>
  377. /// <returns>
  378. /// <para>the NetworkInterface this interface is attached to. </para>
  379. /// </returns>
  380. /// <java-name>
  381. /// getParent
  382. /// </java-name>
  383. public global::Java.Net.NetworkInterface Parent
  384. {
  385. [Dot42.DexImport("getParent", "()Ljava/net/NetworkInterface;", AccessFlags = 1)]
  386. get{ return GetParent(); }
  387. }
  388. /// <summary>
  389. /// <para>Returns the hardware address of the interface, if it has one, or null otherwise.</para><para><para>1.6 </para></para>
  390. /// </summary>
  391. /// <java-name>
  392. /// getHardwareAddress
  393. /// </java-name>
  394. public byte[] HardwareAddress
  395. {
  396. [Dot42.DexImport("getHardwareAddress", "()[B", AccessFlags = 1, IgnoreFromJava = true)]
  397. get{ return GetHardwareAddress(); }
  398. }
  399. /// <summary>
  400. /// <para>Returns the Maximum Transmission Unit (MTU) of this interface.</para><para><para>1.6 </para></para>
  401. /// </summary>
  402. /// <returns>
  403. /// <para>the value of the MTU for the interface. </para>
  404. /// </returns>
  405. /// <java-name>
  406. /// getMTU
  407. /// </java-name>
  408. public int MTU
  409. {
  410. [Dot42.DexImport("getMTU", "()I", AccessFlags = 1)]
  411. get{ return GetMTU(); }
  412. }
  413. }
  414. /// <summary>
  415. /// <para>This class provides a concrete implementation of CookieHandler. It separates the storage of cookies from the policy which decides to accept or deny cookies. The constructor can have two arguments: a CookieStore and a CookiePolicy. The former is in charge of cookie storage and the latter makes decision on acceptance/rejection.</para><para>CookieHandler is in the center of cookie management. User can make use of CookieHandler.setDefault to set a CookieManager as the default one used.</para><para>CookieManager.put uses CookiePolicy.shouldAccept to decide whether to put some cookies into a cookie store. Three built-in CookiePolicy is defined: ACCEPT_ALL, ACCEPT_NONE and ACCEPT_ORIGINAL_SERVER. Users can also customize the policy by implementing CookiePolicy. Any accepted HTTP cookie is stored in CookieStore and users can also have their own implementation. Up to now, Only add(URI, HttpCookie) and get(URI) are used by CookieManager. Other methods in this class may probably be used in a more complicated implementation.</para><para>There are many ways to customize user's own HTTP cookie management:</para><para>First, call CookieHandler.setDefault to set a new CookieHandler implementation. Second, call CookieHandler.getDefault to use CookieManager. The CookiePolicy and CookieStore used are customized. Third, use the customized CookiePolicy and the CookieStore.</para><para>This implementation conforms to section 3.3.</para><para><para>1.6 </para></para>
  416. /// </summary>
  417. /// <java-name>
  418. /// java/net/CookieManager
  419. /// </java-name>
  420. [Dot42.DexImport("java/net/CookieManager", AccessFlags = 33)]
  421. public partial class CookieManager : global::Java.Net.CookieHandler
  422. /* scope: __dot42__ */
  423. {
  424. /// <summary>
  425. /// <para>Constructs a new cookie manager.</para><para>The invocation of this constructor is the same as the invocation of CookieManager(null, null). </para>
  426. /// </summary>
  427. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  428. public CookieManager() /* MethodBuilder.Create */
  429. {
  430. }
  431. /// <summary>
  432. /// <para>Constructs a new cookie manager using a specified cookie store and a cookie policy.</para><para></para>
  433. /// </summary>
  434. [Dot42.DexImport("<init>", "(Ljava/net/CookieStore;Ljava/net/CookiePolicy;)V", AccessFlags = 1)]
  435. public CookieManager(global::Java.Net.ICookieStore store, global::Java.Net.ICookiePolicy cookiePolicy) /* MethodBuilder.Create */
  436. {
  437. }
  438. /// <summary>
  439. /// <para>Searches and gets all cookies in the cache by the specified uri in the request header.</para><para></para>
  440. /// </summary>
  441. /// <returns>
  442. /// <para>a map that record all such cookies, the map is unchangeable </para>
  443. /// </returns>
  444. /// <java-name>
  445. /// get
  446. /// </java-name>
  447. [Dot42.DexImport("get", "(Ljava/net/URI;Ljava/util/Map;)Ljava/util/Map;", AccessFlags = 1, Signature = "(Ljava/net/URI;Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String" +
  448. ";>;>;)Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;")]
  449. public override global::Java.Util.IMap<string, global::Java.Util.IList<string>> Get(global::System.Uri uri, global::Java.Util.IMap<string, global::Java.Util.IList<string>> requestHeaders) /* MethodBuilder.Create */
  450. {
  451. return default(global::Java.Util.IMap<string, global::Java.Util.IList<string>>);
  452. }
  453. /// <summary>
  454. /// <para>Sets cookies according to uri and responseHeaders</para><para></para>
  455. /// </summary>
  456. /// <java-name>
  457. /// put
  458. /// </java-name>
  459. [Dot42.DexImport("put", "(Ljava/net/URI;Ljava/util/Map;)V", AccessFlags = 1, Signature = "(Ljava/net/URI;Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String" +
  460. ";>;>;)V")]
  461. public override void Put(global::System.Uri uri, global::Java.Util.IMap<string, global::Java.Util.IList<string>> responseHeaders) /* MethodBuilder.Create */
  462. {
  463. }
  464. /// <summary>
  465. /// <para>Sets the cookie policy of this cookie manager.</para><para>ACCEPT_ORIGINAL_SERVER is the default policy for CookieManager.</para><para></para>
  466. /// </summary>
  467. /// <java-name>
  468. /// setCookiePolicy
  469. /// </java-name>
  470. [Dot42.DexImport("setCookiePolicy", "(Ljava/net/CookiePolicy;)V", AccessFlags = 1)]
  471. public virtual void SetCookiePolicy(global::Java.Net.ICookiePolicy cookiePolicy) /* MethodBuilder.Create */
  472. {
  473. }
  474. /// <summary>
  475. /// <para>Gets current cookie store.</para><para></para>
  476. /// </summary>
  477. /// <returns>
  478. /// <para>the cookie store currently used by cookie manager. </para>
  479. /// </returns>
  480. /// <java-name>
  481. /// getCookieStore
  482. /// </java-name>
  483. [Dot42.DexImport("getCookieStore", "()Ljava/net/CookieStore;", AccessFlags = 1)]
  484. public virtual global::Java.Net.ICookieStore GetCookieStore() /* MethodBuilder.Create */
  485. {
  486. return default(global::Java.Net.ICookieStore);
  487. }
  488. /// <summary>
  489. /// <para>Gets current cookie store.</para><para></para>
  490. /// </summary>
  491. /// <returns>
  492. /// <para>the cookie store currently used by cookie manager. </para>
  493. /// </returns>
  494. /// <java-name>
  495. /// getCookieStore
  496. /// </java-name>
  497. public global::Java.Net.ICookieStore CookieStore
  498. {
  499. [Dot42.DexImport("getCookieStore", "()Ljava/net/CookieStore;", AccessFlags = 1)]
  500. get{ return GetCookieStore(); }
  501. }
  502. }
  503. /// <summary>
  504. /// <para>This class represents a server-side socket that waits for incoming client connections. A <c> ServerSocket </c> handles the requests and sends back an appropriate reply. The actual tasks that a server socket must accomplish are implemented by an internal <c> SocketImpl </c> instance. </para>
  505. /// </summary>
  506. /// <java-name>
  507. /// java/net/ServerSocket
  508. /// </java-name>
  509. [Dot42.DexImport("java/net/ServerSocket", AccessFlags = 33)]
  510. public partial class ServerSocket
  511. /* scope: __dot42__ */
  512. {
  513. /// <summary>
  514. /// <para>Constructs a new unbound <c> ServerSocket </c> .</para><para></para>
  515. /// </summary>
  516. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  517. public ServerSocket() /* MethodBuilder.Create */
  518. {
  519. }
  520. /// <summary>
  521. /// <para>Constructs a new <c> ServerSocket </c> instance bound to the given <c> port </c> . The backlog is set to 50. If <c> port == 0 </c> , a port will be assigned by the OS.</para><para></para>
  522. /// </summary>
  523. [Dot42.DexImport("<init>", "(I)V", AccessFlags = 1)]
  524. public ServerSocket(int port) /* MethodBuilder.Create */
  525. {
  526. }
  527. /// <summary>
  528. /// <para>Constructs a new <c> ServerSocket </c> instance bound to the given <c> port </c> . The backlog is set to <c> backlog </c> . If <c> port == 0 </c> , a port will be assigned by the OS.</para><para></para>
  529. /// </summary>
  530. [Dot42.DexImport("<init>", "(II)V", AccessFlags = 1)]
  531. public ServerSocket(int port, int backlog) /* MethodBuilder.Create */
  532. {
  533. }
  534. /// <summary>
  535. /// <para>Constructs a new <c> ServerSocket </c> instance bound to the given <c> localAddress </c> and <c> port </c> . The backlog is set to <c> backlog </c> . If <c> localAddress == null </c> , the ANY address is used. If <c> port == 0 </c> , a port will be assigned by the OS.</para><para></para>
  536. /// </summary>
  537. [Dot42.DexImport("<init>", "(IILjava/net/InetAddress;)V", AccessFlags = 1)]
  538. public ServerSocket(int port, int backlog, global::Java.Net.InetAddress localAddress) /* MethodBuilder.Create */
  539. {
  540. }
  541. /// <summary>
  542. /// <para>Waits for an incoming request and blocks until the connection is opened. This method returns a socket object representing the just opened connection.</para><para></para>
  543. /// </summary>
  544. /// <returns>
  545. /// <para>the connection representing socket. </para>
  546. /// </returns>
  547. /// <java-name>
  548. /// accept
  549. /// </java-name>
  550. [Dot42.DexImport("accept", "()Ljava/net/Socket;", AccessFlags = 1)]
  551. public virtual global::Java.Net.Socket Accept() /* MethodBuilder.Create */
  552. {
  553. return default(global::Java.Net.Socket);
  554. }
  555. /// <summary>
  556. /// <para>Closes this server socket and its implementation. Any attempt to connect to this socket thereafter will fail.</para><para></para>
  557. /// </summary>
  558. /// <java-name>
  559. /// close
  560. /// </java-name>
  561. [Dot42.DexImport("close", "()V", AccessFlags = 1)]
  562. public virtual void Close() /* MethodBuilder.Create */
  563. {
  564. }
  565. /// <summary>
  566. /// <para>Gets the local IP address of this server socket or <c> null </c> if the socket is unbound. This is useful for multihomed hosts.</para><para></para>
  567. /// </summary>
  568. /// <returns>
  569. /// <para>the local address of this server socket. </para>
  570. /// </returns>
  571. /// <java-name>
  572. /// getInetAddress
  573. /// </java-name>
  574. [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  575. public virtual global::Java.Net.InetAddress GetInetAddress() /* MethodBuilder.Create */
  576. {
  577. return default(global::Java.Net.InetAddress);
  578. }
  579. /// <summary>
  580. /// <para>Gets the local port of this server socket or <c> -1 </c> if the socket is unbound.</para><para></para>
  581. /// </summary>
  582. /// <returns>
  583. /// <para>the local port this server is listening on. </para>
  584. /// </returns>
  585. /// <java-name>
  586. /// getLocalPort
  587. /// </java-name>
  588. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  589. public virtual int GetLocalPort() /* MethodBuilder.Create */
  590. {
  591. return default(int);
  592. }
  593. /// <summary>
  594. /// <para>Gets the socket accept timeout.</para><para></para>
  595. /// </summary>
  596. /// <java-name>
  597. /// getSoTimeout
  598. /// </java-name>
  599. [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
  600. public virtual int GetSoTimeout() /* MethodBuilder.Create */
  601. {
  602. return default(int);
  603. }
  604. /// <summary>
  605. /// <para>Invokes the server socket implementation to accept a connection on the given socket <c> aSocket </c> .</para><para></para>
  606. /// </summary>
  607. /// <java-name>
  608. /// implAccept
  609. /// </java-name>
  610. [Dot42.DexImport("implAccept", "(Ljava/net/Socket;)V", AccessFlags = 20)]
  611. protected internal void ImplAccept(global::Java.Net.Socket aSocket) /* MethodBuilder.Create */
  612. {
  613. }
  614. /// <summary>
  615. /// <para>Sets the server socket implementation factory of this instance. This method may only be invoked with sufficient security privilege and only once during the application lifetime.</para><para></para>
  616. /// </summary>
  617. /// <java-name>
  618. /// setSocketFactory
  619. /// </java-name>
  620. [Dot42.DexImport("setSocketFactory", "(Ljava/net/SocketImplFactory;)V", AccessFlags = 41)]
  621. public static void SetSocketFactory(global::Java.Net.ISocketImplFactory aFactory) /* MethodBuilder.Create */
  622. {
  623. }
  624. /// <summary>
  625. /// <para>Sets the accept timeout in milliseconds for this socket. This accept timeout defines the period the socket will block waiting to accept a connection before throwing an <c> InterruptedIOException </c> . The value <c> 0 </c> (default) is used to set an infinite timeout. To have effect this option must be set before the blocking method was called.</para><para></para>
  626. /// </summary>
  627. /// <java-name>
  628. /// setSoTimeout
  629. /// </java-name>
  630. [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
  631. public virtual void SetSoTimeout(int timeout) /* MethodBuilder.Create */
  632. {
  633. }
  634. /// <summary>
  635. /// <para>Returns a textual representation of this server socket including the address, port and the state. The port field is set to <c> 0 </c> if there is no connection to the server socket.</para><para></para>
  636. /// </summary>
  637. /// <returns>
  638. /// <para>the textual socket representation. </para>
  639. /// </returns>
  640. /// <java-name>
  641. /// toString
  642. /// </java-name>
  643. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  644. public override string ToString() /* MethodBuilder.Create */
  645. {
  646. return default(string);
  647. }
  648. /// <summary>
  649. /// <para>Binds this server socket to the given local socket address with a maximum backlog of 50 unaccepted connections. If the <c> localAddr </c> is set to <c> null </c> the socket will be bound to an available local address on any free port of the system.</para><para></para>
  650. /// </summary>
  651. /// <java-name>
  652. /// bind
  653. /// </java-name>
  654. [Dot42.DexImport("bind", "(Ljava/net/SocketAddress;)V", AccessFlags = 1)]
  655. public virtual void Bind(global::Java.Net.SocketAddress localAddr) /* MethodBuilder.Create */
  656. {
  657. }
  658. /// <summary>
  659. /// <para>Binds this server socket to the given local socket address. If the <c> localAddr </c> is set to <c> null </c> the socket will be bound to an available local address on any free port of the system.</para><para></para>
  660. /// </summary>
  661. /// <java-name>
  662. /// bind
  663. /// </java-name>
  664. [Dot42.DexImport("bind", "(Ljava/net/SocketAddress;I)V", AccessFlags = 1)]
  665. public virtual void Bind(global::Java.Net.SocketAddress localAddr, int backlog) /* MethodBuilder.Create */
  666. {
  667. }
  668. /// <summary>
  669. /// <para>Gets the local socket address of this server socket or <c> null </c> if the socket is unbound. This is useful on multihomed hosts.</para><para></para>
  670. /// </summary>
  671. /// <returns>
  672. /// <para>the local socket address and port this socket is bound to. </para>
  673. /// </returns>
  674. /// <java-name>
  675. /// getLocalSocketAddress
  676. /// </java-name>
  677. [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  678. public virtual global::Java.Net.SocketAddress GetLocalSocketAddress() /* MethodBuilder.Create */
  679. {
  680. return default(global::Java.Net.SocketAddress);
  681. }
  682. /// <summary>
  683. /// <para>Returns whether this server socket is bound to a local address and port or not.</para><para></para>
  684. /// </summary>
  685. /// <returns>
  686. /// <para><c> true </c> if this socket is bound, <c> false </c> otherwise. </para>
  687. /// </returns>
  688. /// <java-name>
  689. /// isBound
  690. /// </java-name>
  691. [Dot42.DexImport("isBound", "()Z", AccessFlags = 1)]
  692. public virtual bool IsBound() /* MethodBuilder.Create */
  693. {
  694. return default(bool);
  695. }
  696. /// <summary>
  697. /// <para>Returns whether this server socket is closed or not.</para><para></para>
  698. /// </summary>
  699. /// <returns>
  700. /// <para><c> true </c> if this socket is closed, <c> false </c> otherwise. </para>
  701. /// </returns>
  702. /// <java-name>
  703. /// isClosed
  704. /// </java-name>
  705. [Dot42.DexImport("isClosed", "()Z", AccessFlags = 1)]
  706. public virtual bool IsClosed() /* MethodBuilder.Create */
  707. {
  708. return default(bool);
  709. }
  710. /// <summary>
  711. /// <para>Sets the value for the socket option <c> SocketOptions.SO_REUSEADDR </c> .</para><para></para>
  712. /// </summary>
  713. /// <java-name>
  714. /// setReuseAddress
  715. /// </java-name>
  716. [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
  717. public virtual void SetReuseAddress(bool reuse) /* MethodBuilder.Create */
  718. {
  719. }
  720. /// <summary>
  721. /// <para>Gets the value of the socket option <c> SocketOptions.SO_REUSEADDR </c> .</para><para></para>
  722. /// </summary>
  723. /// <returns>
  724. /// <para><c> true </c> if the option is enabled, <c> false </c> otherwise. </para>
  725. /// </returns>
  726. /// <java-name>
  727. /// getReuseAddress
  728. /// </java-name>
  729. [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
  730. public virtual bool GetReuseAddress() /* MethodBuilder.Create */
  731. {
  732. return default(bool);
  733. }
  734. /// <summary>
  735. /// <para>Sets this socket's receive buffer size. </para>
  736. /// </summary>
  737. /// <java-name>
  738. /// setReceiveBufferSize
  739. /// </java-name>
  740. [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 1)]
  741. public virtual void SetReceiveBufferSize(int size) /* MethodBuilder.Create */
  742. {
  743. }
  744. /// <summary>
  745. /// <para>Returns this socket's receive buffer size. </para>
  746. /// </summary>
  747. /// <java-name>
  748. /// getReceiveBufferSize
  749. /// </java-name>
  750. [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 1)]
  751. public virtual int GetReceiveBufferSize() /* MethodBuilder.Create */
  752. {
  753. return default(int);
  754. }
  755. /// <summary>
  756. /// <para>Returns this socket's <c> ServerSocketChannel </c> , if one exists. A channel is available only if this socket wraps a channel. (That is, you can go from a channel to a socket and back again, but you can't go from an arbitrary socket to a channel.) In practice, this means that the socket must have been created by java.nio.channels.ServerSocketChannel#open. </para>
  757. /// </summary>
  758. /// <java-name>
  759. /// getChannel
  760. /// </java-name>
  761. [Dot42.DexImport("getChannel", "()Ljava/nio/channels/ServerSocketChannel;", AccessFlags = 1)]
  762. public virtual global::Java.Nio.Channels.ServerSocketChannel GetChannel() /* MethodBuilder.Create */
  763. {
  764. return default(global::Java.Nio.Channels.ServerSocketChannel);
  765. }
  766. /// <summary>
  767. /// <para>Sets performance preferences for connection time, latency and bandwidth. </para><para>This method does currently nothing.</para><para></para>
  768. /// </summary>
  769. /// <java-name>
  770. /// setPerformancePreferences
  771. /// </java-name>
  772. [Dot42.DexImport("setPerformancePreferences", "(III)V", AccessFlags = 1)]
  773. public virtual void SetPerformancePreferences(int connectionTime, int latency, int bandwidth) /* MethodBuilder.Create */
  774. {
  775. }
  776. /// <summary>
  777. /// <para>Gets the local IP address of this server socket or <c> null </c> if the socket is unbound. This is useful for multihomed hosts.</para><para></para>
  778. /// </summary>
  779. /// <returns>
  780. /// <para>the local address of this server socket. </para>
  781. /// </returns>
  782. /// <java-name>
  783. /// getInetAddress
  784. /// </java-name>
  785. public global::Java.Net.InetAddress InetAddress
  786. {
  787. [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  788. get{ return GetInetAddress(); }
  789. }
  790. /// <summary>
  791. /// <para>Gets the local port of this server socket or <c> -1 </c> if the socket is unbound.</para><para></para>
  792. /// </summary>
  793. /// <returns>
  794. /// <para>the local port this server is listening on. </para>
  795. /// </returns>
  796. /// <java-name>
  797. /// getLocalPort
  798. /// </java-name>
  799. public int LocalPort
  800. {
  801. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  802. get{ return GetLocalPort(); }
  803. }
  804. /// <summary>
  805. /// <para>Gets the socket accept timeout.</para><para></para>
  806. /// </summary>
  807. /// <java-name>
  808. /// getSoTimeout
  809. /// </java-name>
  810. public int SoTimeout
  811. {
  812. [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
  813. get{ return GetSoTimeout(); }
  814. [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
  815. set{ SetSoTimeout(value); }
  816. }
  817. /// <summary>
  818. /// <para>Gets the local socket address of this server socket or <c> null </c> if the socket is unbound. This is useful on multihomed hosts.</para><para></para>
  819. /// </summary>
  820. /// <returns>
  821. /// <para>the local socket address and port this socket is bound to. </para>
  822. /// </returns>
  823. /// <java-name>
  824. /// getLocalSocketAddress
  825. /// </java-name>
  826. public global::Java.Net.SocketAddress LocalSocketAddress
  827. {
  828. [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  829. get{ return GetLocalSocketAddress(); }
  830. }
  831. /// <summary>
  832. /// <para>Gets the value of the socket option <c> SocketOptions.SO_REUSEADDR </c> .</para><para></para>
  833. /// </summary>
  834. /// <returns>
  835. /// <para><c> true </c> if the option is enabled, <c> false </c> otherwise. </para>
  836. /// </returns>
  837. /// <java-name>
  838. /// getReuseAddress
  839. /// </java-name>
  840. public bool IsReuseAddress
  841. {
  842. [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
  843. get{ return GetReuseAddress(); }
  844. [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
  845. set{ SetReuseAddress(value); }
  846. }
  847. /// <summary>
  848. /// <para>Returns this socket's receive buffer size. </para>
  849. /// </summary>
  850. /// <java-name>
  851. /// getReceiveBufferSize
  852. /// </java-name>
  853. public int ReceiveBufferSize
  854. {
  855. [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 1)]
  856. get{ return GetReceiveBufferSize(); }
  857. [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 1)]
  858. set{ SetReceiveBufferSize(value); }
  859. }
  860. /// <summary>
  861. /// <para>Returns this socket's <c> ServerSocketChannel </c> , if one exists. A channel is available only if this socket wraps a channel. (That is, you can go from a channel to a socket and back again, but you can't go from an arbitrary socket to a channel.) In practice, this means that the socket must have been created by java.nio.channels.ServerSocketChannel#open. </para>
  862. /// </summary>
  863. /// <java-name>
  864. /// getChannel
  865. /// </java-name>
  866. public global::Java.Nio.Channels.ServerSocketChannel Channel
  867. {
  868. [Dot42.DexImport("getChannel", "()Ljava/nio/channels/ServerSocketChannel;", AccessFlags = 1)]
  869. get{ return GetChannel(); }
  870. }
  871. }
  872. /// <summary>
  873. /// <para>This class represents proxy server settings. A created instance of <c> Proxy </c> stores a type and an address and is immutable. There are three types of proxies: <ul><li><para>DIRECT </para></li><li><para>HTTP </para></li><li><para>SOCKS&lt;/ul </para></li></ul></para>
  874. /// </summary>
  875. /// <java-name>
  876. /// java/net/Proxy
  877. /// </java-name>
  878. [Dot42.DexImport("java/net/Proxy", AccessFlags = 33)]
  879. public partial class Proxy
  880. /* scope: __dot42__ */
  881. {
  882. /// <summary>
  883. /// <para>Represents the proxy type setting <c> Proxy.Type.DIRECT </c> . It tells protocol handlers that there is no proxy to be used. The address is set to <c> null </c> . </para>
  884. /// </summary>
  885. /// <java-name>
  886. /// NO_PROXY
  887. /// </java-name>
  888. [Dot42.DexImport("NO_PROXY", "Ljava/net/Proxy;", AccessFlags = 25)]
  889. public static readonly global::Java.Net.Proxy NO_PROXY;
  890. /// <summary>
  891. /// <para>Creates a new <c> Proxy </c> instance. <c> SocketAddress </c> must NOT be <c> null </c> when <c> type </c> is either <c> Proxy.Type.HTTP </c> or <c> Proxy.Type.SOCKS </c> . To create a <c> Proxy </c> instance representing the proxy type <c> Proxy.Type.DIRECT </c> , use <c> Proxy.NO_PROXY </c> instead of this constructor.</para><para></para>
  892. /// </summary>
  893. [Dot42.DexImport("<init>", "(Ljava/net/Proxy$Type;Ljava/net/SocketAddress;)V", AccessFlags = 1)]
  894. public Proxy(global::Java.Net.Proxy.JavaType type, global::Java.Net.SocketAddress sa) /* MethodBuilder.Create */
  895. {
  896. }
  897. /// <summary>
  898. /// <para>Gets the type of this <c> Proxy </c> instance.</para><para></para>
  899. /// </summary>
  900. /// <returns>
  901. /// <para>the stored proxy type. </para>
  902. /// </returns>
  903. /// <java-name>
  904. /// type
  905. /// </java-name>
  906. [Dot42.DexImport("type", "()Ljava/net/Proxy$Type;", AccessFlags = 1)]
  907. public virtual global::Java.Net.Proxy.JavaType Type() /* MethodBuilder.Create */
  908. {
  909. return default(global::Java.Net.Proxy.JavaType);
  910. }
  911. /// <summary>
  912. /// <para>Gets the address of this <c> Proxy </c> instance.</para><para></para>
  913. /// </summary>
  914. /// <returns>
  915. /// <para>the stored proxy address or <c> null </c> if the proxy type is <c> DIRECT </c> . </para>
  916. /// </returns>
  917. /// <java-name>
  918. /// address
  919. /// </java-name>
  920. [Dot42.DexImport("address", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  921. public virtual global::Java.Net.SocketAddress Address() /* MethodBuilder.Create */
  922. {
  923. return default(global::Java.Net.SocketAddress);
  924. }
  925. /// <summary>
  926. /// <para>Gets a textual representation of this <c> Proxy </c> instance. The string includes the two parts <c> type.toString() </c> and <c> address.toString() </c> if <c> address </c> is not <c> null </c> .</para><para></para>
  927. /// </summary>
  928. /// <returns>
  929. /// <para>the representing string of this proxy. </para>
  930. /// </returns>
  931. /// <java-name>
  932. /// toString
  933. /// </java-name>
  934. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  935. public override string ToString() /* MethodBuilder.Create */
  936. {
  937. return default(string);
  938. }
  939. /// <summary>
  940. /// <para>Compares the specified <c> obj </c> to this <c> Proxy </c> instance and returns whether they are equal or not. The given object must be an instance of <c> Proxy </c> with the same address and the same type value to be equal.</para><para><para>hashCode </para></para>
  941. /// </summary>
  942. /// <returns>
  943. /// <para><c> true </c> if the given object represents the same <c> Proxy </c> as this instance, <c> false </c> otherwise. </para>
  944. /// </returns>
  945. /// <java-name>
  946. /// equals
  947. /// </java-name>
  948. [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 17)]
  949. public override bool Equals(object obj) /* MethodBuilder.Create */
  950. {
  951. return default(bool);
  952. }
  953. /// <summary>
  954. /// <para>Gets the hashcode for this <c> Proxy </c> instance.</para><para></para>
  955. /// </summary>
  956. /// <returns>
  957. /// <para>the hashcode value for this Proxy instance. </para>
  958. /// </returns>
  959. /// <java-name>
  960. /// hashCode
  961. /// </java-name>
  962. [Dot42.DexImport("hashCode", "()I", AccessFlags = 17)]
  963. public override int GetHashCode() /* MethodBuilder.Create */
  964. {
  965. return default(int);
  966. }
  967. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  968. internal Proxy() /* TypeBuilder.AddDefaultConstructor */
  969. {
  970. }
  971. /// <java-name>
  972. /// java/net/Proxy$Type
  973. /// </java-name>
  974. [Dot42.DexImport("java/net/Proxy$Type", AccessFlags = 16409, Signature = "Ljava/lang/Enum<Ljava/net/Proxy$Type;>;")]
  975. public sealed class JavaType
  976. /* scope: __dot42__ */
  977. {
  978. /// <java-name>
  979. /// DIRECT
  980. /// </java-name>
  981. [Dot42.DexImport("DIRECT", "Ljava/net/Proxy$Type;", AccessFlags = 16409)]
  982. public static readonly JavaType DIRECT;
  983. /// <java-name>
  984. /// HTTP
  985. /// </java-name>
  986. [Dot42.DexImport("HTTP", "Ljava/net/Proxy$Type;", AccessFlags = 16409)]
  987. public static readonly JavaType HTTP;
  988. /// <java-name>
  989. /// SOCKS
  990. /// </java-name>
  991. [Dot42.DexImport("SOCKS", "Ljava/net/Proxy$Type;", AccessFlags = 16409)]
  992. public static readonly JavaType SOCKS;
  993. private JavaType() /* TypeBuilder.AddPrivateDefaultCtor */
  994. {
  995. }
  996. }
  997. }
  998. /// <summary>
  999. /// <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>
  1000. /// </summary>
  1001. /// <java-name>
  1002. /// java/net/ContentHandler
  1003. /// </java-name>
  1004. [Dot42.DexImport("java/net/ContentHandler", AccessFlags = 1057)]
  1005. public abstract partial class ContentHandler
  1006. /* scope: __dot42__ */
  1007. {
  1008. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  1009. public ContentHandler() /* MethodBuilder.Create */
  1010. {
  1011. }
  1012. /// <summary>
  1013. /// <para>Returns the object pointed by the specified URL connection <c> uConn </c> .</para><para></para>
  1014. /// </summary>
  1015. /// <returns>
  1016. /// <para>object referred by <c> uConn </c> . </para>
  1017. /// </returns>
  1018. /// <java-name>
  1019. /// getContent
  1020. /// </java-name>
  1021. [Dot42.DexImport("getContent", "(Ljava/net/URLConnection;)Ljava/lang/Object;", AccessFlags = 1025)]
  1022. public abstract object GetContent(global::Java.Net.URLConnection uConn) /* MethodBuilder.Create */ ;
  1023. /// <summary>
  1024. /// <para>Returns the object pointed by the specified URL connection <c> uConn </c> .</para><para></para>
  1025. /// </summary>
  1026. /// <returns>
  1027. /// <para>resource object pointed by this URL or <c> null </c> if the content doesn't match one of the specified content types. </para>
  1028. /// </returns>
  1029. /// <java-name>
  1030. /// getContent
  1031. /// </java-name>
  1032. [Dot42.DexImport("getContent", "(Ljava/net/URLConnection;[Ljava/lang/Class;)Ljava/lang/Object;", AccessFlags = 1)]
  1033. public virtual object GetContent(global::Java.Net.URLConnection uConn, global::System.Type[] types) /* MethodBuilder.Create */
  1034. {
  1035. return default(object);
  1036. }
  1037. }
  1038. /// <summary>
  1039. /// <para>Is thrown if no appropriate <c> ContentHandler </c> could be found for a particular service requested by the URL connection. This could be happened if there is an invalid MIME type or the application wants to send data over a read-only connection. </para>
  1040. /// </summary>
  1041. /// <java-name>
  1042. /// java/net/UnknownServiceException
  1043. /// </java-name>
  1044. [Dot42.DexImport("java/net/UnknownServiceException", AccessFlags = 33)]
  1045. public partial class UnknownServiceException : global::System.IO.IOException
  1046. /* scope: __dot42__ */
  1047. {
  1048. /// <summary>
  1049. /// <para>Constructs a new instance. </para>
  1050. /// </summary>
  1051. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  1052. public UnknownServiceException() /* MethodBuilder.Create */
  1053. {
  1054. }
  1055. /// <summary>
  1056. /// <para>Constructs a new instance with the given detail message. </para>
  1057. /// </summary>
  1058. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  1059. public UnknownServiceException(string detailMessage) /* MethodBuilder.Create */
  1060. {
  1061. }
  1062. }
  1063. /// <summary>
  1064. /// <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>
  1065. /// </summary>
  1066. /// <java-name>
  1067. /// java/net/BindException
  1068. /// </java-name>
  1069. [Dot42.DexImport("java/net/BindException", AccessFlags = 33)]
  1070. public partial class BindException : global::Java.Net.SocketException
  1071. /* scope: __dot42__ */
  1072. {
  1073. /// <summary>
  1074. /// <para>Constructs a new instance. </para>
  1075. /// </summary>
  1076. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  1077. public BindException() /* MethodBuilder.Create */
  1078. {
  1079. }
  1080. /// <summary>
  1081. /// <para>Constructs a new instance with the given detail message. </para>
  1082. /// </summary>
  1083. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  1084. public BindException(string detailMessage) /* MethodBuilder.Create */
  1085. {
  1086. }
  1087. }
  1088. /// <summary>
  1089. /// <para>The <c> NoRouteToHostException </c> will be thrown while attempting to connect to a remote host but the host cannot be reached for instance because of a badly configured router or a blocking firewall.</para><para>Most applications <b>should not</b> catch this exception; it is more robust to catch the superclass <c> SocketException </c> . </para>
  1090. /// </summary>
  1091. /// <java-name>
  1092. /// java/net/NoRouteToHostException
  1093. /// </java-name>
  1094. [Dot42.DexImport("java/