URIUtils.RewriteURI Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RewriteURI(URI, HttpHost) |
A convenience method for creating a new URI whose scheme, host and port are taken from the target host, but whose path, query and fragment are taken from the existing URI. |
RewriteURI(URI, HttpHost, Boolean) |
A convenience method for creating a new URI whose scheme, host and port are taken from the target host, but whose path, query and fragment are taken from the existing URI. |
RewriteURI(URI, HttpHost)
A convenience method for creating a new URI whose scheme, host and port are taken from the target host, but whose path, query and fragment are taken from the existing URI.
[Android.Runtime.Register("rewriteURI", "(Ljava/net/URI;Lorg/apache/http/HttpHost;)Ljava/net/URI;", "")]
public static Java.Net.URI? RewriteURI (Java.Net.URI? uri, Org.Apache.Http.HttpHost? target);
[<Android.Runtime.Register("rewriteURI", "(Ljava/net/URI;Lorg/apache/http/HttpHost;)Ljava/net/URI;", "")>]
static member RewriteURI : Java.Net.URI * Org.Apache.Http.HttpHost -> Java.Net.URI
Parameters
- uri
- URI
- target
- HttpHost
Returns
- 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
RewriteURI(URI, HttpHost, Boolean)
A convenience method for creating a new URI whose scheme, host and port are taken from the target host, but whose path, query and fragment are taken from the existing URI.
[Android.Runtime.Register("rewriteURI", "(Ljava/net/URI;Lorg/apache/http/HttpHost;Z)Ljava/net/URI;", "")]
public static Java.Net.URI? RewriteURI (Java.Net.URI? uri, Org.Apache.Http.HttpHost? target, bool dropFragment);
[<Android.Runtime.Register("rewriteURI", "(Ljava/net/URI;Lorg/apache/http/HttpHost;Z)Ljava/net/URI;", "")>]
static member RewriteURI : Java.Net.URI * Org.Apache.Http.HttpHost * bool -> Java.Net.URI
Parameters
- uri
- URI
Contains the path, query and fragment to use.
- target
- HttpHost
Contains the scheme, host and port to use.
- dropFragment
- Boolean
True if the fragment should not be copied.
Returns
- Attributes
Exceptions
If the resulting URI is invalid.
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.