URL

com.ossuminc.riddl.utils.URL
See theURL companion object

A RIDDL version of a URL since the JVM version isn't useful to Javascript. This just allows a simplified URL that has a scheme, authority, basis and path part.

Value parameters

authority

The authority part providing the basic location and credentials of the resource. The full syntax should be user@host:port. This field must not contain a /

basis

The "root" path or basis of the URL. This is for compatibility with "file" scheme as taken from java.nio.file.Path's functionality that the current working directory will be presumed as the root of the path. You can use the toBasisString method to get the URL without the path part. basis should not start with a /

path

The path of the resource. Fragments (part after #) can be included in the path if necessary. This URL implementation doesn't check the validity or existence of the fragment. path should not start with a /

scheme

The URL's scheme, either file, http, or https

Attributes

Companion
object
Source
URL.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Determine if the URL is empty.

Determine if the URL is empty. Empty URLs are valid

Attributes

Source
URL.scala

Determine if the URL is valid.

Determine if the URL is valid. URLs are valid if they are empty or they have a valid scheme name and the path is not empty

Attributes

Source
URL.scala

Determine if the URL is not empty

Determine if the URL is not empty

Attributes

Source
URL.scala
def parent: URL

Attributes

Source
URL.scala

Attributes

Source
URL.scala
def root: URL

Attributes

Source
URL.scala

Drop the path part of the URL and return it in classic URL String format

Drop the path part of the URL and return it in classic URL String format

Attributes

Source
URL.scala

An alternative name for toString for compatibility with java.net.URL

An alternative name for toString for compatibility with java.net.URL

Attributes

Source
URL.scala

Get the path component of the URL

Get the path component of the URL

Attributes

Source
URL.scala
override def toString: String

Return the URL in classic string format

Return the URL in classic string format

Attributes

Definition Classes
Any
Source
URL.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product