object PathSegment
- Alphabetic
- By Inheritance
- PathSegment
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
PathSegmentNoError[T] = PathSegment[T, DummyError]
A Type of path segment where we don't care about the error.
- type PathSegmentSimpleError[T] = PathSegment[T, SimplePathMatchingError]
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- final lazy val dummyErrorImpl: PathSegmentImpl[DummyError]
-
final
def
empty: PathSegment[Unit, Nothing]
Simple path segment that matches everything by passing segments down the line.
-
final
def
endOfSegments[A](implicit pathMatchingError: PathMatchingError[A]): PathSegment[Unit, A]
Check that the segments ends at this point.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
factory[T, A](matching: (List[Segment]) ⇒ Either[A, PathMatchOutput[T]], creating: (T) ⇒ List[Segment]): PathSegment[T, A]
Trait factory
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
intSegment[A](implicit pathMatchingError: PathMatchingError[A], fromThrowable: ErrorFromThrowable[A]): PathSegment[Int, A]
Matches a simple Int and tries to convert it to an Int.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
noMatch[A](implicit pathMatchingError: PathMatchingError[A]): PathSegment[Unit, A]
Simple path segment that matches nothing.
Simple path segment that matches nothing. This is the neutral of the || operator.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
oneOf[T, A](t: T, ts: T*)(implicit fromString: FromString[T, A], printer: Printer[T], pathMatchingError: PathMatchingError[A]): PathSegment[Unit, A]
PathSegment that matches one of the given different possibilities.
PathSegment that matches one of the given different possibilities.
This can be useful in a Router, when you want to delegate the final decision to an inner router. Since all possibilities are good, the creation of segment simply takes the first one.
-
final
def
remainingSegments[A]: PathSegment[List[String], A]
Consumes all the remaining segments.
Consumes all the remaining segments.
This can be useful for static resources.
- final def root: PathSegment[Unit, Nothing]
-
final
def
segment[T, A](implicit fromString: FromString[T, A], printer: Printer[T], error: PathMatchingError[A]): PathSegment[T, A]
Creates a segment matching any element of type
T
, as long as the urldsl.vocabulary.FromString can de-serialize it. - final lazy val simplePathErrorImpl: PathSegmentImpl[SimplePathMatchingError]
-
final
def
simplePathSegment[T, A](matching: (Segment) ⇒ Either[A, T], creating: (T) ⇒ Segment)(implicit pathMatchingError: PathMatchingError[A]): PathSegment[T, A]
Simple trait factory for "single segment"-oriented path Segments.
Simple trait factory for "single segment"-oriented path Segments.
This can be used to match a simple String, or a simple Int, etc...
-
final
def
stringSegment[A](implicit pathMatchingError: PathMatchingError[A]): PathSegment[String, A]
Matches a simple String and returning it.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit final
def
unaryPathSegment[T, A](t: T)(implicit fromString: FromString[T, A], printer: Printer[T], pathMatchingError: PathMatchingError[A]): PathSegment[Unit, A]
Returns a urldsl.language.PathSegment which matches exactly the argument
t
.Returns a urldsl.language.PathSegment which matches exactly the argument
t
.This conversion is implicit if you can provide a urldsl.vocabulary.FromString and a urldsl.vocabulary.Printer, so that it enables writing, e.g.,
root / "hello" / true
-
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( ... ) @native()