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

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