object
UrlParsing
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
object
/
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
-
-
object
Root extends UrlComponent with Product with Serializable
-
-
object
Url
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
object
on extends Product with Serializable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
URL parsing can be done using one of two paths. The first uses an object based decomposition with a minimal number of string operations. This parses using the 'on' keyword and the left associative '/' operator.
The second method uses string operations in a right associative manner. Because all values are strings, it is less type safe than the object method. This is used with the 'in' keyword and the right associative '/:' operator. In this method, the final variable in the pattern will consume all remaining levels.
To use either language, import the UrlParsing._ object