Android Guides | Samples

Org.Apache.Http.Conn.Routing.HttpRoute Class

The route for a request.

See Also: HttpRoute

Syntax

[Android.Runtime.Register("org/apache/http/conn/routing/HttpRoute", DoNotGenerateAcw=true)]
public sealed class HttpRoute : Object, ICloneable, IRouteInfo, IDisposable

Remarks

The route for a request. Instances of this class are unmodifiable and therefore suitable for use as lookup keys.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http.Conn.Routing
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Org.Apache.Http.Conn.Routing.HttpRoute are listed below.

See Also: Object

Public Constructors

Creates a new direct insecure route.
Creates a new direct route.
Creates a new route through a proxy.
Creates a new route with at most one proxy.
Creates a new route with all attributes specified explicitly.

Public Properties

[read-only]
HopCountInt32. Obtains the number of hops in this route.
[read-only]
IsLayeredBoolean. Checks whether this route includes a layered protocol.
[read-only]
IsSecureBoolean. Checks whether this route is secure.
[read-only]
IsTunnelledBoolean. Checks whether this route is tunnelled through a proxy.
[read-only]
LayerTypeRouteInfoLayerType. Obtains the layering type of this route.
[read-only]
LocalAddressInetAddress. Obtains the local address to connect from.
[read-only]
ProxyHostHttpHost. Obtains the first proxy host.
[read-only]
TargetHostHttpHost. Obtains the target host.
[read-only]
TunnelTypeRouteInfoTunnelType. Obtains the tunnel type of this route.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Clone() : Object
Creates and returns a copy of this Object.
override
Equals(Object) : Boolean
Compares this route to another.
override
GetHashCode() : Int32
Generates a hash code for this route.
GetHopTarget(Int32) : HttpHost
Obtains the target of a hop in this route.
override
ToString() : String
Obtains a description of this route.