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

https://gitlab.com/Pfhoenix/api · C# · 1152 lines · 391 code · 86 blank · 675 comment · 0 complexity · cbc1e7f79ffe92d2992d2a54d88553be 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>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>
  21. /// </summary>
  22. /// <java-name>
  23. /// org/apache/http/conn/routing/HttpRoutePlanner
  24. /// </java-name>
  25. [Dot42.DexImport("org/apache/http/conn/routing/HttpRoutePlanner", AccessFlags = 1537)]
  26. public partial interface IHttpRoutePlanner
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Determines the route for a request.</para><para></para>
  31. /// </summary>
  32. /// <returns>
  33. /// <para>the route that the request should take</para>
  34. /// </returns>
  35. /// <java-name>
  36. /// determineRoute
  37. /// </java-name>
  38. [Dot42.DexImport("determineRoute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol" +
  39. "/HttpContext;)Lorg/apache/http/conn/routing/HttpRoute;", AccessFlags = 1025)]
  40. 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 */ ;
  41. }
  42. /// <summary>
  43. /// <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>
  44. /// </summary>
  45. /// <java-name>
  46. /// org/apache/http/conn/routing/RouteInfo
  47. /// </java-name>
  48. [Dot42.DexImport("org/apache/http/conn/routing/RouteInfo", AccessFlags = 1537)]
  49. public partial interface IRouteInfo
  50. /* scope: __dot42__ */
  51. {
  52. /// <summary>
  53. /// <para>Obtains the target host.</para><para></para>
  54. /// </summary>
  55. /// <returns>
  56. /// <para>the target host </para>
  57. /// </returns>
  58. /// <java-name>
  59. /// getTargetHost
  60. /// </java-name>
  61. [Dot42.DexImport("getTargetHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 1025)]
  62. global::Org.Apache.Http.HttpHost GetTargetHost() /* MethodBuilder.Create */ ;
  63. /// <summary>
  64. /// <para>Obtains the local address to connect from.</para><para></para>
  65. /// </summary>
  66. /// <returns>
  67. /// <para>the local address, or <code>null</code> </para>
  68. /// </returns>
  69. /// <java-name>
  70. /// getLocalAddress
  71. /// </java-name>
  72. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1025)]
  73. global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */ ;
  74. /// <summary>
  75. /// <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>
  76. /// </summary>
  77. /// <returns>
  78. /// <para>the number of hops in this route </para>
  79. /// </returns>
  80. /// <java-name>
  81. /// getHopCount
  82. /// </java-name>
  83. [Dot42.DexImport("getHopCount", "()I", AccessFlags = 1025)]
  84. int GetHopCount() /* MethodBuilder.Create */ ;
  85. /// <summary>
  86. /// <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>
  87. /// </summary>
  88. /// <returns>
  89. /// <para>the target of the given hop</para>
  90. /// </returns>
  91. /// <java-name>
  92. /// getHopTarget
  93. /// </java-name>
  94. [Dot42.DexImport("getHopTarget", "(I)Lorg/apache/http/HttpHost;", AccessFlags = 1025)]
  95. global::Org.Apache.Http.HttpHost GetHopTarget(int hop) /* MethodBuilder.Create */ ;
  96. /// <summary>
  97. /// <para>Obtains the first proxy host.</para><para></para>
  98. /// </summary>
  99. /// <returns>
  100. /// <para>the first proxy in the proxy chain, or <code>null</code> if this route is direct </para>
  101. /// </returns>
  102. /// <java-name>
  103. /// getProxyHost
  104. /// </java-name>
  105. [Dot42.DexImport("getProxyHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 1025)]
  106. global::Org.Apache.Http.HttpHost GetProxyHost() /* MethodBuilder.Create */ ;
  107. /// <summary>
  108. /// <para>Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  109. /// </summary>
  110. /// <returns>
  111. /// <para>the tunnelling type </para>
  112. /// </returns>
  113. /// <java-name>
  114. /// getTunnelType
  115. /// </java-name>
  116. [Dot42.DexImport("getTunnelType", "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 1025)]
  117. global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType GetTunnelType() /* MethodBuilder.Create */ ;
  118. /// <summary>
  119. /// <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>
  120. /// </summary>
  121. /// <returns>
  122. /// <para><code>true</code> if tunnelled end-to-end through at least one proxy, <code>false</code> otherwise </para>
  123. /// </returns>
  124. /// <java-name>
  125. /// isTunnelled
  126. /// </java-name>
  127. [Dot42.DexImport("isTunnelled", "()Z", AccessFlags = 1025)]
  128. bool IsTunnelled() /* MethodBuilder.Create */ ;
  129. /// <summary>
  130. /// <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>
  131. /// </summary>
  132. /// <returns>
  133. /// <para>the layering type </para>
  134. /// </returns>
  135. /// <java-name>
  136. /// getLayerType
  137. /// </java-name>
  138. [Dot42.DexImport("getLayerType", "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 1025)]
  139. global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType GetLayerType() /* MethodBuilder.Create */ ;
  140. /// <summary>
  141. /// <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>
  142. /// </summary>
  143. /// <returns>
  144. /// <para><code>true</code> if layered, <code>false</code> otherwise </para>
  145. /// </returns>
  146. /// <java-name>
  147. /// isLayered
  148. /// </java-name>
  149. [Dot42.DexImport("isLayered", "()Z", AccessFlags = 1025)]
  150. bool IsLayered() /* MethodBuilder.Create */ ;
  151. /// <summary>
  152. /// <para>Checks whether this route is secure.</para><para></para>
  153. /// </summary>
  154. /// <returns>
  155. /// <para><code>true</code> if secure, <code>false</code> otherwise </para>
  156. /// </returns>
  157. /// <java-name>
  158. /// isSecure
  159. /// </java-name>
  160. [Dot42.DexImport("isSecure", "()Z", AccessFlags = 1025)]
  161. bool IsSecure() /* MethodBuilder.Create */ ;
  162. }
  163. /// <java-name>
  164. /// org/apache/http/conn/routing/RouteInfo$LayerType
  165. /// </java-name>
  166. [Dot42.DexImport("org/apache/http/conn/routing/RouteInfo$LayerType", AccessFlags = 16409, Signature = "Ljava/lang/Enum<Lorg/apache/http/conn/routing/RouteInfo$LayerType;>;")]
  167. public sealed class IRouteInfo_LayerType
  168. /* scope: __dot42__ */
  169. {
  170. /// <java-name>
  171. /// LAYERED
  172. /// </java-name>
  173. [Dot42.DexImport("LAYERED", "Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 16409)]
  174. public static readonly global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType LAYERED;
  175. /// <java-name>
  176. /// PLAIN
  177. /// </java-name>
  178. [Dot42.DexImport("PLAIN", "Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 16409)]
  179. public static readonly global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType PLAIN;
  180. private IRouteInfo_LayerType() /* TypeBuilder.AddPrivateDefaultCtor */
  181. {
  182. }
  183. }
  184. /// <java-name>
  185. /// org/apache/http/conn/routing/RouteInfo$TunnelType
  186. /// </java-name>
  187. [Dot42.DexImport("org/apache/http/conn/routing/RouteInfo$TunnelType", AccessFlags = 16409, Signature = "Ljava/lang/Enum<Lorg/apache/http/conn/routing/RouteInfo$TunnelType;>;")]
  188. public sealed class IRouteInfo_TunnelType
  189. /* scope: __dot42__ */
  190. {
  191. /// <java-name>
  192. /// PLAIN
  193. /// </java-name>
  194. [Dot42.DexImport("PLAIN", "Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 16409)]
  195. public static readonly global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType PLAIN;
  196. /// <java-name>
  197. /// TUNNELLED
  198. /// </java-name>
  199. [Dot42.DexImport("TUNNELLED", "Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 16409)]
  200. public static readonly global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType TUNNELLED;
  201. private IRouteInfo_TunnelType() /* TypeBuilder.AddPrivateDefaultCtor */
  202. {
  203. }
  204. }
  205. /// <summary>
  206. /// <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>
  207. /// </summary>
  208. /// <java-name>
  209. /// org/apache/http/conn/routing/HttpRoute
  210. /// </java-name>
  211. [Dot42.DexImport("org/apache/http/conn/routing/HttpRoute", AccessFlags = 49)]
  212. public sealed partial class HttpRoute : global::Org.Apache.Http.Conn.Routing.IRouteInfo, global::Java.Lang.ICloneable
  213. /* scope: __dot42__ */
  214. {
  215. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;[Lorg/apache/http/HttpHost;ZLorg" +
  216. "/apache/http/conn/routing/RouteInfo$TunnelType;Lorg/apache/http/conn/routing/Rou" +
  217. "teInfo$LayerType;)V", AccessFlags = 1)]
  218. 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 */
  219. {
  220. }
  221. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/HttpHost;ZLorg/" +
  222. "apache/http/conn/routing/RouteInfo$TunnelType;Lorg/apache/http/conn/routing/Rout" +
  223. "eInfo$LayerType;)V", AccessFlags = 1)]
  224. 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 */
  225. {
  226. }
  227. /// <summary>
  228. /// <para>Creates a new direct route. That is a route without a proxy.</para><para></para>
  229. /// </summary>
  230. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Z)V", AccessFlags = 1)]
  231. public HttpRoute(global::Org.Apache.Http.HttpHost target, global::Java.Net.InetAddress local, bool secure) /* MethodBuilder.Create */
  232. {
  233. }
  234. /// <summary>
  235. /// <para>Creates a new direct insecure route.</para><para></para>
  236. /// </summary>
  237. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;)V", AccessFlags = 1)]
  238. public HttpRoute(global::Org.Apache.Http.HttpHost target) /* MethodBuilder.Create */
  239. {
  240. }
  241. /// <summary>
  242. /// <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>
  243. /// </summary>
  244. [Dot42.DexImport("<init>", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/HttpHost;Z)V", AccessFlags = 1)]
  245. public HttpRoute(global::Org.Apache.Http.HttpHost target, global::Java.Net.InetAddress local, global::Org.Apache.Http.HttpHost proxy, bool secure) /* MethodBuilder.Create */
  246. {
  247. }
  248. /// <summary>
  249. /// <para>Obtains the target host.</para><para></para>
  250. /// </summary>
  251. /// <returns>
  252. /// <para>the target host </para>
  253. /// </returns>
  254. /// <java-name>
  255. /// getTargetHost
  256. /// </java-name>
  257. [Dot42.DexImport("getTargetHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  258. public global::Org.Apache.Http.HttpHost GetTargetHost() /* MethodBuilder.Create */
  259. {
  260. return default(global::Org.Apache.Http.HttpHost);
  261. }
  262. /// <summary>
  263. /// <para>Obtains the local address to connect from.</para><para></para>
  264. /// </summary>
  265. /// <returns>
  266. /// <para>the local address, or <code>null</code> </para>
  267. /// </returns>
  268. /// <java-name>
  269. /// getLocalAddress
  270. /// </java-name>
  271. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 17)]
  272. public global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */
  273. {
  274. return default(global::Java.Net.InetAddress);
  275. }
  276. /// <summary>
  277. /// <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>
  278. /// </summary>
  279. /// <returns>
  280. /// <para>the number of hops in this route </para>
  281. /// </returns>
  282. /// <java-name>
  283. /// getHopCount
  284. /// </java-name>
  285. [Dot42.DexImport("getHopCount", "()I", AccessFlags = 17)]
  286. public int GetHopCount() /* MethodBuilder.Create */
  287. {
  288. return default(int);
  289. }
  290. /// <summary>
  291. /// <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>
  292. /// </summary>
  293. /// <returns>
  294. /// <para>the target of the given hop</para>
  295. /// </returns>
  296. /// <java-name>
  297. /// getHopTarget
  298. /// </java-name>
  299. [Dot42.DexImport("getHopTarget", "(I)Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  300. public global::Org.Apache.Http.HttpHost GetHopTarget(int hop) /* MethodBuilder.Create */
  301. {
  302. return default(global::Org.Apache.Http.HttpHost);
  303. }
  304. /// <summary>
  305. /// <para>Obtains the first proxy host.</para><para></para>
  306. /// </summary>
  307. /// <returns>
  308. /// <para>the first proxy in the proxy chain, or <code>null</code> if this route is direct </para>
  309. /// </returns>
  310. /// <java-name>
  311. /// getProxyHost
  312. /// </java-name>
  313. [Dot42.DexImport("getProxyHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  314. public global::Org.Apache.Http.HttpHost GetProxyHost() /* MethodBuilder.Create */
  315. {
  316. return default(global::Org.Apache.Http.HttpHost);
  317. }
  318. /// <summary>
  319. /// <para>Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  320. /// </summary>
  321. /// <returns>
  322. /// <para>the tunnelling type </para>
  323. /// </returns>
  324. /// <java-name>
  325. /// getTunnelType
  326. /// </java-name>
  327. [Dot42.DexImport("getTunnelType", "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 17)]
  328. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType GetTunnelType() /* MethodBuilder.Create */
  329. {
  330. return default(global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType);
  331. }
  332. /// <summary>
  333. /// <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>
  334. /// </summary>
  335. /// <returns>
  336. /// <para><code>true</code> if tunnelled end-to-end through at least one proxy, <code>false</code> otherwise </para>
  337. /// </returns>
  338. /// <java-name>
  339. /// isTunnelled
  340. /// </java-name>
  341. [Dot42.DexImport("isTunnelled", "()Z", AccessFlags = 17)]
  342. public bool IsTunnelled() /* MethodBuilder.Create */
  343. {
  344. return default(bool);
  345. }
  346. /// <summary>
  347. /// <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>
  348. /// </summary>
  349. /// <returns>
  350. /// <para>the layering type </para>
  351. /// </returns>
  352. /// <java-name>
  353. /// getLayerType
  354. /// </java-name>
  355. [Dot42.DexImport("getLayerType", "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 17)]
  356. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType GetLayerType() /* MethodBuilder.Create */
  357. {
  358. return default(global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType);
  359. }
  360. /// <summary>
  361. /// <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>
  362. /// </summary>
  363. /// <returns>
  364. /// <para><code>true</code> if layered, <code>false</code> otherwise </para>
  365. /// </returns>
  366. /// <java-name>
  367. /// isLayered
  368. /// </java-name>
  369. [Dot42.DexImport("isLayered", "()Z", AccessFlags = 17)]
  370. public bool IsLayered() /* MethodBuilder.Create */
  371. {
  372. return default(bool);
  373. }
  374. /// <summary>
  375. /// <para>Checks whether this route is secure.</para><para></para>
  376. /// </summary>
  377. /// <returns>
  378. /// <para><code>true</code> if secure, <code>false</code> otherwise </para>
  379. /// </returns>
  380. /// <java-name>
  381. /// isSecure
  382. /// </java-name>
  383. [Dot42.DexImport("isSecure", "()Z", AccessFlags = 17)]
  384. public bool IsSecure() /* MethodBuilder.Create */
  385. {
  386. return default(bool);
  387. }
  388. /// <summary>
  389. /// <para>Compares this route to another.</para><para></para>
  390. /// </summary>
  391. /// <returns>
  392. /// <para><code>true</code> if the argument is the same route, <code>false</code> </para>
  393. /// </returns>
  394. /// <java-name>
  395. /// equals
  396. /// </java-name>
  397. [Dot42.DexImport("equals", "(Ljava/lang/Object;)Z", AccessFlags = 17)]
  398. public override bool Equals(object o) /* MethodBuilder.Create */
  399. {
  400. return default(bool);
  401. }
  402. /// <summary>
  403. /// <para>Generates a hash code for this route.</para><para></para>
  404. /// </summary>
  405. /// <returns>
  406. /// <para>the hash code </para>
  407. /// </returns>
  408. /// <java-name>
  409. /// hashCode
  410. /// </java-name>
  411. [Dot42.DexImport("hashCode", "()I", AccessFlags = 17)]
  412. public override int GetHashCode() /* MethodBuilder.Create */
  413. {
  414. return default(int);
  415. }
  416. /// <summary>
  417. /// <para>Obtains a description of this route.</para><para></para>
  418. /// </summary>
  419. /// <returns>
  420. /// <para>a human-readable representation of this route </para>
  421. /// </returns>
  422. /// <java-name>
  423. /// toString
  424. /// </java-name>
  425. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 17)]
  426. public override string ToString() /* MethodBuilder.Create */
  427. {
  428. return default(string);
  429. }
  430. /// <java-name>
  431. /// clone
  432. /// </java-name>
  433. [Dot42.DexImport("clone", "()Ljava/lang/Object;", AccessFlags = 1)]
  434. public object Clone() /* MethodBuilder.Create */
  435. {
  436. return default(object);
  437. }
  438. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  439. internal HttpRoute() /* TypeBuilder.AddDefaultConstructor */
  440. {
  441. }
  442. /// <summary>
  443. /// <para>Obtains the target host.</para><para></para>
  444. /// </summary>
  445. /// <returns>
  446. /// <para>the target host </para>
  447. /// </returns>
  448. /// <java-name>
  449. /// getTargetHost
  450. /// </java-name>
  451. public global::Org.Apache.Http.HttpHost TargetHost
  452. {
  453. [Dot42.DexImport("getTargetHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  454. get{ return GetTargetHost(); }
  455. }
  456. /// <summary>
  457. /// <para>Obtains the local address to connect from.</para><para></para>
  458. /// </summary>
  459. /// <returns>
  460. /// <para>the local address, or <code>null</code> </para>
  461. /// </returns>
  462. /// <java-name>
  463. /// getLocalAddress
  464. /// </java-name>
  465. public global::Java.Net.InetAddress LocalAddress
  466. {
  467. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 17)]
  468. get{ return GetLocalAddress(); }
  469. }
  470. /// <summary>
  471. /// <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>
  472. /// </summary>
  473. /// <returns>
  474. /// <para>the number of hops in this route </para>
  475. /// </returns>
  476. /// <java-name>
  477. /// getHopCount
  478. /// </java-name>
  479. public int HopCount
  480. {
  481. [Dot42.DexImport("getHopCount", "()I", AccessFlags = 17)]
  482. get{ return GetHopCount(); }
  483. }
  484. /// <summary>
  485. /// <para>Obtains the first proxy host.</para><para></para>
  486. /// </summary>
  487. /// <returns>
  488. /// <para>the first proxy in the proxy chain, or <code>null</code> if this route is direct </para>
  489. /// </returns>
  490. /// <java-name>
  491. /// getProxyHost
  492. /// </java-name>
  493. public global::Org.Apache.Http.HttpHost ProxyHost
  494. {
  495. [Dot42.DexImport("getProxyHost", "()Lorg/apache/http/HttpHost;", AccessFlags = 17)]
  496. get{ return GetProxyHost(); }
  497. }
  498. /// <summary>
  499. /// <para>Obtains the tunnel type of this route. If there is a proxy chain, only end-to-end tunnels are considered.</para><para></para>
  500. /// </summary>
  501. /// <returns>
  502. /// <para>the tunnelling type </para>
  503. /// </returns>
  504. /// <java-name>
  505. /// getTunnelType
  506. /// </java-name>
  507. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_TunnelType TunnelType
  508. {
  509. [Dot42.DexImport("getTunnelType", "()Lorg/apache/http/conn/routing/RouteInfo$TunnelType;", AccessFlags = 17)]
  510. get{ return GetTunnelType(); }
  511. }
  512. /// <summary>
  513. /// <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>
  514. /// </summary>
  515. /// <returns>
  516. /// <para>the layering type </para>
  517. /// </returns>
  518. /// <java-name>
  519. /// getLayerType
  520. /// </java-name>
  521. public global::Org.Apache.Http.Conn.Routing.IRouteInfo_LayerType LayerType
  522. {
  523. [Dot42.DexImport("getLayerType", "()Lorg/apache/http/conn/routing/RouteInfo$LayerType;", AccessFlags = 17)]
  524. get{ return GetLayerType(); }
  525. }
  526. }
  527. /// <summary>
  528. /// <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>
  529. /// </summary>
  530. /// <java-name>
  531. /// org/apache/http/conn/routing/HttpRouteDirector
  532. /// </java-name>
  533. [Dot42.DexImport("org/apache/http/conn/routing/HttpRouteDirector", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
  534. public static partial class IHttpRouteDirectorConstants
  535. /* scope: __dot42__ */
  536. {
  537. /// <summary>
  538. /// <para>Indicates that the route can not be established at all. </para>
  539. /// </summary>
  540. /// <java-name>
  541. /// UNREACHABLE
  542. /// </java-name>
  543. [Dot42.DexImport("UNREACHABLE", "I", AccessFlags = 25)]
  544. public const int UNREACHABLE = -1;
  545. /// <summary>
  546. /// <para>Indicates that the route is complete. </para>
  547. /// </summary>
  548. /// <java-name>
  549. /// COMPLETE
  550. /// </java-name>
  551. [Dot42.DexImport("COMPLETE", "I", AccessFlags = 25)]
  552. public const int COMPLETE = 0;
  553. /// <summary>
  554. /// <para>Step: open connection to target. </para>
  555. /// </summary>
  556. /// <java-name>
  557. /// CONNECT_TARGET
  558. /// </java-name>
  559. [Dot42.DexImport("CONNECT_TARGET", "I", AccessFlags = 25)]
  560. public const int CONNECT_TARGET = 1;
  561. /// <summary>
  562. /// <para>Step: open connection to proxy. </para>
  563. /// </summary>
  564. /// <java-name>
  565. /// CONNECT_PROXY
  566. /// </java-name>
  567. [Dot42.DexImport("CONNECT_PROXY", "I", AccessFlags = 25)]
  568. public const int CONNECT_PROXY = 2;
  569. /// <summary>
  570. /// <para>Step: tunnel through proxy to target. </para>
  571. /// </summary>
  572. /// <java-name>
  573. /// TUNNEL_TARGET
  574. /// </java-name>
  575. [Dot42.DexImport("TUNNEL_TARGET", "I", AccessFlags = 25)]
  576. public const int TUNNEL_TARGET = 3;
  577. /// <summary>
  578. /// <para>Step: tunnel through proxy to other proxy. </para>
  579. /// </summary>
  580. /// <java-name>
  581. /// TUNNEL_PROXY
  582. /// </java-name>
  583. [Dot42.DexImport("TUNNEL_PROXY", "I", AccessFlags = 25)]
  584. public const int TUNNEL_PROXY = 4;
  585. /// <summary>
  586. /// <para>Step: layer protocol (over tunnel). </para>
  587. /// </summary>
  588. /// <java-name>
  589. /// LAYER_PROTOCOL
  590. /// </java-name>
  591. [Dot42.DexImport("LAYER_PROTOCOL", "I", AccessFlags = 25)]
  592. public const int LAYER_PROTOCOL = 5;
  593. }
  594. /// <summary>
  595. /// <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>
  596. /// </summary>
  597. /// <java-name>
  598. /// org/apache/http/conn/routing/HttpRouteDirector
  599. /// </java-name>
  600. [Dot42.DexImport("org/apache/http/conn/routing/HttpRouteDirector", AccessFlags = 1537)]
  601. public partial interface IHttpRouteDirector
  602. /* scope: __dot42__ */
  603. {
  604. /// <summary>
  605. /// <para>Provides the next step.</para><para></para>
  606. /// </summary>
  607. /// <returns>
  608. /// <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>
  609. /// </returns>
  610. /// <java-name>
  611. /// nextStep
  612. /// </java-name>
  613. [Dot42.DexImport("nextStep", "(Lorg/apache/http/conn/routing/RouteInfo;Lorg/apache/http/conn/routing/RouteInfo;" +
  614. ")I", AccessFlags = 1025)]
  615. int NextStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan, global::Org.Apache.Http.Conn.Routing.IRouteInfo fact) /* MethodBuilder.Create */ ;
  616. }
  617. /// <summary>
  618. /// <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>
  619. /// </summary>
  620. /// <java-name>
  621. /// org/apache/http/conn/routing/BasicRouteDirector
  622. /// </java-name>
  623. [Dot42.DexImport("org/apache/http/conn/routing/BasicRouteDirector", AccessFlags = 33)]
  624. public partial class BasicRouteDirector : global::Org.Apache.Http.Conn.Routing.IHttpRouteDirector
  625. /* scope: __dot42__ */
  626. {
  627. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  628. public BasicRouteDirector() /* MethodBuilder.Create */
  629. {
  630. }
  631. /// <summary>
  632. /// <para>Provides the next step.</para><para></para>
  633. /// </summary>
  634. /// <returns>
  635. /// <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>
  636. /// </returns>
  637. /// <java-name>
  638. /// nextStep
  639. /// </java-name>
  640. [Dot42.DexImport("nextStep", "(Lorg/apache/http/conn/routing/RouteInfo;Lorg/apache/http/conn/routing/RouteInfo;" +
  641. ")I", AccessFlags = 1)]
  642. public virtual int NextStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan, global::Org.Apache.Http.Conn.Routing.IRouteInfo fact) /* MethodBuilder.Create */
  643. {
  644. return default(int);
  645. }
  646. /// <summary>
  647. /// <para>Determines the first step to establish a route.</para><para></para>
  648. /// </summary>
  649. /// <returns>
  650. /// <para>the first step </para>
  651. /// </returns>
  652. /// <java-name>
  653. /// firstStep
  654. /// </java-name>
  655. [Dot42.DexImport("firstStep", "(Lorg/apache/http/conn/routing/RouteInfo;)I", AccessFlags = 4)]
  656. protected internal virtual int FirstStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan) /* MethodBuilder.Create */
  657. {
  658. return default(int);
  659. }
  660. /// <summary>
  661. /// <para>Determines the next step to establish a direct connection.</para><para></para>
  662. /// </summary>
  663. /// <returns>
  664. /// <para>one of the constants defined in this class, indicating either the next step to perform, or success, or failure </para>
  665. /// </returns>
  666. /// <java-name>
  667. /// directStep
  668. /// </java-name>
  669. [Dot42.DexImport("directStep", "(Lorg/apache/http/conn/routing/RouteInfo;Lorg/apache/http/conn/routing/RouteInfo;" +
  670. ")I", AccessFlags = 4)]
  671. protected internal virtual int DirectStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan, global::Org.Apache.Http.Conn.Routing.IRouteInfo fact) /* MethodBuilder.Create */
  672. {
  673. return default(int);
  674. }
  675. /// <summary>
  676. /// <para>Determines the next step to establish a connection via proxy.</para><para></para>
  677. /// </summary>
  678. /// <returns>
  679. /// <para>one of the constants defined in this class, indicating either the next step to perform, or success, or failure </para>
  680. /// </returns>
  681. /// <java-name>
  682. /// proxiedStep
  683. /// </java-name>
  684. [Dot42.DexImport("proxiedStep", "(Lorg/apache/http/conn/routing/RouteInfo;Lorg/apache/http/conn/routing/RouteInfo;" +
  685. ")I", AccessFlags = 4)]
  686. protected internal virtual int ProxiedStep(global::Org.Apache.Http.Conn.Routing.IRouteInfo plan, global::Org.Apache.Http.Conn.Routing.IRouteInfo fact) /* MethodBuilder.Create */
  687. {
  688. return default(int);
  689. }
  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. }