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

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