Class/Object

grizzled.net

URI

Related Docs: object URI | package net

Permalink

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

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)

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def authority: Option[String]

    Permalink

    The coded authority for this URI.

    The coded authority for this URI.

    returns

    the authority, if any

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. val fragment: Option[String]

    Permalink

    the fragment, if defined

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. val host: Option[String]

    Permalink

    the host, if defined

  12. val isAbsolute: Boolean

    Permalink

    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

    Permalink
    Definition Classes
    Any
  14. val isOpaque: Boolean

    Permalink

    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

    Permalink

    The underlying java.net.URI.

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def normalize: URI

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val path: Option[String]

    Permalink

    the path, if defined

  21. val port: Option[Int]

    Permalink

    the port, if defined

  22. val query: Option[String]

    Permalink

    the query string, if defined

  23. def relativize(uri: URI): Try[URI]

    Permalink

    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]

    Permalink

    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]

    Permalink

    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]

    Permalink

    the scheme, if defined

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toExternalForm: String

    Permalink

    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]

    Permalink

    Convert to a URL object.

    Convert to a URL object.

    returns

    Success(URL) or Failure(Exception)

  30. val userInfo: Option[String]

    Permalink

    the user info, if defined

  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped