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

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