Language

DefaultRedirectHandler.GetLocationURI(IHttpResponse, IHttpContext) Method

Definition

Gets the redirect location URI from the response.

[Android.Runtime.Register("getLocationURI", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Ljava/net/URI;", "GetGetLocationURI_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler")]
public virtual Java.Net.URI? GetLocationURI(Org.Apache.Http.IHttpResponse? response, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("getLocationURI", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Ljava/net/URI;", "GetGetLocationURI_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member GetLocationURI : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> Java.Net.URI
override this.GetLocationURI : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> Java.Net.URI

Parameters

response
IHttpResponse

The response that supplies the Location header and redirect parameters.

context
IHttpContext

The context that supplies the target host and current request for relative locations, and stores redirect history when circular redirects are disallowed.

Returns

URI

The resolved redirect location URI.

Implements

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to