/Generated/v3.2/Java.Net.cs

https://gitlab.com/Pfhoenix/api · C# · 1204 lines · 406 code · 95 blank · 703 comment · 0 complexity · 4a985c38914cf30a7de6b81680609681 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 abstract class represents a protocol-independent base for socket-endpoint representing classes. The class has to be implemented according to a specific protocol. </para>
  21. /// </summary>
  22. /// <java-name>
  23. /// java/net/SocketAddress
  24. /// </java-name>
  25. [Dot42.DexImport("java/net/SocketAddress", AccessFlags = 1057)]
  26. public abstract partial class SocketAddress : global::Java.Io.ISerializable
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Creates a new <c> SocketAddress </c> instance. </para>
  31. /// </summary>
  32. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  33. public SocketAddress() /* MethodBuilder.Create */
  34. {
  35. }
  36. }
  37. /// <summary>
  38. /// <para>This class is the base of all streaming socket implementation classes. Streaming sockets are wrapped by two classes, <c> ServerSocket </c> and <c> Socket </c> at the server and client end of a connection. At the server, there are two types of sockets engaged in communication, the <c> ServerSocket </c> on a well known port (referred to as listener) used to establish a connection and the resulting <c> Socket </c> (referred to as host). </para>
  39. /// </summary>
  40. /// <java-name>
  41. /// java/net/SocketImpl
  42. /// </java-name>
  43. [Dot42.DexImport("java/net/SocketImpl", AccessFlags = 1057)]
  44. public abstract partial class SocketImpl : global::Java.Net.ISocketOptions
  45. /* scope: __dot42__ */
  46. {
  47. /// <summary>
  48. /// <para>The remote address this socket is connected to. </para>
  49. /// </summary>
  50. /// <java-name>
  51. /// address
  52. /// </java-name>
  53. [Dot42.DexImport("address", "Ljava/net/InetAddress;", AccessFlags = 4)]
  54. protected internal global::Java.Net.InetAddress Address;
  55. /// <summary>
  56. /// <para>The remote port this socket is connected to. </para>
  57. /// </summary>
  58. /// <java-name>
  59. /// port
  60. /// </java-name>
  61. [Dot42.DexImport("port", "I", AccessFlags = 4)]
  62. protected internal int Port;
  63. /// <summary>
  64. /// <para>The file descriptor of this socket. </para>
  65. /// </summary>
  66. /// <java-name>
  67. /// fd
  68. /// </java-name>
  69. [Dot42.DexImport("fd", "Ljava/io/FileDescriptor;", AccessFlags = 4)]
  70. protected internal global::Java.Io.FileDescriptor Fd;
  71. /// <summary>
  72. /// <para>The local port this socket is connected to. </para>
  73. /// </summary>
  74. /// <java-name>
  75. /// localport
  76. /// </java-name>
  77. [Dot42.DexImport("localport", "I", AccessFlags = 4)]
  78. protected internal int Localport;
  79. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  80. public SocketImpl() /* MethodBuilder.Create */
  81. {
  82. }
  83. /// <summary>
  84. /// <para>Waits for an incoming request and blocks until the connection is opened on the given socket.</para><para></para>
  85. /// </summary>
  86. /// <java-name>
  87. /// accept
  88. /// </java-name>
  89. [Dot42.DexImport("accept", "(Ljava/net/SocketImpl;)V", AccessFlags = 1028)]
  90. protected internal abstract void Accept(global::Java.Net.SocketImpl newSocket) /* MethodBuilder.Create */ ;
  91. /// <summary>
  92. /// <para>Returns the available number of bytes which are readable from this socket without blocking.</para><para></para>
  93. /// </summary>
  94. /// <returns>
  95. /// <para>the number of bytes that may be read without blocking. </para>
  96. /// </returns>
  97. /// <java-name>
  98. /// available
  99. /// </java-name>
  100. [Dot42.DexImport("available", "()I", AccessFlags = 1028)]
  101. protected internal abstract int Available() /* MethodBuilder.Create */ ;
  102. /// <summary>
  103. /// <para>Binds this socket to the specified local host address and port number.</para><para></para>
  104. /// </summary>
  105. /// <java-name>
  106. /// bind
  107. /// </java-name>
  108. [Dot42.DexImport("bind", "(Ljava/net/InetAddress;I)V", AccessFlags = 1028)]
  109. protected internal abstract void Bind(global::Java.Net.InetAddress address, int port) /* MethodBuilder.Create */ ;
  110. /// <summary>
  111. /// <para>Closes this socket. This makes later access invalid.</para><para></para>
  112. /// </summary>
  113. /// <java-name>
  114. /// close
  115. /// </java-name>
  116. [Dot42.DexImport("close", "()V", AccessFlags = 1028)]
  117. protected internal abstract void Close() /* MethodBuilder.Create */ ;
  118. /// <summary>
  119. /// <para>Connects this socket to the specified remote host address and port number.</para><para></para>
  120. /// </summary>
  121. /// <java-name>
  122. /// connect
  123. /// </java-name>
  124. [Dot42.DexImport("connect", "(Ljava/lang/String;I)V", AccessFlags = 1028)]
  125. protected internal abstract void Connect(string address, int port) /* MethodBuilder.Create */ ;
  126. /// <summary>
  127. /// <para>Connects this socket to the specified remote host address and port number.</para><para></para>
  128. /// </summary>
  129. /// <java-name>
  130. /// connect
  131. /// </java-name>
  132. [Dot42.DexImport("connect", "(Ljava/net/InetAddress;I)V", AccessFlags = 1028)]
  133. protected internal abstract void Connect(global::Java.Net.InetAddress address, int port) /* MethodBuilder.Create */ ;
  134. /// <summary>
  135. /// <para>Creates a new unconnected socket. The argument <c> isStreaming </c> defines whether the new socket is a streaming or a datagram socket.</para><para></para>
  136. /// </summary>
  137. /// <java-name>
  138. /// create
  139. /// </java-name>
  140. [Dot42.DexImport("create", "(Z)V", AccessFlags = 1028)]
  141. protected internal abstract void Create(bool isStreaming) /* MethodBuilder.Create */ ;
  142. /// <summary>
  143. /// <para>Gets the file descriptor of this socket.</para><para></para>
  144. /// </summary>
  145. /// <returns>
  146. /// <para>the file descriptor of this socket. </para>
  147. /// </returns>
  148. /// <java-name>
  149. /// getFileDescriptor
  150. /// </java-name>
  151. [Dot42.DexImport("getFileDescriptor", "()Ljava/io/FileDescriptor;", AccessFlags = 4)]
  152. protected internal virtual global::Java.Io.FileDescriptor GetFileDescriptor() /* MethodBuilder.Create */
  153. {
  154. return default(global::Java.Io.FileDescriptor);
  155. }
  156. /// <summary>
  157. /// <para>Gets the remote address this socket is connected to.</para><para></para>
  158. /// </summary>
  159. /// <returns>
  160. /// <para>the remote address of this socket. </para>
  161. /// </returns>
  162. /// <java-name>
  163. /// getInetAddress
  164. /// </java-name>
  165. [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 4)]
  166. protected internal virtual global::Java.Net.InetAddress GetInetAddress() /* MethodBuilder.Create */
  167. {
  168. return default(global::Java.Net.InetAddress);
  169. }
  170. /// <summary>
  171. /// <para>Gets the input stream of this socket.</para><para></para>
  172. /// </summary>
  173. /// <returns>
  174. /// <para>the input stream of this socket. </para>
  175. /// </returns>
  176. /// <java-name>
  177. /// getInputStream
  178. /// </java-name>
  179. [Dot42.DexImport("getInputStream", "()Ljava/io/InputStream;", AccessFlags = 1028)]
  180. protected internal abstract global::Java.Io.InputStream GetInputStream() /* MethodBuilder.Create */ ;
  181. /// <summary>
  182. /// <para>Gets the local port number of this socket. The field is initialized to <c> -1 </c> and upon demand will go to the IP stack to get the bound value. See the class comment for the context of the local port.</para><para></para>
  183. /// </summary>
  184. /// <returns>
  185. /// <para>the local port number this socket is bound to. </para>
  186. /// </returns>
  187. /// <java-name>
  188. /// getLocalPort
  189. /// </java-name>
  190. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 4)]
  191. protected internal virtual int GetLocalPort() /* MethodBuilder.Create */
  192. {
  193. return default(int);
  194. }
  195. /// <summary>
  196. /// <para>Gets the output stream of this socket.</para><para></para>
  197. /// </summary>
  198. /// <returns>
  199. /// <para>the output stream of this socket. </para>
  200. /// </returns>
  201. /// <java-name>
  202. /// getOutputStream
  203. /// </java-name>
  204. [Dot42.DexImport("getOutputStream", "()Ljava/io/OutputStream;", AccessFlags = 1028)]
  205. protected internal abstract global::Java.Io.OutputStream GetOutputStream() /* MethodBuilder.Create */ ;
  206. /// <summary>
  207. /// <para>Gets the remote port number of this socket. This value is not meaningful when this instance is wrapped by a <c> ServerSocket </c> .</para><para></para>
  208. /// </summary>
  209. /// <returns>
  210. /// <para>the remote port this socket is connected to. </para>
  211. /// </returns>
  212. /// <java-name>
  213. /// getPort
  214. /// </java-name>
  215. [Dot42.DexImport("getPort", "()I", AccessFlags = 4)]
  216. protected internal virtual int GetPort() /* MethodBuilder.Create */
  217. {
  218. return default(int);
  219. }
  220. /// <summary>
  221. /// <para>Listens for connection requests on this streaming socket. Incoming connection requests are queued up to the limit specified by <c> backlog </c> . Additional requests are rejected. This method may only be invoked on stream sockets.</para><para></para>
  222. /// </summary>
  223. /// <java-name>
  224. /// listen
  225. /// </java-name>
  226. [Dot42.DexImport("listen", "(I)V", AccessFlags = 1028)]
  227. protected internal abstract void Listen(int backlog) /* MethodBuilder.Create */ ;
  228. /// <summary>
  229. /// <para>Returns a string containing a concise, human-readable description of the socket.</para><para></para>
  230. /// </summary>
  231. /// <returns>
  232. /// <para>the textual representation of this socket. </para>
  233. /// </returns>
  234. /// <java-name>
  235. /// toString
  236. /// </java-name>
  237. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  238. public override string ToString() /* MethodBuilder.Create */
  239. {
  240. return default(string);
  241. }
  242. /// <summary>
  243. /// <para>Closes the input channel of this socket.</para><para>This default implementation always throws an IOException to indicate that the subclass should have overridden this method.</para><para></para>
  244. /// </summary>
  245. /// <java-name>
  246. /// shutdownInput
  247. /// </java-name>
  248. [Dot42.DexImport("shutdownInput", "()V", AccessFlags = 4)]
  249. protected internal virtual void ShutdownInput() /* MethodBuilder.Create */
  250. {
  251. }
  252. /// <summary>
  253. /// <para>Closes the output channel of this socket.</para><para>This default implementation always throws an IOException to indicate that the subclass should have overridden this method.</para><para></para>
  254. /// </summary>
  255. /// <java-name>
  256. /// shutdownOutput
  257. /// </java-name>
  258. [Dot42.DexImport("shutdownOutput", "()V", AccessFlags = 4)]
  259. protected internal virtual void ShutdownOutput() /* MethodBuilder.Create */
  260. {
  261. }
  262. /// <summary>
  263. /// <para>Connects this socket to the specified remote host address and port number.</para><para></para>
  264. /// </summary>
  265. /// <java-name>
  266. /// connect
  267. /// </java-name>
  268. [Dot42.DexImport("connect", "(Ljava/net/SocketAddress;I)V", AccessFlags = 1028)]
  269. protected internal abstract void Connect(global::Java.Net.SocketAddress address, int port) /* MethodBuilder.Create */ ;
  270. /// <summary>
  271. /// <para>Returns whether the socket supports urgent data or not. Subclasses should override this method.</para><para></para>
  272. /// </summary>
  273. /// <returns>
  274. /// <para><c> false </c> because subclasses must override this method. </para>
  275. /// </returns>
  276. /// <java-name>
  277. /// supportsUrgentData
  278. /// </java-name>
  279. [Dot42.DexImport("supportsUrgentData", "()Z", AccessFlags = 4)]
  280. protected internal virtual bool SupportsUrgentData() /* MethodBuilder.Create */
  281. {
  282. return default(bool);
  283. }
  284. /// <summary>
  285. /// <para>Sends the single byte of urgent data on the socket.</para><para></para>
  286. /// </summary>
  287. /// <java-name>
  288. /// sendUrgentData
  289. /// </java-name>
  290. [Dot42.DexImport("sendUrgentData", "(I)V", AccessFlags = 1028)]
  291. protected internal abstract void SendUrgentData(int value) /* MethodBuilder.Create */ ;
  292. /// <summary>
  293. /// <para>Sets performance preference for connection time, latency and bandwidth. Does nothing by default.</para><para></para>
  294. /// </summary>
  295. /// <java-name>
  296. /// setPerformancePreferences
  297. /// </java-name>
  298. [Dot42.DexImport("setPerformancePreferences", "(III)V", AccessFlags = 4)]
  299. protected internal virtual void SetPerformancePreferences(int connectionTime, int latency, int bandwidth) /* MethodBuilder.Create */
  300. {
  301. }
  302. [Dot42.DexImport("java/net/SocketOptions", "getOption", "(I)Ljava/lang/Object;", AccessFlags = 1025)]
  303. public virtual object GetOption(int optID) /* TypeBuilder.AddAbstractInterfaceMethods */
  304. {
  305. return default(object);
  306. }
  307. [Dot42.DexImport("java/net/SocketOptions", "setOption", "(ILjava/lang/Object;)V", AccessFlags = 1025)]
  308. public virtual void SetOption(int optID, object val) /* TypeBuilder.AddAbstractInterfaceMethods */
  309. {
  310. }
  311. /// <summary>
  312. /// <para>Gets the file descriptor of this socket.</para><para></para>
  313. /// </summary>
  314. /// <returns>
  315. /// <para>the file descriptor of this socket. </para>
  316. /// </returns>
  317. /// <java-name>
  318. /// getFileDescriptor
  319. /// </java-name>
  320. protected internal global::Java.Io.FileDescriptor FileDescriptor
  321. {
  322. [Dot42.DexImport("getFileDescriptor", "()Ljava/io/FileDescriptor;", AccessFlags = 4)]
  323. get{ return GetFileDescriptor(); }
  324. }
  325. /// <summary>
  326. /// <para>Gets the remote address this socket is connected to.</para><para></para>
  327. /// </summary>
  328. /// <returns>
  329. /// <para>the remote address of this socket. </para>
  330. /// </returns>
  331. /// <java-name>
  332. /// getInetAddress
  333. /// </java-name>
  334. protected internal global::Java.Net.InetAddress InetAddress
  335. {
  336. [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 4)]
  337. get{ return GetInetAddress(); }
  338. }
  339. /// <summary>
  340. /// <para>Gets the input stream of this socket.</para><para></para>
  341. /// </summary>
  342. /// <returns>
  343. /// <para>the input stream of this socket. </para>
  344. /// </returns>
  345. /// <java-name>
  346. /// getInputStream
  347. /// </java-name>
  348. protected internal global::Java.Io.InputStream InputStream
  349. {
  350. [Dot42.DexImport("getInputStream", "()Ljava/io/InputStream;", AccessFlags = 1028)]
  351. get{ return GetInputStream(); }
  352. }
  353. /// <summary>
  354. /// <para>Gets the local port number of this socket. The field is initialized to <c> -1 </c> and upon demand will go to the IP stack to get the bound value. See the class comment for the context of the local port.</para><para></para>
  355. /// </summary>
  356. /// <returns>
  357. /// <para>the local port number this socket is bound to. </para>
  358. /// </returns>
  359. /// <java-name>
  360. /// getLocalPort
  361. /// </java-name>
  362. protected internal int LocalPort
  363. {
  364. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 4)]
  365. get{ return GetLocalPort(); }
  366. }
  367. /// <summary>
  368. /// <para>Gets the output stream of this socket.</para><para></para>
  369. /// </summary>
  370. /// <returns>
  371. /// <para>the output stream of this socket. </para>
  372. /// </returns>
  373. /// <java-name>
  374. /// getOutputStream
  375. /// </java-name>
  376. protected internal global::Java.Io.OutputStream OutputStream
  377. {
  378. [Dot42.DexImport("getOutputStream", "()Ljava/io/OutputStream;", AccessFlags = 1028)]
  379. get{ return GetOutputStream(); }
  380. }
  381. }
  382. /// <summary>
  383. /// <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>
  384. /// </summary>
  385. /// <java-name>
  386. /// java/net/URLEncoder
  387. /// </java-name>
  388. [Dot42.DexImport("java/net/URLEncoder", AccessFlags = 33)]
  389. public partial class URLEncoder
  390. /* scope: __dot42__ */
  391. {
  392. [Dot42.DexImport("<init>", "()V", AccessFlags = 0)]
  393. internal URLEncoder() /* MethodBuilder.Create */
  394. {
  395. }
  396. /// <summary>
  397. /// <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>
  398. /// </summary>
  399. /// <java-name>
  400. /// encode
  401. /// </java-name>
  402. [Dot42.DexImport("encode", "(Ljava/lang/String;)Ljava/lang/String;", AccessFlags = 9)]
  403. public static string Encode(string s) /* MethodBuilder.Create */
  404. {
  405. return default(string);
  406. }
  407. /// <summary>
  408. /// <para>Encodes <c> s </c> using the Charset named by <c> charsetName </c> . </para>
  409. /// </summary>
  410. /// <java-name>
  411. /// encode
  412. /// </java-name>
  413. [Dot42.DexImport("encode", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", AccessFlags = 9)]
  414. public static string Encode(string s, string charsetName) /* MethodBuilder.Create */
  415. {
  416. return default(string);
  417. }
  418. }
  419. /// <summary>
  420. /// <para>The abstract class <c> URLStreamHandler </c> is the base for all classes which can handle the communication with a URL object over a particular protocol type. </para>
  421. /// </summary>
  422. /// <java-name>
  423. /// java/net/URLStreamHandler
  424. /// </java-name>
  425. [Dot42.DexImport("java/net/URLStreamHandler", AccessFlags = 1057)]
  426. public abstract partial class URLStreamHandler
  427. /* scope: __dot42__ */
  428. {
  429. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  430. public URLStreamHandler() /* MethodBuilder.Create */
  431. {
  432. }
  433. /// <summary>
  434. /// <para>Establishes a new connection to the resource specified by the URL <c> u </c> . Since different protocols also have unique ways of connecting, it must be overwritten by the subclass.</para><para></para>
  435. /// </summary>
  436. /// <returns>
  437. /// <para>the opened URLConnection to the specified resource. </para>
  438. /// </returns>
  439. /// <java-name>
  440. /// openConnection
  441. /// </java-name>
  442. [Dot42.DexImport("openConnection", "(Ljava/net/URL;)Ljava/net/URLConnection;", AccessFlags = 1028)]
  443. protected internal abstract global::Java.Net.URLConnection OpenConnection(global::Java.Net.URL u) /* MethodBuilder.Create */ ;
  444. /// <summary>
  445. /// <para>Establishes a new connection to the resource specified by the URL <c> u </c> using the given <c> proxy </c> . Since different protocols also have unique ways of connecting, it must be overwritten by the subclass.</para><para></para>
  446. /// </summary>
  447. /// <returns>
  448. /// <para>the opened URLConnection to the specified resource. </para>
  449. /// </returns>
  450. /// <java-name>
  451. /// openConnection
  452. /// </java-name>
  453. [Dot42.DexImport("openConnection", "(Ljava/net/URL;Ljava/net/Proxy;)Ljava/net/URLConnection;", AccessFlags = 4)]
  454. protected internal virtual global::Java.Net.URLConnection OpenConnection(global::Java.Net.URL u, global::Java.Net.Proxy proxy) /* MethodBuilder.Create */
  455. {
  456. return default(global::Java.Net.URLConnection);
  457. }
  458. /// <summary>
  459. /// <para>Parses the clear text URL in <c> str </c> into a URL object. URL strings generally have the following format: </para><para> </para><para>The string is parsed in HTTP format. If the protocol has a different URL format this method must be overridden.</para><para><para>toExternalForm </para><simplesectsep></simplesectsep><para>URL </para></para>
  460. /// </summary>
  461. /// <java-name>
  462. /// parseURL
  463. /// </java-name>
  464. [Dot42.DexImport("parseURL", "(Ljava/net/URL;Ljava/lang/String;II)V", AccessFlags = 4)]
  465. protected internal virtual void ParseURL(global::Java.Net.URL url, string spec, int start, int end) /* MethodBuilder.Create */
  466. {
  467. }
  468. /// <summary>
  469. /// <para>Sets the fields of the URL <c> u </c> to the values of the supplied arguments.</para><para><xrefsect><xreftitle>Deprecated</xreftitle><xrefdescription><para>use setURL(URL, String String, int, String, String, String, String, String) instead. </para></xrefdescription></xrefsect></para>
  470. /// </summary>
  471. /// <java-name>
  472. /// setURL
  473. /// </java-name>
  474. [Dot42.DexImport("setURL", "(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/" +
  475. "String;)V", AccessFlags = 4)]
  476. protected internal virtual void SetURL(global::Java.Net.URL u, string protocol, string host, int port, string file, string @ref) /* MethodBuilder.Create */
  477. {
  478. }
  479. /// <summary>
  480. /// <para>Sets the fields of the URL <c> u </c> to the values of the supplied arguments. </para>
  481. /// </summary>
  482. /// <java-name>
  483. /// setURL
  484. /// </java-name>
  485. [Dot42.DexImport("setURL", "(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/" +
  486. "String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", AccessFlags = 4)]
  487. protected internal virtual void SetURL(global::Java.Net.URL u, string protocol, string host, int port, string authority, string userInfo, string path, string query, string @ref) /* MethodBuilder.Create */
  488. {
  489. }
  490. /// <summary>
  491. /// <para>Returns the clear text representation of a given URL using HTTP format.</para><para><para>parseURL </para><simplesectsep></simplesectsep><para>URL::toExternalForm() </para></para>
  492. /// </summary>
  493. /// <returns>
  494. /// <para>the clear text representation of the specified URL. </para>
  495. /// </returns>
  496. /// <java-name>
  497. /// toExternalForm
  498. /// </java-name>
  499. [Dot42.DexImport("toExternalForm", "(Ljava/net/URL;)Ljava/lang/String;", AccessFlags = 4)]
  500. protected internal virtual string ToExternalForm(global::Java.Net.URL url) /* MethodBuilder.Create */
  501. {
  502. return default(string);
  503. }
  504. /// <summary>
  505. /// <para>Returns true if <c> a </c> and <c> b </c> have the same protocol, host, port, file, and reference. </para>
  506. /// </summary>
  507. /// <java-name>
  508. /// equals
  509. /// </java-name>
  510. [Dot42.DexImport("equals", "(Ljava/net/URL;Ljava/net/URL;)Z", AccessFlags = 4)]
  511. protected internal virtual bool Equals(global::Java.Net.URL a, global::Java.Net.URL b) /* MethodBuilder.Create */
  512. {
  513. return default(bool);
  514. }
  515. /// <summary>
  516. /// <para>Returns the default port of the protocol used by the handled URL. The default implementation always returns <c> -1 </c> . </para>
  517. /// </summary>
  518. /// <java-name>
  519. /// getDefaultPort
  520. /// </java-name>
  521. [Dot42.DexImport("getDefaultPort", "()I", AccessFlags = 4)]
  522. protected internal virtual int GetDefaultPort() /* MethodBuilder.Create */
  523. {
  524. return default(int);
  525. }
  526. /// <summary>
  527. /// <para>Returns the host address of <c> url </c> . </para>
  528. /// </summary>
  529. /// <java-name>
  530. /// getHostAddress
  531. /// </java-name>
  532. [Dot42.DexImport("getHostAddress", "(Ljava/net/URL;)Ljava/net/InetAddress;", AccessFlags = 4)]
  533. protected internal virtual global::Java.Net.InetAddress GetHostAddress(global::Java.Net.URL url) /* MethodBuilder.Create */
  534. {
  535. return default(global::Java.Net.InetAddress);
  536. }
  537. /// <summary>
  538. /// <para>Returns the hash code of <c> url </c> . </para>
  539. /// </summary>
  540. /// <java-name>
  541. /// hashCode
  542. /// </java-name>
  543. [Dot42.DexImport("hashCode", "(Ljava/net/URL;)I", AccessFlags = 4)]
  544. protected internal virtual int GetHashCode(global::Java.Net.URL url) /* MethodBuilder.Create */
  545. {
  546. return default(int);
  547. }
  548. /// <summary>
  549. /// <para>Returns true if the hosts of <c> a </c> and <c> b </c> are equal. </para>
  550. /// </summary>
  551. /// <java-name>
  552. /// hostsEqual
  553. /// </java-name>
  554. [Dot42.DexImport("hostsEqual", "(Ljava/net/URL;Ljava/net/URL;)Z", AccessFlags = 4)]
  555. protected internal virtual bool HostsEqual(global::Java.Net.URL a, global::Java.Net.URL b) /* MethodBuilder.Create */
  556. {
  557. return default(bool);
  558. }
  559. /// <summary>
  560. /// <para>Returns true if <c> a </c> and <c> b </c> have the same protocol, host, port and file. </para>
  561. /// </summary>
  562. /// <java-name>
  563. /// sameFile
  564. /// </java-name>
  565. [Dot42.DexImport("sameFile", "(Ljava/net/URL;Ljava/net/URL;)Z", AccessFlags = 4)]
  566. protected internal virtual bool SameFile(global::Java.Net.URL a, global::Java.Net.URL b) /* MethodBuilder.Create */
  567. {
  568. return default(bool);
  569. }
  570. /// <summary>
  571. /// <para>Returns the default port of the protocol used by the handled URL. The default implementation always returns <c> -1 </c> . </para>
  572. /// </summary>
  573. /// <java-name>
  574. /// getDefaultPort
  575. /// </java-name>
  576. protected internal int DefaultPort
  577. {
  578. [Dot42.DexImport("getDefaultPort", "()I", AccessFlags = 4)]
  579. get{ return GetDefaultPort(); }
  580. }
  581. }
  582. /// <summary>
  583. /// <para>This class provides a way to manage cookies with a HTTP protocol handler. </para>
  584. /// </summary>
  585. /// <java-name>
  586. /// java/net/CookieHandler
  587. /// </java-name>
  588. [Dot42.DexImport("java/net/CookieHandler", AccessFlags = 1057)]
  589. public abstract partial class CookieHandler
  590. /* scope: __dot42__ */
  591. {
  592. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  593. public CookieHandler() /* MethodBuilder.Create */
  594. {
  595. }
  596. /// <summary>
  597. /// <para>Returns the system-wide cookie handler or <c> null </c> if not set. </para>
  598. /// </summary>
  599. /// <java-name>
  600. /// getDefault
  601. /// </java-name>
  602. [Dot42.DexImport("getDefault", "()Ljava/net/CookieHandler;", AccessFlags = 9)]
  603. public static global::Java.Net.CookieHandler GetDefault() /* MethodBuilder.Create */
  604. {
  605. return default(global::Java.Net.CookieHandler);
  606. }
  607. /// <summary>
  608. /// <para>Sets the system-wide cookie handler. </para>
  609. /// </summary>
  610. /// <java-name>
  611. /// setDefault
  612. /// </java-name>
  613. [Dot42.DexImport("setDefault", "(Ljava/net/CookieHandler;)V", AccessFlags = 9)]
  614. public static void SetDefault(global::Java.Net.CookieHandler cHandler) /* MethodBuilder.Create */
  615. {
  616. }
  617. /// <summary>
  618. /// <para>Gets all cookies for a specific URI from the cookie cache.</para><para></para>
  619. /// </summary>
  620. /// <returns>
  621. /// <para>an unchangeable map of all appropriate cookies. </para>
  622. /// </returns>
  623. /// <java-name>
  624. /// get
  625. /// </java-name>
  626. [Dot42.DexImport("get", "(Ljava/net/URI;Ljava/util/Map;)Ljava/util/Map;", AccessFlags = 1025, Signature = "(Ljava/net/URI;Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String" +
  627. ";>;>;)Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;")]
  628. public abstract 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 */ ;
  629. /// <summary>
  630. /// <para>Sets all cookies of a specific URI in the <c> responseHeaders </c> into the cookie cache.</para><para></para>
  631. /// </summary>
  632. /// <java-name>
  633. /// put
  634. /// </java-name>
  635. [Dot42.DexImport("put", "(Ljava/net/URI;Ljava/util/Map;)V", AccessFlags = 1025, Signature = "(Ljava/net/URI;Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String" +
  636. ";>;>;)V")]
  637. public abstract void Put(global::System.Uri uri, global::Java.Util.IMap<string, global::Java.Util.IList<string>> responseHeaders) /* MethodBuilder.Create */ ;
  638. /// <summary>
  639. /// <para>Returns the system-wide cookie handler or <c> null </c> if not set. </para>
  640. /// </summary>
  641. /// <java-name>
  642. /// getDefault
  643. /// </java-name>
  644. public static global::Java.Net.CookieHandler Default
  645. {
  646. [Dot42.DexImport("getDefault", "()Ljava/net/CookieHandler;", AccessFlags = 9)]
  647. get{ return GetDefault(); }
  648. [Dot42.DexImport("setDefault", "(Ljava/net/CookieHandler;)V", AccessFlags = 9)]
  649. set{ SetDefault(value); }
  650. }
  651. }
  652. /// <summary>
  653. /// <para>This <c> PortUnreachableException </c> will be thrown if an <c> ICMP_Port_Unreachable </c> message has been received.</para><para>Most applications <b>should not</b> catch this exception; it is more robust to catch the superclass <c> SocketException </c> . </para>
  654. /// </summary>
  655. /// <java-name>
  656. /// java/net/PortUnreachableException
  657. /// </java-name>
  658. [Dot42.DexImport("java/net/PortUnreachableException", AccessFlags = 33)]
  659. public partial class PortUnreachableException : global::Java.Net.SocketException
  660. /* scope: __dot42__ */
  661. {
  662. /// <summary>
  663. /// <para>Constructs a new instance. </para>
  664. /// </summary>
  665. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  666. public PortUnreachableException() /* MethodBuilder.Create */
  667. {
  668. }
  669. /// <summary>
  670. /// <para>Constructs a new instance with the given detail message. </para>
  671. /// </summary>
  672. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  673. public PortUnreachableException(string detailMessage) /* MethodBuilder.Create */
  674. {
  675. }
  676. }
  677. /// <summary>
  678. /// <para>Defines a factory which creates an <c> URLStreamHandler </c> for a specified protocol. It is used by the class <c> URL </c> . </para>
  679. /// </summary>
  680. /// <java-name>
  681. /// java/net/URLStreamHandlerFactory
  682. /// </java-name>
  683. [Dot42.DexImport("java/net/URLStreamHandlerFactory", AccessFlags = 1537)]
  684. public partial interface IURLStreamHandlerFactory
  685. /* scope: __dot42__ */
  686. {
  687. /// <summary>
  688. /// <para>Creates a new <c> URLStreamHandler </c> instance for the given <c> protocol </c> .</para><para></para>
  689. /// </summary>
  690. /// <returns>
  691. /// <para>the created handler. </para>
  692. /// </returns>
  693. /// <java-name>
  694. /// createURLStreamHandler
  695. /// </java-name>
  696. [Dot42.DexImport("createURLStreamHandler", "(Ljava/lang/String;)Ljava/net/URLStreamHandler;", AccessFlags = 1025)]
  697. global::Java.Net.URLStreamHandler CreateURLStreamHandler(string protocol) /* MethodBuilder.Create */ ;
  698. }
  699. /// <summary>
  700. /// <para>A CookieStore object is a repository for cookies.</para><para>CookieManager will store cookies of every incoming HTTP response into CookieStore, and retrieve cookies for every outgoing HTTP request.Expired HttpCookies should be removed from this store by themselves.</para><para><para>1.6 </para></para>
  701. /// </summary>
  702. /// <java-name>
  703. /// java/net/CookieStore
  704. /// </java-name>
  705. [Dot42.DexImport("java/net/CookieStore", AccessFlags = 1537)]
  706. public partial interface ICookieStore
  707. /* scope: __dot42__ */
  708. {
  709. /// <summary>
  710. /// <para>Saves a HTTP cookie to this store. This is called for every incoming HTTP response.</para><para>A cookie may or may not has an associated URI. If not, the cookie's domain and path attribute will show cradleland. If there is an associated URI and no domain and path attribute are speicifed for the cookie, the given URI will indicate where this cookie comes from.</para><para>If a cookie corresponding to the given URI already exists, then it is replaced with the new one.</para><para></para>
  711. /// </summary>
  712. /// <java-name>
  713. /// add
  714. /// </java-name>
  715. [Dot42.DexImport("add", "(Ljava/net/URI;Ljava/net/HttpCookie;)V", AccessFlags = 1025)]
  716. void Add(global::System.Uri uri, global::Java.Net.HttpCookie cookie) /* MethodBuilder.Create */ ;
  717. /// <summary>
  718. /// <para>Retrieves cookies that match the specified URI. Return not expired cookies. For every outgoing HTTP request, this method will be called.</para><para></para>
  719. /// </summary>
  720. /// <returns>
  721. /// <para>an immutable list of HttpCookies, return empty list if no cookies match the given URI </para>
  722. /// </returns>
  723. /// <java-name>
  724. /// get
  725. /// </java-name>
  726. [Dot42.DexImport("get", "(Ljava/net/URI;)Ljava/util/List;", AccessFlags = 1025, Signature = "(Ljava/net/URI;)Ljava/util/List<Ljava/net/HttpCookie;>;")]
  727. global::Java.Util.IList<global::Java.Net.HttpCookie> Get(global::System.Uri uri) /* MethodBuilder.Create */ ;
  728. /// <summary>
  729. /// <para>Get all cookies in cookie store which are not expired.</para><para></para>
  730. /// </summary>
  731. /// <returns>
  732. /// <para>an empty list if there's no http cookie in store, or an immutable list of cookies </para>
  733. /// </returns>
  734. /// <java-name>
  735. /// getCookies
  736. /// </java-name>
  737. [Dot42.DexImport("getCookies", "()Ljava/util/List;", AccessFlags = 1025, Signature = "()Ljava/util/List<Ljava/net/HttpCookie;>;")]
  738. global::Java.Util.IList<global::Java.Net.HttpCookie> GetCookies() /* MethodBuilder.Create */ ;
  739. /// <summary>
  740. /// <para>Get a set of URIs, which is composed of associated URI with all the cookies in the store.</para><para></para>
  741. /// </summary>
  742. /// <returns>
  743. /// <para>zero-length list if no cookie in the store is associated with any URIs, otherwise an immutable list of URIs. </para>
  744. /// </returns>
  745. /// <java-name>
  746. /// getURIs
  747. /// </java-name>
  748. [Dot42.DexImport("getURIs", "()Ljava/util/List;", AccessFlags = 1025, Signature = "()Ljava/util/List<Ljava/net/URI;>;")]
  749. global::Java.Util.IList<global::System.Uri> GetURIs() /* MethodBuilder.Create */ ;
  750. /// <summary>
  751. /// <para>Remove the specified cookie from the store.</para><para></para>
  752. /// </summary>
  753. /// <returns>
  754. /// <para>true if the specified cookie is contained in this store and removed successfully </para>
  755. /// </returns>
  756. /// <java-name>
  757. /// remove
  758. /// </java-name>
  759. [Dot42.DexImport("remove", "(Ljava/net/URI;Ljava/net/HttpCookie;)Z", AccessFlags = 1025)]
  760. bool Remove(global::System.Uri uri, global::Java.Net.HttpCookie cookie) /* MethodBuilder.Create */ ;
  761. /// <summary>
  762. /// <para>Clear this cookie store.</para><para></para>
  763. /// </summary>
  764. /// <returns>
  765. /// <para>true if any cookies were removed as a result of this call. </para>
  766. /// </returns>
  767. /// <java-name>
  768. /// removeAll
  769. /// </java-name>
  770. [Dot42.DexImport("removeAll", "()Z", AccessFlags = 1025)]
  771. bool RemoveAll() /* MethodBuilder.Create */ ;
  772. }
  773. /// <summary>
  774. /// <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>
  775. /// </summary>
  776. /// <java-name>
  777. /// java/net/Authenticator
  778. /// </java-name>
  779. [Dot42.DexImport("java/net/Authenticator", AccessFlags = 1057)]
  780. public abstract partial class Authenticator
  781. /* scope: __dot42__ */
  782. {
  783. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  784. public Authenticator() /* MethodBuilder.Create */
  785. {
  786. }
  787. /// <summary>
  788. /// <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>
  789. /// </summary>
  790. /// <returns>
  791. /// <para>collected password authentication data. </para>
  792. /// </returns>
  793. /// <java-name>
  794. /// getPasswordAuthentication
  795. /// </java-name>
  796. [Dot42.DexImport("getPasswordAuthentication", "()Ljava/net/PasswordAuthentication;", AccessFlags = 4)]
  797. protected internal virtual global::Java.Net.PasswordAuthentication GetPasswordAuthentication() /* MethodBuilder.Create */
  798. {
  799. return default(global::Java.Net.PasswordAuthentication);
  800. }
  801. /// <summary>
  802. /// <para>Returns the port of the connection that requests authorization.</para><para></para>
  803. /// </summary>
  804. /// <returns>
  805. /// <para>port of the connection. </para>
  806. /// </returns>
  807. /// <java-name>
  808. /// getRequestingPort
  809. /// </java-name>
  810. [Dot42.DexImport("getRequestingPort", "()I", AccessFlags = 20)]
  811. protected internal int GetRequestingPort() /* MethodBuilder.Create */
  812. {
  813. return default(int);
  814. }
  815. /// <summary>
  816. /// <para>Returns the address of the connection that requests authorization or <c> null </c> if unknown.</para><para></para>
  817. /// </summary>
  818. /// <returns>
  819. /// <para>address of the connection. </para>
  820. /// </returns>
  821. /// <java-name>
  822. /// getRequestingSite
  823. /// </java-name>
  824. [Dot42.DexImport("getRequestingSite", "()Ljava/net/InetAddress;", AccessFlags = 20)]
  825. protected internal global::Java.Net.InetAddress GetRequestingSite() /* MethodBuilder.Create */
  826. {
  827. return default(global::Java.Net.InetAddress);
  828. }
  829. /// <summary>
  830. /// <para>Returns the realm (prompt string) of the connection that requests authorization.</para><para></para>
  831. /// </summary>
  832. /// <returns>
  833. /// <para>prompt string of the connection. </para>
  834. /// </returns>
  835. /// <java-name>
  836. /// getRequestingPrompt
  837. /// </java-name>
  838. [Dot42.DexImport("getRequestingPrompt", "()Ljava/lang/String;", AccessFlags = 20)]
  839. protected internal string GetRequestingPrompt() /* MethodBuilder.Create */
  840. {
  841. return default(string);
  842. }
  843. /// <summary>
  844. /// <para>Returns the protocol of the connection that requests authorization.</para><para></para>
  845. /// </summary>
  846. /// <returns>
  847. /// <para>protocol of the connection. </para>
  848. /// </returns>
  849. /// <java-name>
  850. /// getRequestingProtocol
  851. /// </java-name>
  852. [Dot42.DexImport("getRequestingProtocol", "()Ljava/lang/String;", AccessFlags = 20)]
  853. protected internal string GetRequestingProtocol() /* MethodBuilder.Create */
  854. {
  855. return default(string);
  856. }
  857. /// <summary>
  858. /// <para>Returns the scheme of the connection that requests authorization, for example HTTP Basic Authentication.</para><para></para>
  859. /// </summary>
  860. /// <returns>
  861. /// <para>scheme of the connection. </para>
  862. /// </returns>
  863. /// <java-name>
  864. /// getRequestingScheme
  865. /// </java-name>
  866. [Dot42.DexImport("getRequestingScheme", "()Ljava/lang/String;", AccessFlags = 20)]
  867. protected internal string GetRequestingScheme() /* MethodBuilder.Create */
  868. {
  869. return default(string);
  870. }
  871. /// <summary>
  872. /// <para>Invokes the methods of the registered authenticator to get the authentication info.</para><para></para>
  873. /// </summary>
  874. /// <returns>
  875. /// <para>password authentication info or <c> null </c> if no authenticator exists. </para>
  876. /// </returns>
  877. /// <java-name>
  878. /// requestPasswordAuthentication
  879. /// </java-name>
  880. [Dot42.DexImport("requestPasswordAuthentication", "(Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lj" +
  881. "ava/net/PasswordAuthentication;", AccessFlags = 41)]
  882. public static global::Java.Net.PasswordAuthentication RequestPasswordAuthentication(global::Java.Net.InetAddress rAddr, int rPort, string rProtocol, string rPrompt, string rScheme) /* MethodBuilder.Create */
  883. {
  884. return default(global::Java.Net.PasswordAuthentication);
  885. }
  886. /// <summary>
  887. /// <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>
  888. /// </summary>
  889. /// <java-name>
  890. /// setDefault
  891. /// </java-name>
  892. [Dot42.DexImport("setDefault", "(Ljava/net/Authenticator;)V", AccessFlags = 9)]
  893. public static void SetDefault(global::Java.Net.Authenticator a) /* MethodBuilder.Create */
  894. {
  895. }
  896. /// <summary>
  897. /// <para>Invokes the methods of the registered authenticator to get the authentication info.</para><para></para>
  898. /// </summary>
  899. /// <returns>
  900. /// <para>password authentication info or <c> null </c> if no authenticator exists. </para>
  901. /// </returns>
  902. /// <java-name>
  903. /// requestPasswordAuthentication
  904. /// </java-name>
  905. [Dot42.DexImport("requestPasswordAuthentication", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Lja" +
  906. "va/lang/String;)Ljava/net/PasswordAuthentication;", AccessFlags = 41)]
  907. public static global::Java.Net.PasswordAuthentication RequestPasswordAuthentication(string rHost, global::Java.Net.InetAddress rAddr, int rPort, string rProtocol, string rPrompt, string rScheme) /* MethodBuilder.Create */
  908. {
  909. return default(global::Java.Net.PasswordAuthentication);
  910. }
  911. /// <summary>
  912. /// <para>Returns the host name of the connection that requests authentication or <c> null </c> if unknown.</para><para></para>
  913. /// </summary>
  914. /// <returns>
  915. /// <para>name of the requesting host or <c> null </c> . </para>
  916. /// </returns>
  917. /// <java-name>
  918. /// getRequestingHost
  919. /// </java-name>
  920. [Dot42.DexImport("getRequestingHost", "()Ljava/lang/String;", AccessFlags = 20)]
  921. protected internal string GetRequestingHost() /* MethodBuilder.Create */
  922. {
  923. return default(string);
  924. }
  925. /// <summary>
  926. /// <para>Invokes the methods of the registered authenticator to get the authentication info.</para><para></para>
  927. /// </summary>
  928. /// <returns>
  929. /// <para>password authentication info or <c> null </c> if no authenticator exists. </para>
  930. /// </returns>
  931. /// <java-name>
  932. /// requestPasswordAuthentication
  933. /// </java-name>
  934. [Dot42.DexImport("requestPasswordAuthentication", "(Ljava/lang/String;Ljava/net/InetAddress;ILjava/lang/String;Ljava/lang/String;Lja" +
  935. "va/lang/String;Ljava/net/URL;Ljava/net/Authenticator$RequestorType;)Ljava/net/Pa" +
  936. "sswordAuthentication;", AccessFlags = 9)]
  937. 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 */
  938. {
  939. return default(global::Java.Net.PasswordAuthentication);
  940. }
  941. /// <summary>
  942. /// <para>Returns the URL of the authentication request.</para><para></para>
  943. /// </summary>
  944. /// <returns>
  945. /// <para>authentication request url. </para>
  946. /// </returns>
  947. /// <java-name>
  948. /// getRequestingURL
  949. /// </java-name>
  950. [Dot42.DexImport("getRequestingURL", "()Ljava/net/URL;", AccessFlags = 4)]
  951. protected internal virtual global::Java.Net.URL GetRequestingURL() /* MethodBuilder.Create */
  952. {
  953. return default(global::Java.Net.URL);
  954. }
  955. /// <summary>
  956. /// <para>Returns the type of this request, it can be <c> PROXY </c> or <c> SERVER </c> .</para><para></para>
  957. /// </summary>
  958. /// <returns>
  959. /// <para>RequestorType of the authentication request. </para>
  960. /// </returns>
  961. /// <java-name>
  962. /// getRequestorType
  963. /// </java-name>
  964. [Dot42.DexImport("getRequestorType", "()Ljava/net/Authenticator$RequestorType;", AccessFlags = 4)]
  965. protected internal virtual global::Java.Net.Authenticator.RequestorType GetRequestorType() /* MethodBuilder.Create */
  966. {
  967. return default(global::Java.Net.Authenticator.RequestorType);
  968. }
  969. /// <summary>
  970. /// <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>
  971. /// </summary>
  972. /// <returns>
  973. /// <para>collected password authentication data. </para>
  974. /// </returns>
  975. /// <java-name>
  976. /// getPasswordAuthentication
  977. /// </java-name>
  978. protected internal global::Java.Net.PasswordAuthentication PasswordAuthentication
  979. {
  980. [Dot42.DexImport("getPasswordAuthentication", "()Ljava/net/PasswordAuthentication;", AccessFlags = 4)]
  981. get{ return GetPasswordAuthentication(); }
  982. }
  983. /// <summary>
  984. /// <para>Returns the port of the connection that requests authorization.</para><para></para>
  985. /// </summary>
  986. /// <returns>
  987. /// <para>port of the connection. </para>
  988. /// </returns>
  989. /// <java-name>
  990. /// getRequestingPort
  991. /// </java-name>
  992. protected internal int RequestingPort
  993. {
  994. [Dot42.DexImport("getRequestingPort", "()I", AccessFlags = 20)]
  995. get{ return GetRequestingPort(); }
  996. }
  997. /// <summary>
  998. /// <para>Returns the address of the connection that requests authorization or <c> null </c> if unknown.</para><para></para>
  999. /// </summary>
  1000. /// <returns>
  1001. /// <para>address of the connection. </para>
  1002. /// </returns>
  1003. /// <java-name>
  1004. /// getRequestingSite
  1005. /// </java-name>
  1006. protected internal global::Java.Net.InetAddress RequestingSite
  1007. {
  1008. [Dot42.DexImport("getRequestingSite", "()Ljava/net/InetAddress;", AccessFlags = 20)]
  1009. get{ return GetRequestingSite(); }
  1010. }
  1011. /// <summary>
  1012. /// <para>Returns the realm (prompt string) of the connection that requests authorization.</para><para></para>
  1013. /// </summary>
  1014. /// <returns>
  1015. /// <para>prompt string of the connection. </para>
  1016. /// </returns>
  1017. /// <java-name>
  1018. /// getRequestingPrompt
  1019. /// </java-name>
  1020. protected internal string RequestingPrompt
  1021. {
  1022. [Dot42.DexImport("getRequestingPrompt", "()Ljava/lang/String;", AccessFlags = 20)]
  1023. get{ return GetRequestingPrompt(); }
  1024. }
  1025. /// <summary>
  1026. /// <para>Returns the protocol of the connection that requests authorization.</para><para></para>
  1027. /// </summary>
  1028. /// <returns>
  1029. /// <para>protocol of the connection. </para>
  1030. /// </returns>
  1031. /// <java-name>
  1032. /// getRequestingProtocol
  1033. /// </java-name>
  1034. protected internal string RequestingProtocol
  1035. {
  1036. [Dot42.DexImport("getRequestingProtocol", "()Ljava/lang/String;", AccessFlags = 20)]
  1037. get{ return GetRequestingProtocol(); }
  1038. }
  1039. /// <summary>
  1040. /// <para>Returns the scheme of the connection that requests authorization, for example HTTP Basic Authentication.</para><para></para>
  1041. /// </summary>
  1042. /// <returns>
  1043. /// <para>scheme of the connection. </para>
  1044. /// </returns>
  1045. /// <java-name>
  1046. /// getRequestingScheme
  1047. /// </java-name>
  1048. protected internal string RequestingScheme
  1049. {
  1050. [Dot42.DexImport("getRequestingScheme", "()Ljava/lang/String;", AccessFlags = 20)]
  1051. get{ return GetRequestingScheme(); }
  1052. }
  1053. /// <summary>
  1054. /// <para>Returns the host name of the connection that requests authentication or <c> null </c> if unknown.</para><para></para>
  1055. /// </summary>
  1056. /// <returns>
  1057. /// <para>name of the requesting host or <c> null </c> . </para>
  1058. /// </returns>
  1059. /// <java-name>
  1060. /// getRequestingHost
  1061. /// </java-name>
  1062. protected internal string RequestingHost
  1063. {
  1064. [Dot42.DexImport("getRequestingHost", "()Ljava/lang/String;", AccessFlags = 20)]
  1065. get{ return GetRequestingHost(); }
  1066. }
  1067. /// <summary>
  1068. /// <para>Returns the URL of the authentication request.</para><para></para>
  1069. /// </summary>
  1070. /// <returns>
  1071. /// <para>authentication request url. </para>
  1072. /// </returns>
  1073. /// <java-name>
  1074. /// getRequestingURL
  1075. /// </java-name>
  1076. protected internal global::Java.Net.URL RequestingURL
  1077. {
  1078. [Dot42.DexImport("getRequestingURL", "()Ljava/net/URL;", AccessFlags = 4)]
  1079. get{ return GetRequestingURL(); }
  1080. }
  1081. /// <java-name>
  1082. /// java/net/Authenticator$RequestorType
  1083. /// </java-name>
  1084. [Dot42.DexImport("java/net/Authenticator$RequestorType", AccessFlags = 16409, Signature = "Ljava/lang/Enum<Ljava/net/Authenticator$RequestorType;>;")]
  1085. public sealed class RequestorType
  1086. /* scope: __dot42__ */
  1087. {
  1088. /// <java-name>
  1089. /// PROXY
  1090. /// </java-name>
  1091. [Dot42.DexImport("PROXY", "Ljava/net/Authenticator$RequestorType;", AccessFlags = 16409)]
  1092. public static readonly RequestorType PROXY;
  1093. /// <java-name>
  1094. /// SERVER
  1095. /// </java-name>
  1096. [Dot42.DexImport("SERVER", "Ljava/net/Authenticator$RequestorType;", AccessFlags = 16409)]
  1097. public static readonly RequestorType SERVER;
  1098. private RequestorType() /* TypeBuilder.AddPrivateDefaultCtor */
  1099. {
  1100. }
  1101. }
  1102. }
  1103. /// <summary>
  1104. /// <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>
  1105. /// </summary>
  1106. /// <java-name>
  1107. /// java/net/ServerSocket
  1108. /// </java-name>
  1109. [Dot42.DexImport("java/net/ServerSocket", AccessFlags = 33)]