Package com.teamdev.jxbrowser.net
Interface Scheme
public interface Scheme
The scheme component of a URL.
-
Field Summary
-
Method Summary
-
Field Details
-
HTTP
-
HTTPS
-
JAR
The scheme can be used to access resources located inside a JAR file.The JAR scheme will be treated as the standard "https" scheme.
By default, the URL to a resource located inside a JAR file has the "jar:file:" scheme which is treated as a non-standard scheme such as "jar:file:/path/*.jar!/path/resource.file". So, it will be canonicalized to the "jar://file/path/*.jar!/path/resource.file" form.
-
-
Method Details
-
of
Returns theScheme
instance for the given name.- Throws:
IllegalArgumentException
- when thename
is empty of blank- Implementation Note:
- The given scheme name will be converted to lower case using
String.toLowerCase()
.
-
name
Returns a string that represents the name of the scheme.
-