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
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from UriTemplate to any2stringadd[UriTemplate] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (UriTemplate, B)
- Implicit
- This member is added by an implicit conversion from UriTemplate to ArrowAssoc[UriTemplate] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
ensuring(cond: (UriTemplate) ⇒ Boolean, msg: ⇒ Any): UriTemplate
- Implicit
- This member is added by an implicit conversion from UriTemplate to Ensuring[UriTemplate] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (UriTemplate) ⇒ Boolean): UriTemplate
- Implicit
- This member is added by an implicit conversion from UriTemplate to Ensuring[UriTemplate] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): UriTemplate
- Implicit
- This member is added by an implicit conversion from UriTemplate to Ensuring[UriTemplate] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): UriTemplate
- Implicit
- This member is added by an implicit conversion from UriTemplate to Ensuring[UriTemplate] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from UriTemplate to StringFormat[UriTemplate] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- val fragment: Fragment
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val path: Path
- val query: UriTemplate.Query
- val scheme: Option[Scheme]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- lazy val toString: String
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (UriTemplate, B)
- Implicit
- This member is added by an implicit conversion from UriTemplate to ArrowAssoc[UriTemplate] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc