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

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