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
- Alphabetic
- By Inheritance
- UriTemplate
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
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
- val authority: Option[Authority]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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 matchingexpansion
could be found the same instance will be returned. - def expandFragment[T](name: String, value: T)(implicit arg0: QueryParamEncoder[T]): UriTemplate
Replaces any expansion type in
fragment
that matches the givenname
.Replaces any expansion type in
fragment
that matches the givenname
. If no matchingexpansion
could be found the same instance will be returned. - def expandPath[T](name: String, value: T)(implicit arg0: QueryParamEncoder[T]): UriTemplate
Replaces any expansion type in
path
that matches the givenname
.Replaces any expansion type in
path
that matches the givenname
. If no matchingexpansion
could be found the same instance will be returned. - def expandPath[T](name: String, values: List[T])(implicit arg0: QueryParamEncoder[T]): UriTemplate
Replaces any expansion type in
path
that matches the givenname
.Replaces any expansion type in
path
that matches the givenname
. If no matchingexpansion
could be found the same instance will be returned. - def expandQuery[T](name: String, values: T*)(implicit arg0: QueryParamEncoder[T]): UriTemplate
Replaces any expansion type in
query
that matches the specifiedname
.Replaces any expansion type in
query
that matches the specifiedname
. If no matchingexpansion
could be found the same instance will be returned. - def expandQuery(name: String): UriTemplate
Replaces any expansion type in
query
that matches the specifiedname
.Replaces any expansion type in
query
that matches the specifiedname
. If no matchingexpansion
could be found the same instance will be returned. - def expandQuery[T](name: String, values: List[T])(implicit arg0: QueryParamEncoder[T]): UriTemplate
Replaces any expansion type in
query
that matches the specifiedname
.Replaces any expansion type in
query
that matches the specifiedname
. If no matchingexpansion
could be found the same instance will be returned. - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val fragment: Fragment
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val path: Path
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val query: UriTemplate.Query
- val scheme: Option[Scheme]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val toString: String
- Definition Classes
- UriTemplate → AnyRef → Any
- def toUriIfPossible: Try[Uri]
If no expansion is available an
Uri
will be created otherwise the current instance ofUriTemplate
will be returned. - 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()