URLStreamHandler.SetURL Method

Definition

Overloads

SetURL(URL, String, String, Int32, String, String)
Obsolete.

Sets the fields of the URL argument to the indicated values.

SetURL(URL, String, String, Int32, String, String, String, String, String)

Sets the fields of the URL argument to the indicated values.

SetURL(URL, String, String, Int32, String, String)

Caution

deprecated

Sets the fields of the URL argument to the indicated values.

[Android.Runtime.Register("setURL", "(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V", "GetSetURL_Ljava_net_URL_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
protected virtual void SetURL (Java.Net.URL? u, string? protocol, string? host, int port, string? file, string? ref);
[<Android.Runtime.Register("setURL", "(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V", "GetSetURL_Ljava_net_URL_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetURL : Java.Net.URL * string * string * int * string * string -> unit
override this.SetURL : Java.Net.URL * string * string * int * string * string -> unit

Parameters

u
URL

the URL to modify.

protocol
String

the protocol name. This value is ignored since 1.2.

host
String

the remote host value for the URL.

port
Int32

the port on the remote machine.

file
String

the file.

ref
String

the reference.

Attributes

Remarks

Sets the fields of the URL argument to the indicated values. Only classes derived from URLStreamHandler are able to use this method to set the values of the URL fields.

This member is deprecated. Use setURL(URL, String, String, int, String, String, String, String);

Java documentation for java.net.URLStreamHandler.setURL(java.net.URL, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String).

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

SetURL(URL, String, String, Int32, String, String, String, String, String)

Sets the fields of the URL argument to the indicated values.

[Android.Runtime.Register("setURL", "(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetSetURL_Ljava_net_URL_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
protected virtual void SetURL (Java.Net.URL? u, string? protocol, string? host, int port, string? authority, string? userInfo, string? path, string? query, string? ref);
[<Android.Runtime.Register("setURL", "(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "GetSetURL_Ljava_net_URL_Ljava_lang_String_Ljava_lang_String_ILjava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member SetURL : Java.Net.URL * string * string * int * string * string * string * string * string -> unit
override this.SetURL : Java.Net.URL * string * string * int * string * string * string * string * string -> unit

Parameters

u
URL

the URL to modify.

protocol
String

the protocol name.

host
String

the remote host value for the URL.

port
Int32

the port on the remote machine.

authority
String

the authority part for the URL.

userInfo
String

the userInfo part of the URL.

path
String

the path component of the URL.

query
String

the query part for the URL.

ref
String

the reference.

Attributes

Remarks

Sets the fields of the URL argument to the indicated values. Only classes derived from URLStreamHandler are able to use this method to set the values of the URL fields.

Added in 1.3.

Java documentation for java.net.URLStreamHandler.setURL(java.net.URL, java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String).

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