/Generated/v4.2/Org.Apache.Http.Impl.cs

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