mirror of
https://github.com/fankes/termux-app.git
synced 2025-10-22 03:39:21 +08:00
Added: Add UriScheme and move UriUtils to com.termux.shared.net package
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.termux.shared.models.net;
|
||||
|
||||
import android.net.Uri;
|
||||
|
||||
/**
|
||||
* The {@link Uri} schemes.
|
||||
*
|
||||
* https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
|
||||
* https://en.wikipedia.org/wiki/List_of_URI_schemes
|
||||
*/
|
||||
public class UriScheme {
|
||||
|
||||
/** Android app resource. */
|
||||
public static final String SCHEME_ANDROID_RESOURCE = "android.resource";
|
||||
|
||||
/** Android content provider. https://www.iana.org/assignments/uri-schemes/prov/content. */
|
||||
public static final String SCHEME_CONTENT = "content";
|
||||
|
||||
/** Filesystem or android app asset. https://www.rfc-editor.org/rfc/rfc8089.html. */
|
||||
public static final String SCHEME_FILE = "file";
|
||||
|
||||
/* Hypertext Transfer Protocol. */
|
||||
public static final String SCHEME_HTTP = "http";
|
||||
|
||||
/* Hypertext Transfer Protocol Secure. */
|
||||
public static final String SCHEME_HTTPS = "https";
|
||||
|
||||
}
|
Reference in New Issue
Block a user