Udostępnij za pośrednictwem


IRedirectHandler.GetLocationURI(IHttpResponse, IHttpContext) Method

Definition

Determines the location request is expected to be redirected to given the response from the target server and the current request execution 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:Org.Apache.Http.Client.IRedirectHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public 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:Org.Apache.Http.Client.IRedirectHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetLocationURI : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> Java.Net.URI

Parameters

response
IHttpResponse

the response received from the target server

context
IHttpContext

the context for the request execution

Returns

URI
Attributes

Exceptions

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