Packages

final case class URI(scheme: Option[String], userInfo: Option[String], host: Option[String], port: Option[Int], path: Option[String], query: Option[String] = None, fragment: Option[String] = None) extends Product with Serializable

Convenient Scala case-class wrapper for a java.net.URI.

scheme

the scheme, if defined

userInfo

the user info, if defined

host

the host, if defined

port

the port, if defined

path

the path, if defined

query

the query string, if defined

fragment

the fragment, if defined

Annotations
@SuppressWarnings()
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. URI
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new URI(scheme: Option[String], userInfo: Option[String], host: Option[String], port: Option[Int], path: Option[String], query: Option[String] = None, fragment: Option[String] = None)

    scheme

    the scheme, if defined

    userInfo

    the user info, if defined

    host

    the host, if defined

    port

    the port, if defined

    path

    the path, if defined

    query

    the query string, if defined

    fragment

    the fragment, if defined

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def authority: Option[String]

    The coded authority for this URI.

    The coded authority for this URI.

    returns

    the authority, if any

  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. val fragment: Option[String]
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. val host: Option[String]
  12. val isAbsolute: Boolean

    Determine whether this URI is absolute or not.

    Determine whether this URI is absolute or not.

    returns

    true if absolute, false if not

  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val isOpaque: Boolean

    Determine whether this URI is opaque or not.

    Determine whether this URI is opaque or not.

    returns

    true if opaque, false if not

  15. val javaURI: java.net.URI

    The underlying java.net.URI.

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def normalize: URI

    Normalize the URI's path, returning a new URI.

    Normalize the URI's path, returning a new URI.

    returns

    a possibly normalized URI.

  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. val path: Option[String]
  21. val port: Option[Int]
  22. val query: Option[String]
  23. def relativize(uri: URI): Try[URI]

    Relativize another URI against this one.

    Relativize another URI against this one.

    uri

    the other URI

    returns

    Success(URI) or Failure(Exception)

  24. def resolve(str: String): Try[URI]

    Construct a new URI by parsing the given string and resolving it against this URI.

    Construct a new URI by parsing the given string and resolving it against this URI.

    str

    the string

    returns

    Success(URI) or Failure(Exception)

  25. def resolve(uri: URI): Try[URI]

    Resolve the given URI against this URI.

    Resolve the given URI against this URI.

    uri

    the other URI

    returns

    Success(URI) or Failure(Exception)

  26. val scheme: Option[String]
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toExternalForm: String

    Get the URI string representation of this URI (i.e., the string you could paste into a browser).

    Get the URI string representation of this URI (i.e., the string you could paste into a browser). Contrast this function with toString(), which gets the string representation of the object and its fields.

    returns

    the string

  29. def toURL: Try[URL]

    Convert to a URL object.

    Convert to a URL object.

    returns

    Success(URL) or Failure(Exception)

  30. val userInfo: Option[String]
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped