/Generated/v3.0/Org.Apache.Http.Impl.cs

https://gitlab.com/Pfhoenix/api · C# · 1273 lines · 617 code · 128 blank · 528 comment · 0 complexity · 8aa6ba5f64462f47a900eb92cd019b66 MD5 · raw file

  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Org.Apache.Http.Impl.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 Org.Apache.Http.Impl
  18. {
  19. /// <summary>
  20. /// <para>Implementation of the metrics interface. </para>
  21. /// </summary>
  22. /// <java-name>
  23. /// org/apache/http/impl/HttpConnectionMetricsImpl
  24. /// </java-name>
  25. [Dot42.DexImport("org/apache/http/impl/HttpConnectionMetricsImpl", AccessFlags = 33)]
  26. public partial class HttpConnectionMetricsImpl : global::Org.Apache.Http.IHttpConnectionMetrics
  27. /* scope: __dot42__ */
  28. {
  29. /// <java-name>
  30. /// REQUEST_COUNT
  31. /// </java-name>
  32. [Dot42.DexImport("REQUEST_COUNT", "Ljava/lang/String;", AccessFlags = 25)]
  33. public const string REQUEST_COUNT = "http.request-count";
  34. /// <java-name>
  35. /// RESPONSE_COUNT
  36. /// </java-name>
  37. [Dot42.DexImport("RESPONSE_COUNT", "Ljava/lang/String;", AccessFlags = 25)]
  38. public const string RESPONSE_COUNT = "http.response-count";
  39. /// <java-name>
  40. /// SENT_BYTES_COUNT
  41. /// </java-name>
  42. [Dot42.DexImport("SENT_BYTES_COUNT", "Ljava/lang/String;", AccessFlags = 25)]
  43. public const string SENT_BYTES_COUNT = "http.sent-bytes-count";
  44. /// <java-name>
  45. /// RECEIVED_BYTES_COUNT
  46. /// </java-name>
  47. [Dot42.DexImport("RECEIVED_BYTES_COUNT", "Ljava/lang/String;", AccessFlags = 25)]
  48. public const string RECEIVED_BYTES_COUNT = "http.received-bytes-count";
  49. [Dot42.DexImport("<init>", "(Lorg/apache/http/io/HttpTransportMetrics;Lorg/apache/http/io/HttpTransportMetric" +
  50. "s;)V", AccessFlags = 1)]
  51. public HttpConnectionMetricsImpl(global::Org.Apache.Http.Io.IHttpTransportMetrics inTransportMetric, global::Org.Apache.Http.Io.IHttpTransportMetrics outTransportMetric) /* MethodBuilder.Create */
  52. {
  53. }
  54. /// <summary>
  55. /// <para>Returns the number of bytes transferred over the connection, 0 if not available. </para>
  56. /// </summary>
  57. /// <java-name>
  58. /// getReceivedBytesCount
  59. /// </java-name>
  60. [Dot42.DexImport("getReceivedBytesCount", "()J", AccessFlags = 1)]
  61. public virtual long GetReceivedBytesCount() /* MethodBuilder.Create */
  62. {
  63. return default(long);
  64. }
  65. /// <summary>
  66. /// <para>Returns the number of bytes transferred over the connection, 0 if not available. </para>
  67. /// </summary>
  68. /// <java-name>
  69. /// getSentBytesCount
  70. /// </java-name>
  71. [Dot42.DexImport("getSentBytesCount", "()J", AccessFlags = 1)]
  72. public virtual long GetSentBytesCount() /* MethodBuilder.Create */
  73. {
  74. return default(long);
  75. }
  76. /// <summary>
  77. /// <para>Returns the number of requests transferred over the connection, 0 if not available. </para>
  78. /// </summary>
  79. /// <java-name>
  80. /// getRequestCount
  81. /// </java-name>
  82. [Dot42.DexImport("getRequestCount", "()J", AccessFlags = 1)]
  83. public virtual long GetRequestCount() /* MethodBuilder.Create */
  84. {
  85. return default(long);
  86. }
  87. /// <java-name>
  88. /// incrementRequestCount
  89. /// </java-name>
  90. [Dot42.DexImport("incrementRequestCount", "()V", AccessFlags = 1)]
  91. public virtual void IncrementRequestCount() /* MethodBuilder.Create */
  92. {
  93. }
  94. /// <summary>
  95. /// <para>Returns the number of responses transferred over the connection, 0 if not available. </para>
  96. /// </summary>
  97. /// <java-name>
  98. /// getResponseCount
  99. /// </java-name>
  100. [Dot42.DexImport("getResponseCount", "()J", AccessFlags = 1)]
  101. public virtual long GetResponseCount() /* MethodBuilder.Create */
  102. {
  103. return default(long);
  104. }
  105. /// <java-name>
  106. /// incrementResponseCount
  107. /// </java-name>
  108. [Dot42.DexImport("incrementResponseCount", "()V", AccessFlags = 1)]
  109. public virtual void IncrementResponseCount() /* MethodBuilder.Create */
  110. {
  111. }
  112. /// <java-name>
  113. /// getMetric
  114. /// </java-name>
  115. [Dot42.DexImport("getMetric", "(Ljava/lang/String;)Ljava/lang/Object;", AccessFlags = 1)]
  116. public virtual object GetMetric(string metricName) /* MethodBuilder.Create */
  117. {
  118. return default(object);
  119. }
  120. /// <java-name>
  121. /// setMetric
  122. /// </java-name>
  123. [Dot42.DexImport("setMetric", "(Ljava/lang/String;Ljava/lang/Object;)V", AccessFlags = 1)]
  124. public virtual void SetMetric(string metricName, object obj) /* MethodBuilder.Create */
  125. {
  126. }
  127. /// <summary>
  128. /// <para>Resets the counts </para>
  129. /// </summary>
  130. /// <java-name>
  131. /// reset
  132. /// </java-name>
  133. [Dot42.DexImport("reset", "()V", AccessFlags = 1)]
  134. public virtual void Reset() /* MethodBuilder.Create */
  135. {
  136. }
  137. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  138. internal HttpConnectionMetricsImpl() /* TypeBuilder.AddDefaultConstructor */
  139. {
  140. }
  141. /// <summary>
  142. /// <para>Returns the number of bytes transferred over the connection, 0 if not available. </para>
  143. /// </summary>
  144. /// <java-name>
  145. /// getReceivedBytesCount
  146. /// </java-name>
  147. public long ReceivedBytesCount
  148. {
  149. [Dot42.DexImport("getReceivedBytesCount", "()J", AccessFlags = 1)]
  150. get{ return GetReceivedBytesCount(); }
  151. }
  152. /// <summary>
  153. /// <para>Returns the number of bytes transferred over the connection, 0 if not available. </para>
  154. /// </summary>
  155. /// <java-name>
  156. /// getSentBytesCount
  157. /// </java-name>
  158. public long SentBytesCount
  159. {
  160. [Dot42.DexImport("getSentBytesCount", "()J", AccessFlags = 1)]
  161. get{ return GetSentBytesCount(); }
  162. }
  163. /// <summary>
  164. /// <para>Returns the number of requests transferred over the connection, 0 if not available. </para>
  165. /// </summary>
  166. /// <java-name>
  167. /// getRequestCount
  168. /// </java-name>
  169. public long RequestCount
  170. {
  171. [Dot42.DexImport("getRequestCount", "()J", AccessFlags = 1)]
  172. get{ return GetRequestCount(); }
  173. }
  174. /// <summary>
  175. /// <para>Returns the number of responses transferred over the connection, 0 if not available. </para>
  176. /// </summary>
  177. /// <java-name>
  178. /// getResponseCount
  179. /// </java-name>
  180. public long ResponseCount
  181. {
  182. [Dot42.DexImport("getResponseCount", "()J", AccessFlags = 1)]
  183. get{ return GetResponseCount(); }
  184. }
  185. }
  186. /// <summary>
  187. /// <para>Default implementation of a client-side HTTP connection.</para><para><para></para><para></para><title>Revision:</title><para>561083 </para></para><para><para>4.0 </para></para>
  188. /// </summary>
  189. /// <java-name>
  190. /// org/apache/http/impl/DefaultHttpClientConnection
  191. /// </java-name>
  192. [Dot42.DexImport("org/apache/http/impl/DefaultHttpClientConnection", AccessFlags = 33)]
  193. public partial class DefaultHttpClientConnection : global::Org.Apache.Http.Impl.SocketHttpClientConnection
  194. /* scope: __dot42__ */
  195. {
  196. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  197. public DefaultHttpClientConnection() /* MethodBuilder.Create */
  198. {
  199. }
  200. /// <java-name>
  201. /// bind
  202. /// </java-name>
  203. [Dot42.DexImport("bind", "(Ljava/net/Socket;Lorg/apache/http/params/HttpParams;)V", AccessFlags = 1)]
  204. public new virtual void Bind(global::Java.Net.Socket socket, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  205. {
  206. }
  207. /// <java-name>
  208. /// toString
  209. /// </java-name>
  210. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  211. public override string ToString() /* MethodBuilder.Create */
  212. {
  213. return default(string);
  214. }
  215. }
  216. /// <summary>
  217. /// <para>Implementation of a client-side HTTP connection that can be bound to a network Socket in order to receive and transmit data.</para><para><para></para><para></para><title>Revision:</title><para>561083 </para></para><para><para>4.0 </para></para>
  218. /// </summary>
  219. /// <java-name>
  220. /// org/apache/http/impl/SocketHttpClientConnection
  221. /// </java-name>
  222. [Dot42.DexImport("org/apache/http/impl/SocketHttpClientConnection", AccessFlags = 33)]
  223. public partial class SocketHttpClientConnection : global::Org.Apache.Http.Impl.AbstractHttpClientConnection, global::Org.Apache.Http.IHttpInetConnection
  224. /* scope: __dot42__ */
  225. {
  226. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  227. public SocketHttpClientConnection() /* MethodBuilder.Create */
  228. {
  229. }
  230. /// <java-name>
  231. /// assertNotOpen
  232. /// </java-name>
  233. [Dot42.DexImport("assertNotOpen", "()V", AccessFlags = 4)]
  234. protected internal virtual void AssertNotOpen() /* MethodBuilder.Create */
  235. {
  236. }
  237. /// <java-name>
  238. /// assertOpen
  239. /// </java-name>
  240. [Dot42.DexImport("assertOpen", "()V", AccessFlags = 4)]
  241. protected internal override void AssertOpen() /* MethodBuilder.Create */
  242. {
  243. }
  244. /// <java-name>
  245. /// createSessionInputBuffer
  246. /// </java-name>
  247. [Dot42.DexImport("createSessionInputBuffer", "(Ljava/net/Socket;ILorg/apache/http/params/HttpParams;)Lorg/apache/http/io/Sessio" +
  248. "nInputBuffer;", AccessFlags = 4)]
  249. protected internal virtual global::Org.Apache.Http.Io.ISessionInputBuffer CreateSessionInputBuffer(global::Java.Net.Socket socket, int buffersize, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  250. {
  251. return default(global::Org.Apache.Http.Io.ISessionInputBuffer);
  252. }
  253. /// <java-name>
  254. /// createSessionOutputBuffer
  255. /// </java-name>
  256. [Dot42.DexImport("createSessionOutputBuffer", "(Ljava/net/Socket;ILorg/apache/http/params/HttpParams;)Lorg/apache/http/io/Sessio" +
  257. "nOutputBuffer;", AccessFlags = 4)]
  258. protected internal virtual global::Org.Apache.Http.Io.ISessionOutputBuffer CreateSessionOutputBuffer(global::Java.Net.Socket socket, int buffersize, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  259. {
  260. return default(global::Org.Apache.Http.Io.ISessionOutputBuffer);
  261. }
  262. /// <java-name>
  263. /// bind
  264. /// </java-name>
  265. [Dot42.DexImport("bind", "(Ljava/net/Socket;Lorg/apache/http/params/HttpParams;)V", AccessFlags = 4)]
  266. protected internal virtual void Bind(global::Java.Net.Socket socket, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  267. {
  268. }
  269. /// <summary>
  270. /// <para>Checks if this connection is open. </para>
  271. /// </summary>
  272. /// <returns>
  273. /// <para>true if it is open, false if it is closed. </para>
  274. /// </returns>
  275. /// <java-name>
  276. /// isOpen
  277. /// </java-name>
  278. [Dot42.DexImport("isOpen", "()Z", AccessFlags = 1)]
  279. public override bool IsOpen() /* MethodBuilder.Create */
  280. {
  281. return default(bool);
  282. }
  283. /// <java-name>
  284. /// getSocket
  285. /// </java-name>
  286. [Dot42.DexImport("getSocket", "()Ljava/net/Socket;", AccessFlags = 4)]
  287. protected internal virtual global::Java.Net.Socket GetSocket() /* MethodBuilder.Create */
  288. {
  289. return default(global::Java.Net.Socket);
  290. }
  291. /// <java-name>
  292. /// getLocalAddress
  293. /// </java-name>
  294. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  295. public virtual global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */
  296. {
  297. return default(global::Java.Net.InetAddress);
  298. }
  299. /// <java-name>
  300. /// getLocalPort
  301. /// </java-name>
  302. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  303. public virtual int GetLocalPort() /* MethodBuilder.Create */
  304. {
  305. return default(int);
  306. }
  307. /// <java-name>
  308. /// getRemoteAddress
  309. /// </java-name>
  310. [Dot42.DexImport("getRemoteAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  311. public virtual global::Java.Net.InetAddress GetRemoteAddress() /* MethodBuilder.Create */
  312. {
  313. return default(global::Java.Net.InetAddress);
  314. }
  315. /// <java-name>
  316. /// getRemotePort
  317. /// </java-name>
  318. [Dot42.DexImport("getRemotePort", "()I", AccessFlags = 1)]
  319. public virtual int GetRemotePort() /* MethodBuilder.Create */
  320. {
  321. return default(int);
  322. }
  323. /// <summary>
  324. /// <para>Sets the socket timeout value.</para><para></para>
  325. /// </summary>
  326. /// <java-name>
  327. /// setSocketTimeout
  328. /// </java-name>
  329. [Dot42.DexImport("setSocketTimeout", "(I)V", AccessFlags = 1)]
  330. public override void SetSocketTimeout(int timeout) /* MethodBuilder.Create */
  331. {
  332. }
  333. /// <summary>
  334. /// <para>Returns the socket timeout value.</para><para></para>
  335. /// </summary>
  336. /// <returns>
  337. /// <para>positive value in milliseconds if a timeout is set, <code>0</code> if timeout is disabled or <code>-1</code> if timeout is undefined. </para>
  338. /// </returns>
  339. /// <java-name>
  340. /// getSocketTimeout
  341. /// </java-name>
  342. [Dot42.DexImport("getSocketTimeout", "()I", AccessFlags = 1)]
  343. public override int GetSocketTimeout() /* MethodBuilder.Create */
  344. {
  345. return default(int);
  346. }
  347. /// <summary>
  348. /// <para>Force-closes this connection. This is the only method of a connection which may be called from a different thread to terminate the connection. This method will not attempt to flush the transmitter's internal buffer prior to closing the underlying socket. </para>
  349. /// </summary>
  350. /// <java-name>
  351. /// shutdown
  352. /// </java-name>
  353. [Dot42.DexImport("shutdown", "()V", AccessFlags = 1)]
  354. public override void Shutdown() /* MethodBuilder.Create */
  355. {
  356. }
  357. /// <summary>
  358. /// <para>Closes this connection gracefully. This method will attempt to flush the transmitter's internal buffer prior to closing the underlying socket. This method MUST NOT be called from a different thread to force shutdown of the connection. Use shutdown instead. </para>
  359. /// </summary>
  360. /// <java-name>
  361. /// close
  362. /// </java-name>
  363. [Dot42.DexImport("close", "()V", AccessFlags = 1)]
  364. public override void Close() /* MethodBuilder.Create */
  365. {
  366. }
  367. [Dot42.DexImport("org/apache/http/HttpConnection", "isStale", "()Z", AccessFlags = 1025)]
  368. public override bool IsStale() /* TypeBuilder.AddAbstractInterfaceMethods */
  369. {
  370. return default(bool);
  371. }
  372. [Dot42.DexImport("org/apache/http/HttpConnection", "getMetrics", "()Lorg/apache/http/HttpConnectionMetrics;", AccessFlags = 1025)]
  373. public override global::Org.Apache.Http.IHttpConnectionMetrics GetMetrics() /* TypeBuilder.AddAbstractInterfaceMethods */
  374. {
  375. return default(global::Org.Apache.Http.IHttpConnectionMetrics);
  376. }
  377. /// <java-name>
  378. /// getSocket
  379. /// </java-name>
  380. protected internal global::Java.Net.Socket Socket
  381. {
  382. [Dot42.DexImport("getSocket", "()Ljava/net/Socket;", AccessFlags = 4)]
  383. get{ return GetSocket(); }
  384. }
  385. /// <java-name>
  386. /// getLocalAddress
  387. /// </java-name>
  388. public global::Java.Net.InetAddress LocalAddress
  389. {
  390. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  391. get{ return GetLocalAddress(); }
  392. }
  393. /// <java-name>
  394. /// getLocalPort
  395. /// </java-name>
  396. public int LocalPort
  397. {
  398. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  399. get{ return GetLocalPort(); }
  400. }
  401. /// <java-name>
  402. /// getRemoteAddress
  403. /// </java-name>
  404. public global::Java.Net.InetAddress RemoteAddress
  405. {
  406. [Dot42.DexImport("getRemoteAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  407. get{ return GetRemoteAddress(); }
  408. }
  409. /// <java-name>
  410. /// getRemotePort
  411. /// </java-name>
  412. public int RemotePort
  413. {
  414. [Dot42.DexImport("getRemotePort", "()I", AccessFlags = 1)]
  415. get{ return GetRemotePort(); }
  416. }
  417. /// <summary>
  418. /// <para>Returns the socket timeout value.</para><para></para>
  419. /// </summary>
  420. /// <returns>
  421. /// <para>positive value in milliseconds if a timeout is set, <code>0</code> if timeout is disabled or <code>-1</code> if timeout is undefined. </para>
  422. /// </returns>
  423. /// <java-name>
  424. /// getSocketTimeout
  425. /// </java-name>
  426. public int SocketTimeout
  427. {
  428. [Dot42.DexImport("getSocketTimeout", "()I", AccessFlags = 1)]
  429. get{ return GetSocketTimeout(); }
  430. [Dot42.DexImport("setSocketTimeout", "(I)V", AccessFlags = 1)]
  431. set{ SetSocketTimeout(value); }
  432. }
  433. public global::Org.Apache.Http.IHttpConnectionMetrics Metrics
  434. {
  435. [Dot42.DexImport("org/apache/http/HttpConnection", "getMetrics", "()Lorg/apache/http/HttpConnectionMetrics;", AccessFlags = 1025)]
  436. get{ return GetMetrics(); }
  437. }
  438. }
  439. /// <summary>
  440. /// <para>Abstract server-side HTTP connection capable of transmitting and receiving data using arbitrary SessionInputBuffer and SessionOutputBuffer</para><para><para></para><para></para><title>Revision:</title><para>618017 </para></para><para><para>4.0 </para></para>
  441. /// </summary>
  442. /// <java-name>
  443. /// org/apache/http/impl/AbstractHttpServerConnection
  444. /// </java-name>
  445. [Dot42.DexImport("org/apache/http/impl/AbstractHttpServerConnection", AccessFlags = 1057)]
  446. public abstract partial class AbstractHttpServerConnection : global::Org.Apache.Http.IHttpServerConnection
  447. /* scope: __dot42__ */
  448. {
  449. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  450. public AbstractHttpServerConnection() /* MethodBuilder.Create */
  451. {
  452. }
  453. /// <java-name>
  454. /// assertOpen
  455. /// </java-name>
  456. [Dot42.DexImport("assertOpen", "()V", AccessFlags = 1028)]
  457. protected internal abstract void AssertOpen() /* MethodBuilder.Create */ ;
  458. /// <java-name>
  459. /// createEntityDeserializer
  460. /// </java-name>
  461. [Dot42.DexImport("createEntityDeserializer", "()Lorg/apache/http/impl/entity/EntityDeserializer;", AccessFlags = 4)]
  462. protected internal virtual global::Org.Apache.Http.Impl.Entity.EntityDeserializer CreateEntityDeserializer() /* MethodBuilder.Create */
  463. {
  464. return default(global::Org.Apache.Http.Impl.Entity.EntityDeserializer);
  465. }
  466. /// <java-name>
  467. /// createEntitySerializer
  468. /// </java-name>
  469. [Dot42.DexImport("createEntitySerializer", "()Lorg/apache/http/impl/entity/EntitySerializer;", AccessFlags = 4)]
  470. protected internal virtual global::Org.Apache.Http.Impl.Entity.EntitySerializer CreateEntitySerializer() /* MethodBuilder.Create */
  471. {
  472. return default(global::Org.Apache.Http.Impl.Entity.EntitySerializer);
  473. }
  474. /// <java-name>
  475. /// createHttpRequestFactory
  476. /// </java-name>
  477. [Dot42.DexImport("createHttpRequestFactory", "()Lorg/apache/http/HttpRequestFactory;", AccessFlags = 4)]
  478. protected internal virtual global::Org.Apache.Http.IHttpRequestFactory CreateHttpRequestFactory() /* MethodBuilder.Create */
  479. {
  480. return default(global::Org.Apache.Http.IHttpRequestFactory);
  481. }
  482. /// <java-name>
  483. /// createRequestParser
  484. /// </java-name>
  485. [Dot42.DexImport("createRequestParser", "(Lorg/apache/http/io/SessionInputBuffer;Lorg/apache/http/HttpRequestFactory;Lorg/" +
  486. "apache/http/params/HttpParams;)Lorg/apache/http/io/HttpMessageParser;", AccessFlags = 4)]
  487. protected internal virtual global::Org.Apache.Http.Io.IHttpMessageParser CreateRequestParser(global::Org.Apache.Http.Io.ISessionInputBuffer buffer, global::Org.Apache.Http.IHttpRequestFactory requestFactory, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  488. {
  489. return default(global::Org.Apache.Http.Io.IHttpMessageParser);
  490. }
  491. /// <java-name>
  492. /// createResponseWriter
  493. /// </java-name>
  494. [Dot42.DexImport("createResponseWriter", "(Lorg/apache/http/io/SessionOutputBuffer;Lorg/apache/http/params/HttpParams;)Lorg" +
  495. "/apache/http/io/HttpMessageWriter;", AccessFlags = 4)]
  496. protected internal virtual global::Org.Apache.Http.Io.IHttpMessageWriter CreateResponseWriter(global::Org.Apache.Http.Io.ISessionOutputBuffer buffer, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  497. {
  498. return default(global::Org.Apache.Http.Io.IHttpMessageWriter);
  499. }
  500. /// <java-name>
  501. /// init
  502. /// </java-name>
  503. [Dot42.DexImport("init", "(Lorg/apache/http/io/SessionInputBuffer;Lorg/apache/http/io/SessionOutputBuffer;L" +
  504. "org/apache/http/params/HttpParams;)V", AccessFlags = 4)]
  505. protected internal virtual void Init(global::Org.Apache.Http.Io.ISessionInputBuffer inbuffer, global::Org.Apache.Http.Io.ISessionOutputBuffer outbuffer, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  506. {
  507. }
  508. /// <summary>
  509. /// <para>Receives the request line and all headers available from this connection. The caller should examine the returned request and decide if to receive a request entity as well.</para><para></para>
  510. /// </summary>
  511. /// <returns>
  512. /// <para>a new HttpRequest object whose request line and headers are initialized. </para>
  513. /// </returns>
  514. /// <java-name>
  515. /// receiveRequestHeader
  516. /// </java-name>
  517. [Dot42.DexImport("receiveRequestHeader", "()Lorg/apache/http/HttpRequest;", AccessFlags = 1)]
  518. public virtual global::Org.Apache.Http.IHttpRequest ReceiveRequestHeader() /* MethodBuilder.Create */
  519. {
  520. return default(global::Org.Apache.Http.IHttpRequest);
  521. }
  522. /// <java-name>
  523. /// receiveRequestEntity
  524. /// </java-name>
  525. [Dot42.DexImport("receiveRequestEntity", "(Lorg/apache/http/HttpEntityEnclosingRequest;)V", AccessFlags = 1)]
  526. public virtual void ReceiveRequestEntity(global::Org.Apache.Http.IHttpEntityEnclosingRequest request) /* MethodBuilder.Create */
  527. {
  528. }
  529. /// <java-name>
  530. /// doFlush
  531. /// </java-name>
  532. [Dot42.DexImport("doFlush", "()V", AccessFlags = 4)]
  533. protected internal virtual void DoFlush() /* MethodBuilder.Create */
  534. {
  535. }
  536. /// <summary>
  537. /// <para>Sends all pending buffered data over this connection. </para>
  538. /// </summary>
  539. /// <java-name>
  540. /// flush
  541. /// </java-name>
  542. [Dot42.DexImport("flush", "()V", AccessFlags = 1)]
  543. public virtual void Flush() /* MethodBuilder.Create */
  544. {
  545. }
  546. /// <java-name>
  547. /// sendResponseHeader
  548. /// </java-name>
  549. [Dot42.DexImport("sendResponseHeader", "(Lorg/apache/http/HttpResponse;)V", AccessFlags = 1)]
  550. public virtual void SendResponseHeader(global::Org.Apache.Http.IHttpResponse response) /* MethodBuilder.Create */
  551. {
  552. }
  553. /// <java-name>
  554. /// sendResponseEntity
  555. /// </java-name>
  556. [Dot42.DexImport("sendResponseEntity", "(Lorg/apache/http/HttpResponse;)V", AccessFlags = 1)]
  557. public virtual void SendResponseEntity(global::Org.Apache.Http.IHttpResponse response) /* MethodBuilder.Create */
  558. {
  559. }
  560. /// <summary>
  561. /// <para>Checks whether this connection has gone down. Network connections may get closed during some time of inactivity for several reasons. The next time a read is attempted on such a connection it will throw an IOException. This method tries to alleviate this inconvenience by trying to find out if a connection is still usable. Implementations may do that by attempting a read with a very small timeout. Thus this method may block for a small amount of time before returning a result. It is therefore an <b>expensive</b> operation.</para><para></para>
  562. /// </summary>
  563. /// <returns>
  564. /// <para><code>true</code> if attempts to use this connection are likely to succeed, or <code>false</code> if they are likely to fail and this connection should be closed </para>
  565. /// </returns>
  566. /// <java-name>
  567. /// isStale
  568. /// </java-name>
  569. [Dot42.DexImport("isStale", "()Z", AccessFlags = 1)]
  570. public virtual bool IsStale() /* MethodBuilder.Create */
  571. {
  572. return default(bool);
  573. }
  574. /// <summary>
  575. /// <para>Returns a collection of connection metrcis </para>
  576. /// </summary>
  577. /// <returns>
  578. /// <para>HttpConnectionMetrics </para>
  579. /// </returns>
  580. /// <java-name>
  581. /// getMetrics
  582. /// </java-name>
  583. [Dot42.DexImport("getMetrics", "()Lorg/apache/http/HttpConnectionMetrics;", AccessFlags = 1)]
  584. public virtual global::Org.Apache.Http.IHttpConnectionMetrics GetMetrics() /* MethodBuilder.Create */
  585. {
  586. return default(global::Org.Apache.Http.IHttpConnectionMetrics);
  587. }
  588. [Dot42.DexImport("org/apache/http/HttpConnection", "close", "()V", AccessFlags = 1025)]
  589. public virtual void Close() /* TypeBuilder.AddAbstractInterfaceMethods */
  590. {
  591. }
  592. [Dot42.DexImport("org/apache/http/HttpConnection", "isOpen", "()Z", AccessFlags = 1025)]
  593. public virtual bool IsOpen() /* TypeBuilder.AddAbstractInterfaceMethods */
  594. {
  595. return default(bool);
  596. }
  597. [Dot42.DexImport("org/apache/http/HttpConnection", "setSocketTimeout", "(I)V", AccessFlags = 1025)]
  598. public virtual void SetSocketTimeout(int timeout) /* TypeBuilder.AddAbstractInterfaceMethods */
  599. {
  600. }
  601. [Dot42.DexImport("org/apache/http/HttpConnection", "getSocketTimeout", "()I", AccessFlags = 1025)]
  602. public virtual int GetSocketTimeout() /* TypeBuilder.AddAbstractInterfaceMethods */
  603. {
  604. return default(int);
  605. }
  606. [Dot42.DexImport("org/apache/http/HttpConnection", "shutdown", "()V", AccessFlags = 1025)]
  607. public virtual void Shutdown() /* TypeBuilder.AddAbstractInterfaceMethods */
  608. {
  609. }
  610. /// <summary>
  611. /// <para>Returns a collection of connection metrcis </para>
  612. /// </summary>
  613. /// <returns>
  614. /// <para>HttpConnectionMetrics </para>
  615. /// </returns>
  616. /// <java-name>
  617. /// getMetrics
  618. /// </java-name>
  619. public global::Org.Apache.Http.IHttpConnectionMetrics Metrics
  620. {
  621. [Dot42.DexImport("getMetrics", "()Lorg/apache/http/HttpConnectionMetrics;", AccessFlags = 1)]
  622. get{ return GetMetrics(); }
  623. }
  624. public int SocketTimeout
  625. {
  626. [Dot42.DexImport("org/apache/http/HttpConnection", "getSocketTimeout", "()I", AccessFlags = 1025)]
  627. get{ return GetSocketTimeout(); }
  628. [Dot42.DexImport("org/apache/http/HttpConnection", "setSocketTimeout", "(I)V", AccessFlags = 1025)]
  629. set{ SetSocketTimeout(value); }
  630. }
  631. }
  632. /// <summary>
  633. /// <para>A strategy that never re-uses a connection.</para><para><para></para><para></para><title>Revision:</title><para>502684 </para></para><para><para>4.0 </para></para>
  634. /// </summary>
  635. /// <java-name>
  636. /// org/apache/http/impl/NoConnectionReuseStrategy
  637. /// </java-name>
  638. [Dot42.DexImport("org/apache/http/impl/NoConnectionReuseStrategy", AccessFlags = 33)]
  639. public partial class NoConnectionReuseStrategy : global::Org.Apache.Http.IConnectionReuseStrategy
  640. /* scope: __dot42__ */
  641. {
  642. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  643. public NoConnectionReuseStrategy() /* MethodBuilder.Create */
  644. {
  645. }
  646. /// <java-name>
  647. /// keepAlive
  648. /// </java-name>
  649. [Dot42.DexImport("keepAlive", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z", AccessFlags = 1)]
  650. public virtual bool KeepAlive(global::Org.Apache.Http.IHttpResponse response, global::Org.Apache.Http.Protocol.IHttpContext context) /* MethodBuilder.Create */
  651. {
  652. return default(bool);
  653. }
  654. }
  655. /// <summary>
  656. /// <para>English reason phrases for HTTP status codes. All status codes defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and RFC2518 (WebDAV) are supported.</para><para><para>Unascribed </para><simplesectsep></simplesectsep><para> </para><simplesectsep></simplesectsep><para></para><para></para><title>Revision:</title><para>505744 </para></para>
  657. /// </summary>
  658. /// <java-name>
  659. /// org/apache/http/impl/EnglishReasonPhraseCatalog
  660. /// </java-name>
  661. [Dot42.DexImport("org/apache/http/impl/EnglishReasonPhraseCatalog", AccessFlags = 33)]
  662. public partial class EnglishReasonPhraseCatalog : global::Org.Apache.Http.IReasonPhraseCatalog
  663. /* scope: __dot42__ */
  664. {
  665. /// <summary>
  666. /// <para>The default instance of this catalog. This catalog is thread safe, so there typically is no need to create other instances. </para>
  667. /// </summary>
  668. /// <java-name>
  669. /// INSTANCE
  670. /// </java-name>
  671. [Dot42.DexImport("INSTANCE", "Lorg/apache/http/impl/EnglishReasonPhraseCatalog;", AccessFlags = 25)]
  672. public static readonly global::Org.Apache.Http.Impl.EnglishReasonPhraseCatalog INSTANCE;
  673. /// <summary>
  674. /// <para>Restricted default constructor, for derived classes. If you need an instance of this class, use INSTANCE. </para>
  675. /// </summary>
  676. [Dot42.DexImport("<init>", "()V", AccessFlags = 4)]
  677. protected internal EnglishReasonPhraseCatalog() /* MethodBuilder.Create */
  678. {
  679. }
  680. /// <summary>
  681. /// <para>Obtains the reason phrase for a status code.</para><para></para>
  682. /// </summary>
  683. /// <returns>
  684. /// <para>the reason phrase, or <code>null</code> </para>
  685. /// </returns>
  686. /// <java-name>
  687. /// getReason
  688. /// </java-name>
  689. [Dot42.DexImport("getReason", "(ILjava/util/Locale;)Ljava/lang/String;", AccessFlags = 1)]
  690. public virtual string GetReason(int status, global::Java.Util.Locale loc) /* MethodBuilder.Create */
  691. {
  692. return default(string);
  693. }
  694. }
  695. /// <summary>
  696. /// <para>Abstract client-side HTTP connection capable of transmitting and receiving data using arbitrary SessionInputBuffer and SessionOutputBuffer</para><para><para></para><para></para><title>Revision:</title><para>627457 </para></para><para><para>4.0 </para></para>
  697. /// </summary>
  698. /// <java-name>
  699. /// org/apache/http/impl/AbstractHttpClientConnection
  700. /// </java-name>
  701. [Dot42.DexImport("org/apache/http/impl/AbstractHttpClientConnection", AccessFlags = 1057)]
  702. public abstract partial class AbstractHttpClientConnection : global::Org.Apache.Http.IHttpClientConnection
  703. /* scope: __dot42__ */
  704. {
  705. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  706. public AbstractHttpClientConnection() /* MethodBuilder.Create */
  707. {
  708. }
  709. /// <java-name>
  710. /// assertOpen
  711. /// </java-name>
  712. [Dot42.DexImport("assertOpen", "()V", AccessFlags = 1028)]
  713. protected internal abstract void AssertOpen() /* MethodBuilder.Create */ ;
  714. /// <java-name>
  715. /// createEntityDeserializer
  716. /// </java-name>
  717. [Dot42.DexImport("createEntityDeserializer", "()Lorg/apache/http/impl/entity/EntityDeserializer;", AccessFlags = 4)]
  718. protected internal virtual global::Org.Apache.Http.Impl.Entity.EntityDeserializer CreateEntityDeserializer() /* MethodBuilder.Create */
  719. {
  720. return default(global::Org.Apache.Http.Impl.Entity.EntityDeserializer);
  721. }
  722. /// <java-name>
  723. /// createEntitySerializer
  724. /// </java-name>
  725. [Dot42.DexImport("createEntitySerializer", "()Lorg/apache/http/impl/entity/EntitySerializer;", AccessFlags = 4)]
  726. protected internal virtual global::Org.Apache.Http.Impl.Entity.EntitySerializer CreateEntitySerializer() /* MethodBuilder.Create */
  727. {
  728. return default(global::Org.Apache.Http.Impl.Entity.EntitySerializer);
  729. }
  730. /// <java-name>
  731. /// createHttpResponseFactory
  732. /// </java-name>
  733. [Dot42.DexImport("createHttpResponseFactory", "()Lorg/apache/http/HttpResponseFactory;", AccessFlags = 4)]
  734. protected internal virtual global::Org.Apache.Http.IHttpResponseFactory CreateHttpResponseFactory() /* MethodBuilder.Create */
  735. {
  736. return default(global::Org.Apache.Http.IHttpResponseFactory);
  737. }
  738. /// <java-name>
  739. /// createResponseParser
  740. /// </java-name>
  741. [Dot42.DexImport("createResponseParser", "(Lorg/apache/http/io/SessionInputBuffer;Lorg/apache/http/HttpResponseFactory;Lorg" +
  742. "/apache/http/params/HttpParams;)Lorg/apache/http/io/HttpMessageParser;", AccessFlags = 4)]
  743. protected internal virtual global::Org.Apache.Http.Io.IHttpMessageParser CreateResponseParser(global::Org.Apache.Http.Io.ISessionInputBuffer buffer, global::Org.Apache.Http.IHttpResponseFactory responseFactory, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  744. {
  745. return default(global::Org.Apache.Http.Io.IHttpMessageParser);
  746. }
  747. /// <java-name>
  748. /// createRequestWriter
  749. /// </java-name>
  750. [Dot42.DexImport("createRequestWriter", "(Lorg/apache/http/io/SessionOutputBuffer;Lorg/apache/http/params/HttpParams;)Lorg" +
  751. "/apache/http/io/HttpMessageWriter;", AccessFlags = 4)]
  752. protected internal virtual global::Org.Apache.Http.Io.IHttpMessageWriter CreateRequestWriter(global::Org.Apache.Http.Io.ISessionOutputBuffer buffer, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  753. {
  754. return default(global::Org.Apache.Http.Io.IHttpMessageWriter);
  755. }
  756. /// <java-name>
  757. /// init
  758. /// </java-name>
  759. [Dot42.DexImport("init", "(Lorg/apache/http/io/SessionInputBuffer;Lorg/apache/http/io/SessionOutputBuffer;L" +
  760. "org/apache/http/params/HttpParams;)V", AccessFlags = 4)]
  761. protected internal virtual void Init(global::Org.Apache.Http.Io.ISessionInputBuffer inbuffer, global::Org.Apache.Http.Io.ISessionOutputBuffer outbuffer, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  762. {
  763. }
  764. /// <summary>
  765. /// <para>Checks if response data is available from the connection. May wait for the specified time until some data becomes available. Note that some implementations may completely ignore the timeout parameter.</para><para></para>
  766. /// </summary>
  767. /// <returns>
  768. /// <para>true if data is available; false if there was no data available even after waiting for <code>timeout</code> milliseconds. </para>
  769. /// </returns>
  770. /// <java-name>
  771. /// isResponseAvailable
  772. /// </java-name>
  773. [Dot42.DexImport("isResponseAvailable", "(I)Z", AccessFlags = 1)]
  774. public virtual bool IsResponseAvailable(int timeout) /* MethodBuilder.Create */
  775. {
  776. return default(bool);
  777. }
  778. /// <java-name>
  779. /// sendRequestHeader
  780. /// </java-name>
  781. [Dot42.DexImport("sendRequestHeader", "(Lorg/apache/http/HttpRequest;)V", AccessFlags = 1)]
  782. public virtual void SendRequestHeader(global::Org.Apache.Http.IHttpRequest request) /* MethodBuilder.Create */
  783. {
  784. }
  785. /// <java-name>
  786. /// sendRequestEntity
  787. /// </java-name>
  788. [Dot42.DexImport("sendRequestEntity", "(Lorg/apache/http/HttpEntityEnclosingRequest;)V", AccessFlags = 1)]
  789. public virtual void SendRequestEntity(global::Org.Apache.Http.IHttpEntityEnclosingRequest request) /* MethodBuilder.Create */
  790. {
  791. }
  792. /// <java-name>
  793. /// doFlush
  794. /// </java-name>
  795. [Dot42.DexImport("doFlush", "()V", AccessFlags = 4)]
  796. protected internal virtual void DoFlush() /* MethodBuilder.Create */
  797. {
  798. }
  799. /// <summary>
  800. /// <para>Writes out all pending buffered data over the open connection.</para><para></para>
  801. /// </summary>
  802. /// <java-name>
  803. /// flush
  804. /// </java-name>
  805. [Dot42.DexImport("flush", "()V", AccessFlags = 1)]
  806. public virtual void Flush() /* MethodBuilder.Create */
  807. {
  808. }
  809. /// <summary>
  810. /// <para>Receives the request line and headers of the next response available from this connection. The caller should examine the HttpResponse object to find out if it should try to receive a response entity as well.</para><para></para>
  811. /// </summary>
  812. /// <returns>
  813. /// <para>a new HttpResponse object with status line and headers initialized. </para>
  814. /// </returns>
  815. /// <java-name>
  816. /// receiveResponseHeader
  817. /// </java-name>
  818. [Dot42.DexImport("receiveResponseHeader", "()Lorg/apache/http/HttpResponse;", AccessFlags = 1)]
  819. public virtual global::Org.Apache.Http.IHttpResponse ReceiveResponseHeader() /* MethodBuilder.Create */
  820. {
  821. return default(global::Org.Apache.Http.IHttpResponse);
  822. }
  823. /// <java-name>
  824. /// receiveResponseEntity
  825. /// </java-name>
  826. [Dot42.DexImport("receiveResponseEntity", "(Lorg/apache/http/HttpResponse;)V", AccessFlags = 1)]
  827. public virtual void ReceiveResponseEntity(global::Org.Apache.Http.IHttpResponse response) /* MethodBuilder.Create */
  828. {
  829. }
  830. /// <summary>
  831. /// <para>Checks whether this connection has gone down. Network connections may get closed during some time of inactivity for several reasons. The next time a read is attempted on such a connection it will throw an IOException. This method tries to alleviate this inconvenience by trying to find out if a connection is still usable. Implementations may do that by attempting a read with a very small timeout. Thus this method may block for a small amount of time before returning a result. It is therefore an <b>expensive</b> operation.</para><para></para>
  832. /// </summary>
  833. /// <returns>
  834. /// <para><code>true</code> if attempts to use this connection are likely to succeed, or <code>false</code> if they are likely to fail and this connection should be closed </para>
  835. /// </returns>
  836. /// <java-name>
  837. /// isStale
  838. /// </java-name>
  839. [Dot42.DexImport("isStale", "()Z", AccessFlags = 1)]
  840. public virtual bool IsStale() /* MethodBuilder.Create */
  841. {
  842. return default(bool);
  843. }
  844. /// <summary>
  845. /// <para>Returns a collection of connection metrcis </para>
  846. /// </summary>
  847. /// <returns>
  848. /// <para>HttpConnectionMetrics </para>
  849. /// </returns>
  850. /// <java-name>
  851. /// getMetrics
  852. /// </java-name>
  853. [Dot42.DexImport("getMetrics", "()Lorg/apache/http/HttpConnectionMetrics;", AccessFlags = 1)]
  854. public virtual global::Org.Apache.Http.IHttpConnectionMetrics GetMetrics() /* MethodBuilder.Create */
  855. {
  856. return default(global::Org.Apache.Http.IHttpConnectionMetrics);
  857. }
  858. [Dot42.DexImport("org/apache/http/HttpConnection", "close", "()V", AccessFlags = 1025)]
  859. public virtual void Close() /* TypeBuilder.AddAbstractInterfaceMethods */
  860. {
  861. }
  862. [Dot42.DexImport("org/apache/http/HttpConnection", "isOpen", "()Z", AccessFlags = 1025)]
  863. public virtual bool IsOpen() /* TypeBuilder.AddAbstractInterfaceMethods */
  864. {
  865. return default(bool);
  866. }
  867. [Dot42.DexImport("org/apache/http/HttpConnection", "setSocketTimeout", "(I)V", AccessFlags = 1025)]
  868. public virtual void SetSocketTimeout(int timeout) /* TypeBuilder.AddAbstractInterfaceMethods */
  869. {
  870. }
  871. [Dot42.DexImport("org/apache/http/HttpConnection", "getSocketTimeout", "()I", AccessFlags = 1025)]
  872. public virtual int GetSocketTimeout() /* TypeBuilder.AddAbstractInterfaceMethods */
  873. {
  874. return default(int);
  875. }
  876. [Dot42.DexImport("org/apache/http/HttpConnection", "shutdown", "()V", AccessFlags = 1025)]
  877. public virtual void Shutdown() /* TypeBuilder.AddAbstractInterfaceMethods */
  878. {
  879. }
  880. /// <summary>
  881. /// <para>Returns a collection of connection metrcis </para>
  882. /// </summary>
  883. /// <returns>
  884. /// <para>HttpConnectionMetrics </para>
  885. /// </returns>
  886. /// <java-name>
  887. /// getMetrics
  888. /// </java-name>
  889. public global::Org.Apache.Http.IHttpConnectionMetrics Metrics
  890. {
  891. [Dot42.DexImport("getMetrics", "()Lorg/apache/http/HttpConnectionMetrics;", AccessFlags = 1)]
  892. get{ return GetMetrics(); }
  893. }
  894. public int SocketTimeout
  895. {
  896. [Dot42.DexImport("org/apache/http/HttpConnection", "getSocketTimeout", "()I", AccessFlags = 1025)]
  897. get{ return GetSocketTimeout(); }
  898. [Dot42.DexImport("org/apache/http/HttpConnection", "setSocketTimeout", "(I)V", AccessFlags = 1025)]
  899. set{ SetSocketTimeout(value); }
  900. }
  901. }
  902. /// <summary>
  903. /// <para>Default implementation of a factory for creating request objects.</para><para><para></para><para></para><title>Revision:</title><para>618367 </para></para><para><para>4.0 </para></para>
  904. /// </summary>
  905. /// <java-name>
  906. /// org/apache/http/impl/DefaultHttpRequestFactory
  907. /// </java-name>
  908. [Dot42.DexImport("org/apache/http/impl/DefaultHttpRequestFactory", AccessFlags = 33)]
  909. public partial class DefaultHttpRequestFactory : global::Org.Apache.Http.IHttpRequestFactory
  910. /* scope: __dot42__ */
  911. {
  912. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  913. public DefaultHttpRequestFactory() /* MethodBuilder.Create */
  914. {
  915. }
  916. /// <java-name>
  917. /// newHttpRequest
  918. /// </java-name>
  919. [Dot42.DexImport("newHttpRequest", "(Lorg/apache/http/RequestLine;)Lorg/apache/http/HttpRequest;", AccessFlags = 1)]
  920. public virtual global::Org.Apache.Http.IHttpRequest NewHttpRequest(global::Org.Apache.Http.IRequestLine requestline) /* MethodBuilder.Create */
  921. {
  922. return default(global::Org.Apache.Http.IHttpRequest);
  923. }
  924. /// <java-name>
  925. /// newHttpRequest
  926. /// </java-name>
  927. [Dot42.DexImport("newHttpRequest", "(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/http/HttpRequest;", AccessFlags = 1)]
  928. public virtual global::Org.Apache.Http.IHttpRequest NewHttpRequest(string method, string uri) /* MethodBuilder.Create */
  929. {
  930. return default(global::Org.Apache.Http.IHttpRequest);
  931. }
  932. }
  933. /// <summary>
  934. /// <para>Implementation of a server-side HTTP connection that can be bound to a network Socket in order to receive and transmit data.</para><para><para></para><para></para><title>Revision:</title><para>561083 </para></para><para><para>4.0 </para></para>
  935. /// </summary>
  936. /// <java-name>
  937. /// org/apache/http/impl/SocketHttpServerConnection
  938. /// </java-name>
  939. [Dot42.DexImport("org/apache/http/impl/SocketHttpServerConnection", AccessFlags = 33)]
  940. public partial class SocketHttpServerConnection : global::Org.Apache.Http.Impl.AbstractHttpServerConnection, global::Org.Apache.Http.IHttpInetConnection
  941. /* scope: __dot42__ */
  942. {
  943. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  944. public SocketHttpServerConnection() /* MethodBuilder.Create */
  945. {
  946. }
  947. /// <java-name>
  948. /// assertNotOpen
  949. /// </java-name>
  950. [Dot42.DexImport("assertNotOpen", "()V", AccessFlags = 4)]
  951. protected internal virtual void AssertNotOpen() /* MethodBuilder.Create */
  952. {
  953. }
  954. /// <java-name>
  955. /// assertOpen
  956. /// </java-name>
  957. [Dot42.DexImport("assertOpen", "()V", AccessFlags = 4)]
  958. protected internal override void AssertOpen() /* MethodBuilder.Create */
  959. {
  960. }
  961. /// <java-name>
  962. /// createHttpDataReceiver
  963. /// </java-name>
  964. [Dot42.DexImport("createHttpDataReceiver", "(Ljava/net/Socket;ILorg/apache/http/params/HttpParams;)Lorg/apache/http/io/Sessio" +
  965. "nInputBuffer;", AccessFlags = 4)]
  966. protected internal virtual global::Org.Apache.Http.Io.ISessionInputBuffer CreateHttpDataReceiver(global::Java.Net.Socket socket, int buffersize, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  967. {
  968. return default(global::Org.Apache.Http.Io.ISessionInputBuffer);
  969. }
  970. /// <java-name>
  971. /// createHttpDataTransmitter
  972. /// </java-name>
  973. [Dot42.DexImport("createHttpDataTransmitter", "(Ljava/net/Socket;ILorg/apache/http/params/HttpParams;)Lorg/apache/http/io/Sessio" +
  974. "nOutputBuffer;", AccessFlags = 4)]
  975. protected internal virtual global::Org.Apache.Http.Io.ISessionOutputBuffer CreateHttpDataTransmitter(global::Java.Net.Socket socket, int buffersize, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  976. {
  977. return default(global::Org.Apache.Http.Io.ISessionOutputBuffer);
  978. }
  979. /// <java-name>
  980. /// bind
  981. /// </java-name>
  982. [Dot42.DexImport("bind", "(Ljava/net/Socket;Lorg/apache/http/params/HttpParams;)V", AccessFlags = 4)]
  983. protected internal virtual void Bind(global::Java.Net.Socket socket, global::Org.Apache.Http.Params.IHttpParams @params) /* MethodBuilder.Create */
  984. {
  985. }
  986. /// <java-name>
  987. /// getSocket
  988. /// </java-name>
  989. [Dot42.DexImport("getSocket", "()Ljava/net/Socket;", AccessFlags = 4)]
  990. protected internal virtual global::Java.Net.Socket GetSocket() /* MethodBuilder.Create */
  991. {
  992. return default(global::Java.Net.Socket);
  993. }
  994. /// <summary>
  995. /// <para>Checks if this connection is open. </para>
  996. /// </summary>
  997. /// <returns>
  998. /// <para>true if it is open, false if it is closed. </para>
  999. /// </returns>
  1000. /// <java-name>
  1001. /// isOpen
  1002. /// </java-name>
  1003. [Dot42.DexImport("isOpen", "()Z", AccessFlags = 1)]
  1004. public override bool IsOpen() /* MethodBuilder.Create */
  1005. {
  1006. return default(bool);
  1007. }
  1008. /// <java-name>
  1009. /// getLocalAddress
  1010. /// </java-name>
  1011. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  1012. public virtual global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */
  1013. {
  1014. return default(global::Java.Net.InetAddress);
  1015. }
  1016. /// <java-name>
  1017. /// getLocalPort
  1018. /// </java-name>
  1019. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  1020. public virtual int GetLocalPort() /* MethodBuilder.Create */
  1021. {
  1022. return default(int);
  1023. }
  1024. /// <java-name>
  1025. /// getRemoteAddress
  1026. /// </java-name>
  1027. [Dot42.DexImport("getRemoteAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  1028. public virtual global::Java.Net.InetAddress GetRemoteAddress() /* MethodBuilder.Create */
  1029. {
  1030. return default(global::Java.Net.InetAddress);
  1031. }
  1032. /// <java-name>
  1033. /// getRemotePort
  1034. /// </java-name>
  1035. [Dot42.DexImport("getRemotePort", "()I", AccessFlags = 1)]
  1036. public virtual int GetRemotePort() /* MethodBuilder.Create */
  1037. {
  1038. return default(int);
  1039. }
  1040. /// <summary>
  1041. /// <para>Sets the socket timeout value.</para><para></para>
  1042. /// </summary>
  1043. /// <java-name>
  1044. /// setSocketTimeout
  1045. /// </java-name>
  1046. [Dot42.DexImport("setSocketTimeout", "(I)V", AccessFlags = 1)]
  1047. public override void SetSocketTimeout(int timeout) /* MethodBuilder.Create */
  1048. {
  1049. }
  1050. /// <summary>
  1051. /// <para>Returns the socket timeout value.</para><para></para>
  1052. /// </summary>
  1053. /// <returns>
  1054. /// <para>positive value in milliseconds if a timeout is set, <code>0</code> if timeout is disabled or <code>-1</code> if timeout is undefined. </para>
  1055. /// </returns>
  1056. /// <java-name>
  1057. /// getSocketTimeout
  1058. /// </java-name>
  1059. [Dot42.DexImport("getSocketTimeout", "()I", AccessFlags = 1)]
  1060. public override int GetSocketTimeout() /* MethodBuilder.Create */
  1061. {
  1062. return default(int);
  1063. }
  1064. /// <summary>
  1065. /// <para>Force-closes this connection. This is the only method of a connection which may be called from a different thread to terminate the connection. This method will not attempt to flush the transmitter's internal buffer prior to closing the underlying socket. </para>
  1066. /// </summary>
  1067. /// <java-name>
  1068. /// shutdown
  1069. /// </java-name>
  1070. [Dot42.DexImport("shutdown", "()V", AccessFlags = 1)]
  1071. public override void Shutdown() /* MethodBuilder.Create */
  1072. {
  1073. }
  1074. /// <summary>
  1075. /// <para>Closes this connection gracefully. This method will attempt to flush the transmitter's internal buffer prior to closing the underlying socket. This method MUST NOT be called from a different thread to force shutdown of the connection. Use shutdown instead. </para>
  1076. /// </summary>
  1077. /// <java-name>
  1078. /// close
  1079. /// </java-name>
  1080. [Dot42.DexImport("close", "()V", AccessFlags = 1)]
  1081. public override void Close() /* MethodBuilder.Create */
  1082. {
  1083. }
  1084. [Dot42.DexImport("org/apache/http/HttpConnection", "isStale", "()Z", AccessFlags = 1025)]
  1085. public override bool IsStale() /* TypeBuilder.AddAbstractInterfaceMethods */
  1086. {
  1087. return default(bool);
  1088. }
  1089. [Dot42.DexImport("org/apache/http/HttpConnection", "getMetrics", "()Lorg/apache/http/HttpConnectionMetrics;", AccessFlags = 1025)]
  1090. public override global::Org.Apache.Http.IHttpConnectionMetrics GetMetrics() /* TypeBuilder.AddAbstractInterfaceMethods */
  1091. {
  1092. return default(global::Org.Apache.Http.IHttpConnectionMetrics);
  1093. }
  1094. /// <java-name>
  1095. /// getSocket
  1096. /// </java-name>
  1097. protected internal global::Java.Net.Socket Socket
  1098. {
  1099. [Dot42.DexImport("getSocket", "()Ljava/net/Socket;", AccessFlags = 4)]
  1100. get{ return GetSocket(); }
  1101. }
  1102. /// <java-name>
  1103. /// getLocalAddress
  1104. /// </java-name>
  1105. public global::Java.Net.InetAddress LocalAddress
  1106. {
  1107. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  1108. get{ return GetLocalAddress(); }
  1109. }
  1110. /// <java-name>
  1111. /// getLocalPort
  1112. /// </java-name>
  1113. public int LocalPort
  1114. {
  1115. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  1116. get{ return GetLocalPort(); }
  1117. }
  1118. /// <java-name>
  1119. /// getRemoteAddress
  1120. /// </java-name>
  1121. public global::Java.Net.InetAddress RemoteAddress
  1122. {
  1123. [Dot42.DexImport("getRemoteAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  1124. get{ return GetRemoteAddress(); }
  1125. }
  1126. /// <java-name>
  1127. /// getRemotePort
  1128. /// </java-name>
  1129. public int RemotePort
  1130. {
  1131. [Dot42.DexImport("getRemotePort", "()I", AccessFlags = 1)]
  1132. get{ return GetRemotePort(); }
  1133. }
  1134. /// <summary>
  1135. /// <para>Returns the socket timeout value.</para><para></para>
  1136. /// </summary>
  1137. /// <returns>
  1138. /// <para>positive value in milliseconds if a timeout is set, <code>0</code> if timeout is disabled or <code>-1</code> if timeout is undefined. </para>
  1139. /// </returns>
  1140. /// <java-name>
  1141. /// getSocketTimeout
  1142. /// </java-name>
  1143. public int SocketTimeout
  1144. {
  1145. [Dot42.DexImport("getSocketTimeout", "()I", A