URL

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

Attributes

Companion
class
Source
URL.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
URL.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(url: String): URL

Create a URL from a string, ensuring validity first.

Create a URL from a string, ensuring validity first. This URL constructor parses a url string for validity and then constructs the URL. In no case will it construct a URL with a basis.

Value parameters

url

The string to parse into a URL. Only supports file: http: and https: schemes

Attributes

Constructor
Source
URL.scala

Construct a URL from a partial path that is interpreted as the suffix to the current working directory (cwd).

Construct a URL from a partial path that is interpreted as the suffix to the current working directory (cwd).

Value parameters

path

The trailing path to add to the current working directory. This must not start with a '/' or an exception will be thrown.

Attributes

Returns

The corresponding URL

Source
URL.scala

Construct a URL from a path string.

Construct a URL from a path string. The entire path is taken as the basis of the URL so relative paths can be constructed from it. Generally only directory paths should be used with this constructor.

Value parameters

path

The full path of the intended URL. This *must* start with a / or an exception will be thrown.

Attributes

Returns

The corresponding URL

Source
URL.scala

Test if a string is a valid URL

Test if a string is a valid URL

Attributes

Source
URL.scala

Concrete fields

val empty: URL

The empty URL.

The empty URL.

Attributes

Source
URL.scala
final val fileScheme: "file"

Attributes

Source
URL.scala
final val httpScheme: "http"

Attributes

Source
URL.scala
final val httpsScheme: "https"

Attributes

Source
URL.scala