jaulib v1.1.2-115-g39e35fd
Jau Support Library (C++, Java, ..)
Static Public Member Functions | List of all members
org.jau.io.UriTk Class Reference

Limited URI toolkit to query handled protocols by the IO implementation. More...

Collaboration diagram for org.jau.io.UriTk:

Static Public Member Functions

static native List< String > supported_protocols ()
 Returns a list of supported protocol supported by libcurl network protocols, queried at runtime. More...
 
static native String get_scheme (final String uri)
 Returns the valid uri-scheme from given uri, which is empty if no valid scheme is included. More...
 
static native boolean protocol_supported (final String uri)
 Returns true if the uri-scheme of given uri matches a supported by libcurl network protocols otherwise false. More...
 
static native boolean is_local_file_protocol (final String uri)
 Returns true if the uri-scheme of given uri matches the local file protocol, i.e. More...
 

Detailed Description

Limited URI toolkit to query handled protocols by the IO implementation.

The URI scheme functionality exposed here is limited and only provided to decide whether the used implementation is able to handle the protocol. This is not a replacement for a proper URI class.

Definition at line 34 of file UriTk.java.

Member Function Documentation

◆ get_scheme()

static native String org.jau.io.UriTk.get_scheme ( final String  uri)
static

Returns the valid uri-scheme from given uri, which is empty if no valid scheme is included.

The given uri must included at least a colon after the uri-scheme part.

Parameters
urian uri
Returns
valid uri-scheme, empty if non found

◆ is_local_file_protocol()

static native boolean org.jau.io.UriTk.is_local_file_protocol ( final String  uri)
static

Returns true if the uri-scheme of given uri matches the local file protocol, i.e.

starts with file://.

Parameters
urian uri to test
Here is the caller graph for this function:

◆ protocol_supported()

static native boolean org.jau.io.UriTk.protocol_supported ( final String  uri)
static

Returns true if the uri-scheme of given uri matches a supported by libcurl network protocols otherwise false.

The uri-scheme is retrieved via get_scheme() passing given uri, hence must included at least a colon after the uri-scheme part.

The libcurl supported protocols is queried at runtime, see supported_protocols().

Parameters
urian uri to test
Returns
true if the uri-scheme of given uri is supported, otherwise false.
See also
supported_protocols()
get_scheme()
Here is the caller graph for this function:

◆ supported_protocols()

static native List< String > org.jau.io.UriTk.supported_protocols ( )
static

Returns a list of supported protocol supported by libcurl network protocols, queried at runtime.

See also
protocol_supported()
Here is the caller graph for this function:

The documentation for this class was generated from the following file: