/Generated/v4.1/Org.Apache.Http.Conn.Routing.cs

https://gitlab.com/Pfhoenix/api · C# · 1152 lines · 391 code · 86 blank · 675 comment · 0 complexity · e8abc5ff81c6e40106bb6af7c0c9a2ea MD5 · raw file

  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Org.Apache.Http.Conn.Routing.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.Conn.Routing
  18. {
  19. /// <summary>
  20. /// <para>Read-only interface for route information.</para><para><para></para><para></para><title>Revision:</title><para>652200 </para></para><para><para>4.0 </para></para>
  21. /// </summary>
  22. /// <java-name>
  23. /// org/apache/http/conn/routing/RouteInfo
  24. /// </java-name>
  25. [Dot42.DexImport("org/apache/http/conn/routing/RouteInfo", AccessFlags = 1537)]
  26. public partial interface IRouteInfo
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Obtains the target host.</para><para></para>
  31. /// </summary>
  32. /// <returns>
  33. /// <para>the target host </para>
  34. /// </returns>
  35. /// <java-name>
  36. /// getTargetHost
  37. /// </java-name>
  38. [Dot42.DexImport("getTargetHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 1025)]
  39. global::Org.Apache.Http.HttpHost GetTargetHost() /* MethodBuilder.Create */ ;
  40. /// <summary>
  41. /// <para>Obtains the local address to connect from.</para><para></para>
  42. /// </summary>
  43. /// <returns>
  44. /// <para>the local address, or <code>null</code> </para>
  45. /// </returns>
  46. /// <java-name>
  47. /// getLocalAddress
  48. /// </java-name>
  49. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1025)]
  50. global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */ ;
  51. /// <summary>
  52. /// <para>Obtains the number of hops in this route. A direct route has one hop. A route through a proxy has two hops. A route through a chain of <b>n</b> proxies has <b>n+1</b> hops.</para><para></para>
  53. /// </summary>
  54. /// <returns>
  55. /// <para>the number of hops in this route </para>
  56. /// </returns>
  57. /// <java-name>
  58. /// getHopCount
  59. /// </java-name>
  60. [Dot42.DexImport("getHopCount", "()I", AccessFlags = 1025)]
  61. int GetHopCount() /* MethodBuilder.Create */ ;
  62. /// <summary>
  63. /// <para>Obtains the target of a hop in this route. The target of the last hop is the target host, the target of previous hops is the respective proxy in the chain. For a route through exactly one proxy, target of hop 0 is the proxy and target of hop 1 is the target host.</para><para></para>
  64. /// </summary>
  65. /// <returns>
  66. /// <para>the target of the given hop</para>
  67. /// </returns>
  68. /// <java-name>
  69. /// getHopTarget
  70. /// </java-name>
  71. [Dot42.DexImport("getHopTarget", "(I)Lorg/apache/http/HttpHost;", AccessFlags = 1025)]
  72. global::Org.Apache.Http.HttpHost GetHopTarget(int hop) /* MethodBuilder.Create */ ;
  73. /// <summary>
  74. /// <para>Obtains the first proxy host.</para><para></para>
  75. /// </summary>
  76. /// <returns>
  77. /// <para>the first proxy in the proxy chain, or <code>null</code> if this route is direct </para>
  78. /// </returns>
  79. /// <java-name>
  80. /// getProxyHost
  81. /// </java-name>
  82. [Dot42.DexImport("getProxyHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 1025)]
  83. global::Org.Apache.Http.HttpHost GetProxyHost() /* MethodBuilder.Create */ ;
  84. /// <summary>
  85. /// <para>Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  86. /// </summary>
  87. /// <returns>
  88. /// <para>the tunnelling type </para>
  89. /// </returns>
  90. /// <java-name>
  91. /// getTunnelType
  92. /// </java-name>
  93. [Dot42.DexImport("getTunnelType", "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 1025)]
  94. global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType GetTunnelType() /* MethodBuilder.Create */ ;
  95. /// <summary>
  96. /// <para>Checks whether this route is tunnelled through a proxy. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  97. /// </summary>
  98. /// <returns>
  99. /// <para><code>true</code> if tunnelled end-to-end through at least one proxy, <code>false</code> otherwise </para>
  100. /// </returns>
  101. /// <java-name>
  102. /// isTunnelled
  103. /// </java-name>
  104. [Dot42.DexImport("isTunnelled", "()Z", AccessFlags = 1025)]
  105. bool IsTunnelled() /* MethodBuilder.Create */ ;
  106. /// <summary>
  107. /// <para>Obtains the layering type of this route. In the presence of proxies, only layering over an end-to-end tunnel is considered.</para><para></para>
  108. /// </summary>
  109. /// <returns>
  110. /// <para>the layering type </para>
  111. /// </returns>
  112. /// <java-name>
  113. /// getLayerType
  114. /// </java-name>
  115. [Dot42.DexImport("getLayerType", "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 1025)]
  116. global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType GetLayerType() /* MethodBuilder.Create */ ;
  117. /// <summary>
  118. /// <para>Checks whether this route includes a layered protocol. In the presence of proxies, only layering over an end-to-end tunnel is considered.</para><para></para>
  119. /// </summary>
  120. /// <returns>
  121. /// <para><code>true</code> if layered, <code>false</code> otherwise </para>
  122. /// </returns>
  123. /// <java-name>
  124. /// isLayered
  125. /// </java-name>
  126. [Dot42.DexImport("isLayered", "()Z", AccessFlags = 1025)]
  127. bool IsLayered() /* MethodBuilder.Create */ ;
  128. /// <summary>
  129. /// <para>Checks whether this route is secure.</para><para></para>
  130. /// </summary>
  131. /// <returns>
  132. /// <para><code>true</code> if secure, <code>false</code> otherwise </para>
  133. /// </returns>
  134. /// <java-name>
  135. /// isSecure
  136. /// </java-name>
  137. [Dot42.DexImport("isSecure", "()Z", AccessFlags = 1025)]
  138. bool IsSecure() /* MethodBuilder.Create */ ;
  139. }
  140. /// <java-name>
  141. /// org/apache/http/conn/routing/RouteInfo$LayerType
  142. /// </java-name>
  143. [Dot42.DexImport("org/apache/http/conn/routing/RouteInfo$LayerType", AccessFlags = 16409, Signature = "Ljava/lang/Enum<Lorg/apache/http/conn/routing/RouteInfo$LayerType;>;")]
  144. public sealed class IRouteInfo_LayerType
  145. /* scope: __dot42__ */
  146. {
  147. /// <java-name>
  148. /// LAYERED
  149. /// </java-name>
  150. [Dot42.DexImport("LAYERED", "Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 16409)]
  151. public static readonly global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType LAYERED;
  152. /// <java-name>
  153. /// PLAIN
  154. /// </java-name>
  155. [Dot42.DexImport("PLAIN", "Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 16409)]
  156. public static readonly global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType PLAIN;
  157. private IRouteInfo_LayerType() /* TypeBuilder.AddPrivateDefaultCtor */
  158. {
  159. }
  160. }
  161. /// <java-name>
  162. /// org/apache/http/conn/routing/RouteInfo$TunnelType
  163. /// </java-name>
  164. [Dot42.DexImport("org/apache/http/conn/routing/RouteInfo$TunnelType", AccessFlags = 16409, Signature = "Ljava/lang/Enum<Lorg/apache/http/conn/routing/RouteInfo$TunnelType;>;")]
  165. public sealed class IRouteInfo_TunnelType
  166. /* scope: __dot42__ */
  167. {
  168. /// <java-name>
  169. /// PLAIN
  170. /// </java-name>
  171. [Dot42.DexImport("PLAIN", "Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 16409)]
  172. public static readonly global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType PLAIN;
  173. /// <java-name>
  174. /// TUNNELLED
  175. /// </java-name>
  176. [Dot42.DexImport("TUNNELLED", "Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 16409)]
  177. public static readonly global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType TUNNELLED;
  178. private IRouteInfo_TunnelType() /* TypeBuilder.AddPrivateDefaultCtor */
  179. {
  180. }
  181. }
  182. /// <summary>
  183. /// <para>Provides directions on establishing a route. Implementations of this interface compare a planned route with a tracked route and indicate the next step required.</para><para><para></para><para></para><title>Revision:</title><para>620255 </para></para><para><para>4.0 </para></para>
  184. /// </summary>
  185. /// <java-name>
  186. /// org/apache/http/conn/routing/HttpRouteDirector
  187. /// </java-name>
  188. [Dot42.DexImport("org/apache/http/conn/routing/HttpRouteDirector", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
  189. public static partial class IHttpRouteDirectorConstants
  190. /* scope: __dot42__ */
  191. {
  192. /// <summary>
  193. /// <para>Indicates that the route can not be established at all. </para>
  194. /// </summary>
  195. /// <java-name>
  196. /// UNREACHABLE
  197. /// </java-name>
  198. [Dot42.DexImport("UNREACHABLE", "I", AccessFlags = 25)]
  199. public const int UNREACHABLE = -1;
  200. /// <summary>
  201. /// <para>Indicates that the route is complete. </para>
  202. /// </summary>
  203. /// <java-name>
  204. /// COMPLETE
  205. /// </java-name>
  206. [Dot42.DexImport("COMPLETE", "I", AccessFlags = 25)]
  207. public const int COMPLETE = 0;
  208. /// <summary>
  209. /// <para>Step: open connection to target. </para>
  210. /// </summary>
  211. /// <java-name>
  212. /// CONNECT_TARGET
  213. /// </java-name>
  214. [Dot42.DexImport("CONNECT_TARGET", "I", AccessFlags = 25)]
  215. public const int CONNECT_TARGET = 1;
  216. /// <summary>
  217. /// <para>Step: open connection to proxy. </para>
  218. /// </summary>
  219. /// <java-name>
  220. /// CONNECT_PROXY
  221. /// </java-name>
  222. [Dot42.DexImport("CONNECT_PROXY", "I", AccessFlags = 25)]
  223. public const int CONNECT_PROXY = 2;
  224. /// <summary>
  225. /// <para>Step: tunnel through proxy to target. </para>
  226. /// </summary>
  227. /// <java-name>
  228. /// TUNNEL_TARGET
  229. /// </java-name>
  230. [Dot42.DexImport("TUNNEL_TARGET", "I", AccessFlags = 25)]
  231. public const int TUNNEL_TARGET = 3;
  232. /// <summary>
  233. /// <para>Step: tunnel through proxy to other proxy. </para>
  234. /// </summary>
  235. /// <java-name>
  236. /// TUNNEL_PROXY
  237. /// </java-name>
  238. [Dot42.DexImport("TUNNEL_PROXY", "I", AccessFlags = 25)]
  239. public const int TUNNEL_PROXY = 4;
  240. /// <summary>
  241. /// <para>Step: layer protocol (over tunnel). </para>
  242. /// </summary>
  243. /// <java-name>
  244. /// LAYER_PROTOCOL
  245. /// </java-name>
  246. [Dot42.DexImport("LAYER_PROTOCOL", "I", AccessFlags = 25)]
  247. public const int LAYER_PROTOCOL = 5;
  248. }
  249. /// <summary>
  250. /// <para>Provides directions on establishing a route. Implementations of this interface compare a planned route with a tracked route and indicate the next step required.</para><para><para></para><para></para><title>Revision:</title><para>620255 </para></para><para><para>4.0 </para></para>
  251. /// </summary>
  252. /// <java-name>
  253. /// org/apache/http/conn/routing/HttpRouteDirector
  254. /// </java-name>
  255. [Dot42.DexImport("org/apache/http/conn/routing/HttpRouteDirector", AccessFlags = 1537)]
  256. public partial interface IHttpRouteDirector
  257. /* scope: __dot42__ */
  258. {
  259. /// <summary>
  260. /// <para>Provides the next step.</para><para></para>
  261. /// </summary>
  262. /// <returns>
  263. /// <para>one of the constants defined in this interface, indicating either the next step to perform, or success, or failure. 0 is for success, a negative value for failure. </para>
  264. /// </returns>
  265. /// <java-name>
  266. /// nextStep
  267. /// </java-name>
  268. [Dot42.DexImport("nextStep", "(Lorg/apache/http/conn/routing/RouteInfo;Lorg/apache/http/conn/routing/RouteInfo;" +
  269. ")I", AccessFlags = 1025)]
  270. int NextStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan, global::Org.Apache.Http.Conn.Routing.IRouteInfo fact) /* MethodBuilder.Create */ ;
  271. }
  272. /// <summary>
  273. /// <para>Helps tracking the steps in establishing a route.</para><para><para></para><para></para><title>Revision:</title><para>620254 </para></para><para><para>4.0 </para></para>
  274. /// </summary>
  275. /// <java-name>
  276. /// org/apache/http/conn/routing/RouteTracker
  277. /// </java-name>
  278. [Dot42.DexImport("org/apache/http/conn/routing/RouteTracker", AccessFlags = 49)]
  279. public sealed partial class RouteTracker : global::Org.Apache.Http.Conn.Routing.IRouteInfo, global::Java.Lang.ICloneable
  280. /* scope: __dot42__ */
  281. {
  282. /// <summary>
  283. /// <para>Creates a new route tracker. The target and origin need to be specified at creation time.</para><para></para>
  284. /// </summary>
  285. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;)V", AccessFlags = 1)]
  286. public RouteTracker(global::Org.Apache.Http.HttpHost target, global::Java.Net.InetAddress local) /* MethodBuilder.Create */
  287. {
  288. }
  289. /// <summary>
  290. /// <para>Creates a new tracker for the given route. Only target and origin are taken from the route, everything else remains to be tracked.</para><para></para>
  291. /// </summary>
  292. [Dot42.DexImport("<init>", "(Lorg/apache/http/conn/routing/HttpRoute;)V", AccessFlags = 1)]
  293. public RouteTracker(global::Org.Apache.Http.Conn.Routing.HttpRoute route) /* MethodBuilder.Create */
  294. {
  295. }
  296. /// <summary>
  297. /// <para>Tracks connecting to the target.</para><para></para>
  298. /// </summary>
  299. /// <java-name>
  300. /// connectTarget
  301. /// </java-name>
  302. [Dot42.DexImport("connectTarget", "(Z)V", AccessFlags = 17)]
  303. public void ConnectTarget(bool secure) /* MethodBuilder.Create */
  304. {
  305. }
  306. /// <summary>
  307. /// <para>Tracks connecting to the first proxy.</para><para></para>
  308. /// </summary>
  309. /// <java-name>
  310. /// connectProxy
  311. /// </java-name>
  312. [Dot42.DexImport("connectProxy", "(Lorg/apache/http/HttpHost;Z)V", AccessFlags = 17)]
  313. public void ConnectProxy(global::Org.Apache.Http.HttpHost proxy, bool secure) /* MethodBuilder.Create */
  314. {
  315. }
  316. /// <summary>
  317. /// <para>Tracks tunnelling to the target.</para><para></para>
  318. /// </summary>
  319. /// <java-name>
  320. /// tunnelTarget
  321. /// </java-name>
  322. [Dot42.DexImport("tunnelTarget", "(Z)V", AccessFlags = 17)]
  323. public void TunnelTarget(bool secure) /* MethodBuilder.Create */
  324. {
  325. }
  326. /// <summary>
  327. /// <para>Tracks tunnelling to a proxy in a proxy chain. This will extend the tracked proxy chain, but it does not mark the route as tunnelled. Only end-to-end tunnels are considered there.</para><para></para>
  328. /// </summary>
  329. /// <java-name>
  330. /// tunnelProxy
  331. /// </java-name>
  332. [Dot42.DexImport("tunnelProxy", "(Lorg/apache/http/HttpHost;Z)V", AccessFlags = 17)]
  333. public void TunnelProxy(global::Org.Apache.Http.HttpHost proxy, bool secure) /* MethodBuilder.Create */
  334. {
  335. }
  336. /// <summary>
  337. /// <para>Tracks layering a protocol.</para><para></para>
  338. /// </summary>
  339. /// <java-name>
  340. /// layerProtocol
  341. /// </java-name>
  342. [Dot42.DexImport("layerProtocol", "(Z)V", AccessFlags = 17)]
  343. public void LayerProtocol(bool secure) /* MethodBuilder.Create */
  344. {
  345. }
  346. /// <summary>
  347. /// <para>Obtains the target host.</para><para></para>
  348. /// </summary>
  349. /// <returns>
  350. /// <para>the target host </para>
  351. /// </returns>
  352. /// <java-name>
  353. /// getTargetHost
  354. /// </java-name>
  355. [Dot42.DexImport("getTargetHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  356. public global::Org.Apache.Http.HttpHost GetTargetHost() /* MethodBuilder.Create */
  357. {
  358. return default(global::Org.Apache.Http.HttpHost);
  359. }
  360. /// <summary>
  361. /// <para>Obtains the local address to connect from.</para><para></para>
  362. /// </summary>
  363. /// <returns>
  364. /// <para>the local address, or <code>null</code> </para>
  365. /// </returns>
  366. /// <java-name>
  367. /// getLocalAddress
  368. /// </java-name>
  369. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 17)]
  370. public global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */
  371. {
  372. return default(global::Java.Net.InetAddress);
  373. }
  374. /// <summary>
  375. /// <para>Obtains the number of hops in this route. A direct route has one hop. A route through a proxy has two hops. A route through a chain of <b>n</b> proxies has <b>n+1</b> hops.</para><para></para>
  376. /// </summary>
  377. /// <returns>
  378. /// <para>the number of hops in this route </para>
  379. /// </returns>
  380. /// <java-name>
  381. /// getHopCount
  382. /// </java-name>
  383. [Dot42.DexImport("getHopCount", "()I", AccessFlags = 17)]
  384. public int GetHopCount() /* MethodBuilder.Create */
  385. {
  386. return default(int);
  387. }
  388. /// <summary>
  389. /// <para>Obtains the target of a hop in this route. The target of the last hop is the target host, the target of previous hops is the respective proxy in the chain. For a route through exactly one proxy, target of hop 0 is the proxy and target of hop 1 is the target host.</para><para></para>
  390. /// </summary>
  391. /// <returns>
  392. /// <para>the target of the given hop</para>
  393. /// </returns>
  394. /// <java-name>
  395. /// getHopTarget
  396. /// </java-name>
  397. [Dot42.DexImport("getHopTarget", "(I)Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  398. public global::Org.Apache.Http.HttpHost GetHopTarget(int hop) /* MethodBuilder.Create */
  399. {
  400. return default(global::Org.Apache.Http.HttpHost);
  401. }
  402. /// <summary>
  403. /// <para>Obtains the first proxy host.</para><para></para>
  404. /// </summary>
  405. /// <returns>
  406. /// <para>the first proxy in the proxy chain, or <code>null</code> if this route is direct </para>
  407. /// </returns>
  408. /// <java-name>
  409. /// getProxyHost
  410. /// </java-name>
  411. [Dot42.DexImport("getProxyHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  412. public global::Org.Apache.Http.HttpHost GetProxyHost() /* MethodBuilder.Create */
  413. {
  414. return default(global::Org.Apache.Http.HttpHost);
  415. }
  416. /// <java-name>
  417. /// isConnected
  418. /// </java-name>
  419. [Dot42.DexImport("isConnected", "()Z", AccessFlags = 17)]
  420. public bool IsConnected() /* MethodBuilder.Create */
  421. {
  422. return default(bool);
  423. }
  424. /// <summary>
  425. /// <para>Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  426. /// </summary>
  427. /// <returns>
  428. /// <para>the tunnelling type </para>
  429. /// </returns>
  430. /// <java-name>
  431. /// getTunnelType
  432. /// </java-name>
  433. [Dot42.DexImport("getTunnelType", "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 17)]
  434. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType GetTunnelType() /* MethodBuilder.Create */
  435. {
  436. return default(global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType);
  437. }
  438. /// <summary>
  439. /// <para>Checks whether this route is tunnelled through a proxy. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  440. /// </summary>
  441. /// <returns>
  442. /// <para><code>true</code> if tunnelled end-to-end through at least one proxy, <code>false</code> otherwise </para>
  443. /// </returns>
  444. /// <java-name>
  445. /// isTunnelled
  446. /// </java-name>
  447. [Dot42.DexImport("isTunnelled", "()Z", AccessFlags = 17)]
  448. public bool IsTunnelled() /* MethodBuilder.Create */
  449. {
  450. return default(bool);
  451. }
  452. /// <summary>
  453. /// <para>Obtains the layering type of this route. In the presence of proxies, only layering over an end-to-end tunnel is considered.</para><para></para>
  454. /// </summary>
  455. /// <returns>
  456. /// <para>the layering type </para>
  457. /// </returns>
  458. /// <java-name>
  459. /// getLayerType
  460. /// </java-name>
  461. [Dot42.DexImport("getLayerType", "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 17)]
  462. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType GetLayerType() /* MethodBuilder.Create */
  463. {
  464. return default(global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType);
  465. }
  466. /// <summary>
  467. /// <para>Checks whether this route includes a layered protocol. In the presence of proxies, only layering over an end-to-end tunnel is considered.</para><para></para>
  468. /// </summary>
  469. /// <returns>
  470. /// <para><code>true</code> if layered, <code>false</code> otherwise </para>
  471. /// </returns>
  472. /// <java-name>
  473. /// isLayered
  474. /// </java-name>
  475. [Dot42.DexImport("isLayered", "()Z", AccessFlags = 17)]
  476. public bool IsLayered() /* MethodBuilder.Create */
  477. {
  478. return default(bool);
  479. }
  480. /// <summary>
  481. /// <para>Checks whether this route is secure.</para><para></para>
  482. /// </summary>
  483. /// <returns>
  484. /// <para><code>true</code> if secure, <code>false</code> otherwise </para>
  485. /// </returns>
  486. /// <java-name>
  487. /// isSecure
  488. /// </java-name>
  489. [Dot42.DexImport("isSecure", "()Z", AccessFlags = 17)]
  490. public bool IsSecure() /* MethodBuilder.Create */
  491. {
  492. return default(bool);
  493. }
  494. /// <summary>
  495. /// <para>Obtains the tracked route. If a route has been tracked, it is connected. If not connected, nothing has been tracked so far.</para><para></para>
  496. /// </summary>
  497. /// <returns>
  498. /// <para>the tracked route, or <code>null</code> if nothing has been tracked so far </para>
  499. /// </returns>
  500. /// <java-name>
  501. /// toRoute
  502. /// </java-name>
  503. [Dot42.DexImport("toRoute", "()Lorg/apache/http/conn/routing/HttpRoute;", AccessFlags = 17)]
  504. public global::Org.Apache.Http.Conn.Routing.HttpRoute ToRoute() /* MethodBuilder.Create */
  505. {
  506. return default(global::Org.Apache.Http.Conn.Routing.HttpRoute);
  507. }
  508. /// <summary>
  509. /// <para>Compares this tracked route to another.</para><para></para>
  510. /// </summary>
  511. /// <returns>
  512. /// <para><code>true</code> if the argument is the same tracked route, <code>false</code> </para>
  513. /// </returns>
  514. /// <java-name>
  515. /// equals
  516. /// </java-name>
  517. [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 17)]
  518. public override bool Equals(object o) /* MethodBuilder.Create */
  519. {
  520. return default(bool);
  521. }
  522. /// <summary>
  523. /// <para>Generates a hash code for this tracked route. Route trackers are modifiable and should therefore not be used as lookup keys. Use toRoute to obtain an unmodifiable representation of the tracked route.</para><para></para>
  524. /// </summary>
  525. /// <returns>
  526. /// <para>the hash code </para>
  527. /// </returns>
  528. /// <java-name>
  529. /// hashCode
  530. /// </java-name>
  531. [Dot42.DexImport("hashCode", "()I", AccessFlags = 17)]
  532. public override int GetHashCode() /* MethodBuilder.Create */
  533. {
  534. return default(int);
  535. }
  536. /// <summary>
  537. /// <para>Obtains a description of the tracked route.</para><para></para>
  538. /// </summary>
  539. /// <returns>
  540. /// <para>a human-readable representation of the tracked route </para>
  541. /// </returns>
  542. /// <java-name>
  543. /// toString
  544. /// </java-name>
  545. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 17)]
  546. public override string ToString() /* MethodBuilder.Create */
  547. {
  548. return default(string);
  549. }
  550. /// <java-name>
  551. /// clone
  552. /// </java-name>
  553. [Dot42.DexImport("clone", "()Ljava/lang/Object;", AccessFlags = 1)]
  554. public object Clone() /* MethodBuilder.Create */
  555. {
  556. return default(object);
  557. }
  558. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  559. internal RouteTracker() /* TypeBuilder.AddDefaultConstructor */
  560. {
  561. }
  562. /// <summary>
  563. /// <para>Obtains the target host.</para><para></para>
  564. /// </summary>
  565. /// <returns>
  566. /// <para>the target host </para>
  567. /// </returns>
  568. /// <java-name>
  569. /// getTargetHost
  570. /// </java-name>
  571. public global::Org.Apache.Http.HttpHost TargetHost
  572. {
  573. [Dot42.DexImport("getTargetHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  574. get{ return GetTargetHost(); }
  575. }
  576. /// <summary>
  577. /// <para>Obtains the local address to connect from.</para><para></para>
  578. /// </summary>
  579. /// <returns>
  580. /// <para>the local address, or <code>null</code> </para>
  581. /// </returns>
  582. /// <java-name>
  583. /// getLocalAddress
  584. /// </java-name>
  585. public global::Java.Net.InetAddress LocalAddress
  586. {
  587. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 17)]
  588. get{ return GetLocalAddress(); }
  589. }
  590. /// <summary>
  591. /// <para>Obtains the number of hops in this route. A direct route has one hop. A route through a proxy has two hops. A route through a chain of <b>n</b> proxies has <b>n+1</b> hops.</para><para></para>
  592. /// </summary>
  593. /// <returns>
  594. /// <para>the number of hops in this route </para>
  595. /// </returns>
  596. /// <java-name>
  597. /// getHopCount
  598. /// </java-name>
  599. public int HopCount
  600. {
  601. [Dot42.DexImport("getHopCount", "()I", AccessFlags = 17)]
  602. get{ return GetHopCount(); }
  603. }
  604. /// <summary>
  605. /// <para>Obtains the first proxy host.</para><para></para>
  606. /// </summary>
  607. /// <returns>
  608. /// <para>the first proxy in the proxy chain, or <code>null</code> if this route is direct </para>
  609. /// </returns>
  610. /// <java-name>
  611. /// getProxyHost
  612. /// </java-name>
  613. public global::Org.Apache.Http.HttpHost ProxyHost
  614. {
  615. [Dot42.DexImport("getProxyHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  616. get{ return GetProxyHost(); }
  617. }
  618. /// <summary>
  619. /// <para>Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  620. /// </summary>
  621. /// <returns>
  622. /// <para>the tunnelling type </para>
  623. /// </returns>
  624. /// <java-name>
  625. /// getTunnelType
  626. /// </java-name>
  627. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType TunnelType
  628. {
  629. [Dot42.DexImport("getTunnelType", "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 17)]
  630. get{ return GetTunnelType(); }
  631. }
  632. /// <summary>
  633. /// <para>Obtains the layering type of this route. In the presence of proxies, only layering over an end-to-end tunnel is considered.</para><para></para>
  634. /// </summary>
  635. /// <returns>
  636. /// <para>the layering type </para>
  637. /// </returns>
  638. /// <java-name>
  639. /// getLayerType
  640. /// </java-name>
  641. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType LayerType
  642. {
  643. [Dot42.DexImport("getLayerType", "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 17)]
  644. get{ return GetLayerType(); }
  645. }
  646. }
  647. /// <summary>
  648. /// <para>Encapsulates logic to compute a HttpRoute to a target host. Implementations may for example be based on parameters, or on the standard Java system properties. </para>
  649. /// </summary>
  650. /// <java-name>
  651. /// org/apache/http/conn/routing/HttpRoutePlanner
  652. /// </java-name>
  653. [Dot42.DexImport("org/apache/http/conn/routing/HttpRoutePlanner", AccessFlags = 1537)]
  654. public partial interface IHttpRoutePlanner
  655. /* scope: __dot42__ */
  656. {
  657. /// <summary>
  658. /// <para>Determines the route for a request.</para><para></para>
  659. /// </summary>
  660. /// <returns>
  661. /// <para>the route that the request should take</para>
  662. /// </returns>
  663. /// <java-name>
  664. /// determineRoute
  665. /// </java-name>
  666. [Dot42.DexImport("determineRoute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol" +
  667. "/HttpContext;)Lorg/apache/http/conn/routing/HttpRoute;", AccessFlags = 1025)]
  668. global::Org.Apache.Http.Conn.Routing.HttpRoute DetermineRoute(global::Org.Apache.Http.HttpHost target, global::Org.Apache.Http.IHttpRequest request, global::Org.Apache.Http.Protocol.IHttpContext context) /* MethodBuilder.Create */ ;
  669. }
  670. /// <summary>
  671. /// <para>The route for a request. Instances of this class are unmodifiable and therefore suitable for use as lookup keys.</para><para><para></para><para></para><title>Revision:</title><para>653041 </para></para><para><para>4.0 </para></para>
  672. /// </summary>
  673. /// <java-name>
  674. /// org/apache/http/conn/routing/HttpRoute
  675. /// </java-name>
  676. [Dot42.DexImport("org/apache/http/conn/routing/HttpRoute", AccessFlags = 49)]
  677. public sealed partial class HttpRoute : global::Org.Apache.Http.Conn.Routing.IRouteInfo, global::Java.Lang.ICloneable
  678. /* scope: __dot42__ */
  679. {
  680. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;[Lorg/apache/http/HttpHost;ZLorg" +
  681. "/apache/http/conn/routing/RouteInfo$TunnelType;Lorg/apache/http/conn/routing/Rou" +
  682. "teInfo$LayerType;)V", AccessFlags = 1)]
  683. public HttpRoute(global::Org.Apache.Http.HttpHost httpHost, global::Java.Net.InetAddress inetAddress, global::Org.Apache.Http.HttpHost[] httpHost1, bool boolean, global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType iRouteInfo_TunnelType, global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType iRouteInfo_LayerType) /* MethodBuilder.Create */
  684. {
  685. }
  686. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/HttpHost;ZLorg/" +
  687. "apache/http/conn/routing/RouteInfo$TunnelType;Lorg/apache/http/conn/routing/Rout" +
  688. "eInfo$LayerType;)V", AccessFlags = 1)]
  689. public HttpRoute(global::Org.Apache.Http.HttpHost httpHost, global::Java.Net.InetAddress inetAddress, global::Org.Apache.Http.HttpHost httpHost1, bool boolean, global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType iRouteInfo_TunnelType, global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType iRouteInfo_LayerType) /* MethodBuilder.Create */
  690. {
  691. }
  692. /// <summary>
  693. /// <para>Creates a new direct route. That is a route without a proxy.</para><para></para>
  694. /// </summary>
  695. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Z)V", AccessFlags = 1)]
  696. public HttpRoute(global::Org.Apache.Http.HttpHost target, global::Java.Net.InetAddress local, bool secure) /* MethodBuilder.Create */
  697. {
  698. }
  699. /// <summary>
  700. /// <para>Creates a new direct insecure route.</para><para></para>
  701. /// </summary>
  702. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;)V", AccessFlags = 1)]
  703. public HttpRoute(global::Org.Apache.Http.HttpHost target) /* MethodBuilder.Create */
  704. {
  705. }
  706. /// <summary>
  707. /// <para>Creates a new route through a proxy. When using this constructor, the <code>proxy</code> MUST be given. For convenience, it is assumed that a secure connection will be layered over a tunnel through the proxy.</para><para></para>
  708. /// </summary>
  709. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/HttpHost;Z)V", AccessFlags = 1)]
  710. public HttpRoute(global::Org.Apache.Http.HttpHost target, global::Java.Net.InetAddress local, global::Org.Apache.Http.HttpHost proxy, bool secure) /* MethodBuilder.Create */
  711. {
  712. }
  713. /// <summary>
  714. /// <para>Obtains the target host.</para><para></para>
  715. /// </summary>
  716. /// <returns>
  717. /// <para>the target host </para>
  718. /// </returns>
  719. /// <java-name>
  720. /// getTargetHost
  721. /// </java-name>
  722. [Dot42.DexImport("getTargetHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  723. public global::Org.Apache.Http.HttpHost GetTargetHost() /* MethodBuilder.Create */
  724. {
  725. return default(global::Org.Apache.Http.HttpHost);
  726. }
  727. /// <summary>
  728. /// <para>Obtains the local address to connect from.</para><para></para>
  729. /// </summary>
  730. /// <returns>
  731. /// <para>the local address, or <code>null</code> </para>
  732. /// </returns>
  733. /// <java-name>
  734. /// getLocalAddress
  735. /// </java-name>
  736. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 17)]
  737. public global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */
  738. {
  739. return default(global::Java.Net.InetAddress);
  740. }
  741. /// <summary>
  742. /// <para>Obtains the number of hops in this route. A direct route has one hop. A route through a proxy has two hops. A route through a chain of <b>n</b> proxies has <b>n+1</b> hops.</para><para></para>
  743. /// </summary>
  744. /// <returns>
  745. /// <para>the number of hops in this route </para>
  746. /// </returns>
  747. /// <java-name>
  748. /// getHopCount
  749. /// </java-name>
  750. [Dot42.DexImport("getHopCount", "()I", AccessFlags = 17)]
  751. public int GetHopCount() /* MethodBuilder.Create */
  752. {
  753. return default(int);
  754. }
  755. /// <summary>
  756. /// <para>Obtains the target of a hop in this route. The target of the last hop is the target host, the target of previous hops is the respective proxy in the chain. For a route through exactly one proxy, target of hop 0 is the proxy and target of hop 1 is the target host.</para><para></para>
  757. /// </summary>
  758. /// <returns>
  759. /// <para>the target of the given hop</para>
  760. /// </returns>
  761. /// <java-name>
  762. /// getHopTarget
  763. /// </java-name>
  764. [Dot42.DexImport("getHopTarget", "(I)Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  765. public global::Org.Apache.Http.HttpHost GetHopTarget(int hop) /* MethodBuilder.Create */
  766. {
  767. return default(global::Org.Apache.Http.HttpHost);
  768. }
  769. /// <summary>
  770. /// <para>Obtains the first proxy host.</para><para></para>
  771. /// </summary>
  772. /// <returns>
  773. /// <para>the first proxy in the proxy chain, or <code>null</code> if this route is direct </para>
  774. /// </returns>
  775. /// <java-name>
  776. /// getProxyHost
  777. /// </java-name>
  778. [Dot42.DexImport("getProxyHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  779. public global::Org.Apache.Http.HttpHost GetProxyHost() /* MethodBuilder.Create */
  780. {
  781. return default(global::Org.Apache.Http.HttpHost);
  782. }
  783. /// <summary>
  784. /// <para>Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  785. /// </summary>
  786. /// <returns>
  787. /// <para>the tunnelling type </para>
  788. /// </returns>
  789. /// <java-name>
  790. /// getTunnelType
  791. /// </java-name>
  792. [Dot42.DexImport("getTunnelType", "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 17)]
  793. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType GetTunnelType() /* MethodBuilder.Create */
  794. {
  795. return default(global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType);
  796. }
  797. /// <summary>
  798. /// <para>Checks whether this route is tunnelled through a proxy. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  799. /// </summary>
  800. /// <returns>
  801. /// <para><code>true</code> if tunnelled end-to-end through at least one proxy, <code>false</code> otherwise </para>
  802. /// </returns>
  803. /// <java-name>
  804. /// isTunnelled
  805. /// </java-name>
  806. [Dot42.DexImport("isTunnelled", "()Z", AccessFlags = 17)]
  807. public bool IsTunnelled() /* MethodBuilder.Create */
  808. {
  809. return default(bool);
  810. }
  811. /// <summary>
  812. /// <para>Obtains the layering type of this route. In the presence of proxies, only layering over an end-to-end tunnel is considered.</para><para></para>
  813. /// </summary>
  814. /// <returns>
  815. /// <para>the layering type </para>
  816. /// </returns>
  817. /// <java-name>
  818. /// getLayerType
  819. /// </java-name>
  820. [Dot42.DexImport("getLayerType", "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 17)]
  821. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType GetLayerType() /* MethodBuilder.Create */
  822. {
  823. return default(global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType);
  824. }
  825. /// <summary>
  826. /// <para>Checks whether this route includes a layered protocol. In the presence of proxies, only layering over an end-to-end tunnel is considered.</para><para></para>
  827. /// </summary>
  828. /// <returns>
  829. /// <para><code>true</code> if layered, <code>false</code> otherwise </para>
  830. /// </returns>
  831. /// <java-name>
  832. /// isLayered
  833. /// </java-name>
  834. [Dot42.DexImport("isLayered", "()Z", AccessFlags = 17)]
  835. public bool IsLayered() /* MethodBuilder.Create */
  836. {
  837. return default(bool);
  838. }
  839. /// <summary>
  840. /// <para>Checks whether this route is secure.</para><para></para>
  841. /// </summary>
  842. /// <returns>
  843. /// <para><code>true</code> if secure, <code>false</code> otherwise </para>
  844. /// </returns>
  845. /// <java-name>
  846. /// isSecure
  847. /// </java-name>
  848. [Dot42.DexImport("isSecure", "()Z", AccessFlags = 17)]
  849. public bool IsSecure() /* MethodBuilder.Create */
  850. {
  851. return default(bool);
  852. }
  853. /// <summary>
  854. /// <para>Compares this route to another.</para><para></para>
  855. /// </summary>
  856. /// <returns>
  857. /// <para><code>true</code> if the argument is the same route, <code>false</code> </para>
  858. /// </returns>
  859. /// <java-name>
  860. /// equals
  861. /// </java-name>
  862. [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 17)]
  863. public override bool Equals(object o) /* MethodBuilder.Create */
  864. {
  865. return default(bool);
  866. }
  867. /// <summary>
  868. /// <para>Generates a hash code for this route.</para><para></para>
  869. /// </summary>
  870. /// <returns>
  871. /// <para>the hash code </para>
  872. /// </returns>
  873. /// <java-name>
  874. /// hashCode
  875. /// </java-name>
  876. [Dot42.DexImport("hashCode", "()I", AccessFlags = 17)]
  877. public override int GetHashCode() /* MethodBuilder.Create */
  878. {
  879. return default(int);
  880. }
  881. /// <summary>
  882. /// <para>Obtains a description of this route.</para><para></para>
  883. /// </summary>
  884. /// <returns>
  885. /// <para>a human-readable representation of this route </para>
  886. /// </returns>
  887. /// <java-name>
  888. /// toString
  889. /// </java-name>
  890. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 17)]
  891. public override string ToString() /* MethodBuilder.Create */
  892. {
  893. return default(string);
  894. }
  895. /// <java-name>
  896. /// clone
  897. /// </java-name>
  898. [Dot42.DexImport("clone", "()Ljava/lang/Object;", AccessFlags = 1)]
  899. public object Clone() /* MethodBuilder.Create */
  900. {
  901. return default(object);
  902. }
  903. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  904. internal HttpRoute() /* TypeBuilder.AddDefaultConstructor */
  905. {
  906. }
  907. /// <summary>
  908. /// <para>Obtains the target host.</para><para></para>
  909. /// </summary>
  910. /// <returns>
  911. /// <para>the target host </para>
  912. /// </returns>
  913. /// <java-name>
  914. /// getTargetHost
  915. /// </java-name>
  916. public global::Org.Apache.Http.HttpHost TargetHost
  917. {
  918. [Dot42.DexImport("getTargetHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  919. get{ return GetTargetHost(); }
  920. }
  921. /// <summary>
  922. /// <para>Obtains the local address to connect from.</para><para></para>
  923. /// </summary>
  924. /// <returns>
  925. /// <para>the local address, or <code>null</code> </para>
  926. /// </returns>
  927. /// <java-name>
  928. /// getLocalAddress
  929. /// </java-name>
  930. public global::Java.Net.InetAddress LocalAddress
  931. {
  932. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 17)]
  933. get{ return GetLocalAddress(); }
  934. }
  935. /// <summary>
  936. /// <para>Obtains the number of hops in this route. A direct route has one hop. A route through a proxy has two hops. A route through a chain of <b>n</b> proxies has <b>n+1</b> hops.</para><para></para>
  937. /// </summary>
  938. /// <returns>
  939. /// <para>the number of hops in this route </para>
  940. /// </returns>
  941. /// <java-name>
  942. /// getHopCount
  943. /// </java-name>
  944. public int HopCount
  945. {
  946. [Dot42.DexImport("getHopCount", "()I", AccessFlags = 17)]
  947. get{ return GetHopCount(); }
  948. }
  949. /// <summary>
  950. /// <para>Obtains the first proxy host.</para><para></para>
  951. /// </summary>
  952. /// <returns>
  953. /// <para>the first proxy in the proxy chain, or <code>null</code> if this route is direct </para>
  954. /// </returns>
  955. /// <java-name>
  956. /// getProxyHost
  957. /// </java-name>
  958. public global::Org.Apache.Http.HttpHost ProxyHost
  959. {
  960. [Dot42.DexImport("getProxyHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  961. get{ return GetProxyHost(); }
  962. }
  963. /// <summary>
  964. /// <para>Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  965. /// </summary>
  966. /// <returns>
  967. /// <para>the tunnelling type </para>
  968. /// </returns>
  969. /// <java-name>
  970. /// getTunnelType
  971. /// </java-name>
  972. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType TunnelType
  973. {
  974. [Dot42.DexImport("getTunnelType", "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 17)]
  975. get{ return GetTunnelType(); }
  976. }
  977. /// <summary>
  978. /// <para>Obtains the layering type of this route. In the presence of proxies, only layering over an end-to-end tunnel is considered.</para><para></para>
  979. /// </summary>
  980. /// <returns>
  981. /// <para>the layering type </para>
  982. /// </returns>
  983. /// <java-name>
  984. /// getLayerType
  985. /// </java-name>
  986. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType LayerType
  987. {
  988. [Dot42.DexImport("getLayerType", "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 17)]
  989. get{ return GetLayerType(); }
  990. }
  991. }
  992. /// <summary>
  993. /// <para>Basic implementation of an HttpRouteDirector. This implementation is stateless and therefore thread-safe.</para><para><para></para><para></para><title>Revision:</title><para>620255 </para></para><para><para>4.0 </para></para>
  994. /// </summary>
  995. /// <java-name>
  996. /// org/apache/http/conn/routing/BasicRouteDirector
  997. /// </java-name>
  998. [Dot42.DexImport("org/apache/http/conn/routing/BasicRouteDirector", AccessFlags = 33)]
  999. public partial class BasicRouteDirector : global::Org.Apache.Http.Conn.Routing.IHttpRouteDirector
  1000. /* scope: __dot42__ */
  1001. {
  1002. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  1003. public BasicRouteDirector() /* MethodBuilder.Create */
  1004. {
  1005. }
  1006. /// <summary>
  1007. /// <para>Provides the next step.</para><para></para>
  1008. /// </summary>
  1009. /// <returns>
  1010. /// <para>one of the constants defined in this class, indicating either the next step to perform, or success, or failure. 0 is for success, a negative value for failure. </para>
  1011. /// </returns>
  1012. /// <java-name>
  1013. /// nextStep
  1014. /// </java-name>
  1015. [Dot42.DexImport("nextStep", "(Lorg/apache/http/conn/routing/RouteInfo;Lorg/apache/http/conn/routing/RouteInfo;" +
  1016. ")I", AccessFlags = 1)]
  1017. public virtual int NextStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan, global::Org.Apache.Http.Conn.Routing.IRouteInfo fact) /* MethodBuilder.Create */
  1018. {
  1019. return default(int);
  1020. }
  1021. /// <summary>
  1022. /// <para>Determines the first step to establish a route.</para><para></para>
  1023. /// </summary>
  1024. /// <returns>
  1025. /// <para>the first step </para>
  1026. /// </returns>
  1027. /// <java-name>
  1028. /// firstStep
  1029. /// </java-name>
  1030. [Dot42.DexImport("firstStep", "(Lorg/apache/http/conn/routing/RouteInfo;)I", AccessFlags = 4)]
  1031. protected internal virtual int FirstStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan) /* MethodBuilder.Create */
  1032. {
  1033. return default(int);
  1034. }
  1035. /// <summary>
  1036. /// <para>Determines the next step to establish a direct connection.</para><para></para>
  1037. /// </summary>
  1038. /// <returns>
  1039. /// <para>one of the constants defined in this class, indicating either the next step to perform, or success, or failure </para>
  1040. /// </returns>
  1041. /// <java-name>
  1042. /// directStep
  1043. /// </java-name>
  1044. [Dot42.DexImport("directStep", "(Lorg/apache/http/conn/routing/RouteInfo;Lorg/apache/http/conn/routing/RouteInfo;" +
  1045. ")I", AccessFlags = 4)]
  1046. protected internal virtual int DirectStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan, global::Org.Apache.Http.Conn.Routing.IRouteInfo fact) /* MethodBuilder.Create */
  1047. {
  1048. return default(int);
  1049. }
  1050. /// <summary>
  1051. /// <para>Determines the next step to establish a connection via proxy.</para><para></para>
  1052. /// </summary>
  1053. /// <returns>
  1054. /// <para>one of the constants defined in this class, indicating either the next step to perform, or success, or failure </para>
  1055. /// </returns>
  1056. /// <java-name>
  1057. /// proxiedStep
  1058. /// </java-name>
  1059. [Dot42.DexImport("proxiedStep", "(Lorg/apache/http/conn/routing/RouteInfo;Lorg/apache/http/conn/routing/RouteInfo;" +
  1060. ")I", AccessFlags = 4)]
  1061. protected internal virtual int ProxiedStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan, global::Org.Apache.Http.Conn.Routing.IRouteInfo fact) /* MethodBuilder.Create */
  1062. {
  1063. return default(int);
  1064. }
  1065. }
  1066. }