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()
- Alphabetic
- By Inheritance
- URI
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def authority: Option[String]
The coded authority for this URI.
The coded authority for this URI.
- returns
the authority, if any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val fragment: Option[String]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val host: Option[String]
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- val javaURI: java.net.URI
The underlying
java.net.URI. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val path: Option[String]
- val port: Option[Int]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val query: Option[String]
- 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)orFailure(Exception)
- 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)orFailure(Exception)
- 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)orFailure(Exception)
- val scheme: Option[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- def toURL: Try[URL]
Convert to a URL object.
Convert to a URL object.
- returns
Success(URL)orFailure(Exception)
- val userInfo: Option[String]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()