ScummVM API documentation
Networking::AndroidURL Class Reference
Inheritance diagram for Networking::AndroidURL:
Networking::URL

Public Member Functions

 AndroidURL (JNIEnv *env, jobject url)
 
Common::String getScheme () const override
 
Common::String getHost () const override
 
int getPort (bool returnDefault=false) const override
 

Static Public Member Functions

static URLparseURL (const Common::String &url)
 
- Static Public Member Functions inherited from Networking::URL
static URLparseURL (const Common::String &url)
 

Member Function Documentation

◆ getScheme()

Common::String Networking::AndroidURL::getScheme ( ) const
overridevirtual

Extracts the scheme of an URL parsed previously by parseURL.

Return values
Stringof the URL's scheme. e.g. "https".
Emptystring on failure.

Implements Networking::URL.

◆ getHost()

Common::String Networking::AndroidURL::getHost ( ) const
overridevirtual

Extracts the host name of an URL parsed previously by parseURL.

Return values
Stringof the URL's host name. e.g. "scummvm.org".
Emptystring on failure.

Implements Networking::URL.

◆ getPort()

int Networking::AndroidURL::getPort ( bool  returnDefault = false) const
overridevirtual

Extracts the port of an URL parsed previously by parseURL.

Parameters
returnDefaulttells libcurl to return the default port according to the URL's scheme if not explicitly defined
Return values
TheURL's port number if one exists.
0if no port found.
defaultport if returnDefault is true.
-1on failure.

Implements Networking::URL.


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