Packages

final case class UriTemplate(scheme: Option[Scheme] = None, authority: Option[Authority] = None, path: Path = Nil, query: UriTemplate.Query = Nil, fragment: Fragment = Nil) extends Product with Serializable

Simple representation of a URI Template that can be rendered as RFC6570 conform string.

This model reflects only a subset of RFC6570.

Level 1 and Level 2 are completely modeled and Level 3 features are limited to:

  • Path segments, slash-prefixed
  • Form-style query, ampersand-separated
  • Fragment expansion
Source
UriTemplate.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UriTemplate
  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 UriTemplate(scheme: Option[Scheme] = None, authority: Option[Authority] = None, path: Path = Nil, query: UriTemplate.Query = Nil, fragment: Fragment = Nil)

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. val authority: Option[Authority]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def expandAny[T](name: String, value: T)(implicit arg0: QueryParamEncoder[T]): UriTemplate

    Replaces any expansion type that matches the given name.

    Replaces any expansion type that matches the given name. If no matching expansion could be found the same instance will be returned.

  9. def expandFragment[T](name: String, value: T)(implicit arg0: QueryParamEncoder[T]): UriTemplate

    Replaces any expansion type in fragment that matches the given name.

    Replaces any expansion type in fragment that matches the given name. If no matching expansion could be found the same instance will be returned.

  10. def expandPath[T](name: String, value: T)(implicit arg0: QueryParamEncoder[T]): UriTemplate

    Replaces any expansion type in path that matches the given name.

    Replaces any expansion type in path that matches the given name. If no matching expansion could be found the same instance will be returned.

  11. def expandPath[T](name: String, values: List[T])(implicit arg0: QueryParamEncoder[T]): UriTemplate

    Replaces any expansion type in path that matches the given name.

    Replaces any expansion type in path that matches the given name. If no matching expansion could be found the same instance will be returned.

  12. def expandQuery[T](name: String, values: T*)(implicit arg0: QueryParamEncoder[T]): UriTemplate

    Replaces any expansion type in query that matches the specified name.

    Replaces any expansion type in query that matches the specified name. If no matching expansion could be found the same instance will be returned.

  13. def expandQuery(name: String): UriTemplate

    Replaces any expansion type in query that matches the specified name.

    Replaces any expansion type in query that matches the specified name. If no matching expansion could be found the same instance will be returned.

  14. def expandQuery[T](name: String, values: List[T])(implicit arg0: QueryParamEncoder[T]): UriTemplate

    Replaces any expansion type in query that matches the specified name.

    Replaces any expansion type in query that matches the specified name. If no matching expansion could be found the same instance will be returned.

  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. val fragment: Fragment
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val path: Path
  23. val query: UriTemplate.Query
  24. val scheme: Option[Scheme]
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. lazy val toString: String
  27. def toUriIfPossible: Try[Uri]

    If no expansion is available an Uri will be created otherwise the current instance of UriTemplate will be returned.

  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped