final case class Path extends Product with Serializable

Path is an immutable representation of the path of a URL. Internally it stores each element of a path in a sequence of text, together with flags on whether there are leading and trailing slashes in the path. This allows for a combination of precision and performance and supports a rich API.

Self Type
Path
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Path
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(that: Path): Path

    Combines two paths together to create a new one, having a leading slash if only the left path has a leading slash, and a trailing slash if only the right path has a trailing slash.

    Combines two paths together to create a new one, having a leading slash if only the left path has a leading slash, and a trailing slash if only the right path has a trailing slash. Note that if you concat the empty path to any other path, either on the left or right hand side, you get back that same path unmodified.

  4. def /(name: String): Path

    Appends a segment at the end of the path.

    Appends a segment at the end of the path.

    If there is already a trailing slash when you append a segment, then the trailing slash will be removed (more precisely, it becomes the slash that separates the existing path from the new segment).

  5. def /:(name: String): Path

    Prepends the path with the provided segment.

    Prepends the path with the provided segment.

    If there is already a leading slash when you prepend a segment, then the leading slash will be removed (more precisely, it becomes the slash that separates the new segment from the existing path).

  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def addLeadingSlash: Path

    Prepends a leading slash to the path.

  8. def addTrailingSlash: Path

    Appends a trailing slash to the path.

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  11. def concat(other: Path): Path

    Named alias to ++ operator.

  12. def drop(n: Int): Path

    Drops the first n segments from the path, treating both leading and trailing slashes as segments.

  13. def dropLeadingSlash: Path

    Drops the leading slash if available.

  14. def dropRight(n: Int): Path

    Drops the last n segments from the path, treating both leading and trailing slashes as segments.

  15. def dropTrailingSlash: Path

    Drops the trailing slash if available.

  16. def encode: String

    Encodes the current path into a valid string.

  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(that: Any): Boolean
    Definition Classes
    Path → Equals → AnyRef → Any
  19. val flags: Flags
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  21. def hasLeadingSlash: Boolean

    Checks if the path contains a leading slash.

  22. def hasTrailingSlash: Boolean

    Checks if the path contains a trailing slash.

  23. def hashCode(): Int
    Definition Classes
    Path → AnyRef → Any
  24. def isEmpty: Boolean

    Checks if the path is equal to "".

  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def isRoot: Boolean

    Checks if the path is equal to "/".

  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def nonEmpty: Boolean

    Checks if the path is not equal to "".

  29. def normalize: Path

    Normalizes the path for proper equals/hashCode treatment.

  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  32. def productElementNames: Iterator[String]
    Definition Classes
    Product
  33. def reverse: Path

    Creates a new path from this one with it's segments reversed.

  34. val segments: Chunk[String]
  35. def size: Int

    Returns the "size" of a path, which counts leading and trailing slash, if present.

  36. def startsWith(other: Path): Boolean

    Checks if the path starts with the provided path

  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def take(n: Int): Path

    Returns a new path containing the first n segments of the path, treating both leading and trailing slashes as segments.

  39. def toString(): String
    Definition Classes
    Path → AnyRef → Any
  40. lazy val unapply: Option[(String, Path)]
  41. lazy val unapplyRight: Option[(Path, String)]
  42. def unnest(prefix: Path): Path

    Unnests a path that has been nested at the specified prefix.

    Unnests a path that has been nested at the specified prefix. If the path is not nested at the specified prefix, the same path is returned.

  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped