Link

olon.sitemap.Loc.Link
See theLink companion object
class Link[-T](val uriList: List[String], val matchHead_?: Boolean) extends PartialFunction[Req, Box[Boolean]], Loggable

This defines the Link to the Loc.

Value parameters

matchHead_?

-- false -- absolute match. true -- match anything that begins with the same path. Useful for opening a set of directories (for example, help pages)

uriList

-- the URL to match

Attributes

Companion
object
Graph
Supertypes
trait Loggable
trait PartialFunction[Req, Box[Boolean]]
trait Req => Box[Boolean]
class Object
trait Matchable
class Any
Show all
Known subtypes
class ParamLocLink[T]

Members list

Value members

Constructors

def this(b: List[String])

Concrete methods

def apply(in: Req): Box[Boolean]
def createPath(value: T): String

Creates a string representation of the path to the Loc.

Creates a string representation of the path to the Loc.

Attributes

Is the Loc external

Is the Loc external

Attributes

def isDefinedAt(req: Req): Boolean
def pathList(value: T): List[String]

Override this method to modify the uriList with data from the Loc's value

Override this method to modify the uriList with data from the Loc's value

Attributes

Inherited methods

Attributes

Inherited from:
PartialFunction
override def andThen[C](k: (Box[Boolean]) => C): PartialFunction[Req, C]

Attributes

Definition Classes
Inherited from:
PartialFunction
def applyOrElse[A1 <: Req, B1 >: Box[Boolean]](x: A1, default: A1 => B1): B1

Attributes

Inherited from:
PartialFunction

Attributes

Inherited from:
PartialFunction
def compose[A](g: A => Req): A => Box[Boolean]

Attributes

Inherited from:
Function1

Attributes

Inherited from:
PartialFunction
def lift: Req => Option[Box[Boolean]]

Attributes

Inherited from:
PartialFunction
def orElse[A1 <: Req, B1 >: Box[Boolean]](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

Attributes

Inherited from:
PartialFunction
def runWith[U](action: (Box[Boolean]) => U): Req => Boolean

Attributes

Inherited from:
PartialFunction
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1
def unapply(a: Req): Option[Box[Boolean]]

Attributes

Inherited from:
PartialFunction

Concrete fields

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Loggable