grizzled.net

URI

case class URI(scheme: Option[String], userInfo: Option[String], host: Option[String], port: Option[Int], path: Option[String], query: Option[String] = scala.None, fragment: Option[String] = scala.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
Learn more about member selection
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] = scala.None, fragment: Option[String] = scala.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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def authority: Option[String]

    The coded authority for this URI.

    The coded authority for this URI.

    returns

    the authority, if any

  8. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  10. def finalize(): Unit

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

    the fragment, if defined

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

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

    the host, if defined

  14. 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

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. 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

  17. val javaURI: java.net.URI

    The underlying java.net.URI.

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

    Definition Classes
    AnyRef
  19. 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.

  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. val path: Option[String]

    the path, if defined

  23. val port: Option[Int]

    the port, if defined

  24. val query: Option[String]

    the query string, if defined

  25. 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)

  26. 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)

  27. 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)

  28. val scheme: Option[String]

    the scheme, if defined

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

    Definition Classes
    AnyRef
  30. def toExternalForm: String

    Get the URI string representation of this URI (i.

    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

  31. def toURL: Try[URL]

    Convert to a URL object.

    Convert to a URL object.

    returns

    Success(URL) or Failure(Exception)

  32. val userInfo: Option[String]

    the user info, if defined

  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped