net.liftweb.util.HttpHelpers

trait HttpHelpers

trait HttpHelpers

 extends ScalaObject




Companion: HttpHelpers

Source: HttpHelpers.scala(30)

Direct Known Subclasses

Helpers,

 Fields

knownSuffixes.. val knownSuffixes
The list of known suffixes used to split the URI into path parts and suffixes
Set[String]
nextFuncName.. def nextFuncName
Get a guaranteed unique field name (16 or 17 letters and numbers, starting with a letter)
String
nextNum.. def nextNum
Get a monotonically increasing number that's guaranteed to be unique for the current session
Long

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
appendParams.. def appendParams(url : String, params : Seq[(String, String)])
Append parameters to a URL [details]
param
params - the parameters (name/value) to append to the URL
url - the url to append the params to
return
- the url with the parameters appended
String
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
couldBeHtml.. def couldBeHtml(in : Map[String, String])
Given a map of HTTP properties, return true if the "Content-type" value in the map is either "text/html" or "application/xhtml+xml" [details]
param
in - Map which may contain a key named Content-Type
return
- true if there is a pair ("Content-Type", "text/html") or ("Content-Type", "application/xhtml+xml")
Boolean
deepFindKids.. def deepFindKids(in : NodeSeq, prefix : String, label : String) NodeSeq
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
findElems.. def findElems(nodes : NodeSeq)(f : (Elem) => Boolean)
Find the elements of the specified NodeSeq that match the specified predicate and concatenate them into a resulting NodeSeq [details]
param
f - - the predicate to match elements with
nodes - - the NodeSeq to search for elements matching the predicate
return
- the NodeSeq resulting from concatenation of the matched elements.
NodeSeq
findInElems.. def findInElems[T](nodes : NodeSeq)(f : (Elem) => Iterable[T])
Map the specified function over the elements of the specified NodeSeq and return the concatenated result [details]
This is essentially a container-type-transforming flatMap operation.
List[T]
findKids.. def findKids(in : NodeSeq, prefix : String, label : String) NodeSeq
findOrAddId.. def findOrAddId(in : Elem)
If the specified Elem has an attribute named 'id', return it, otherwise construct a new Elem with a randomly generated id attribute and return the pair [details]
param
in - the element to test & add 'id' to
return
- the new element and the id
(Elem, String)
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
insureField.. def insureField(toInsure : List[(String, String)], headers : List[(String, String)])
Ensure that all the appropriate fields are in the header
List[(String, String)]
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
nextFuncName.. def nextFuncName(seed : Long)
Get a guaranteed unique field name (16 or 17 letters and numbers, starting with a letter)
String
noHtmlTag.. def noHtmlTag(in : NodeSeq)
Return true if the xml doesn't contain an <html> tag
Boolean
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
pairToUnprefixed.. implicit def pairToUnprefixed(in : (String, Any))
Transform a pair (name: String, value: Any) to an unprefixed XML attribute name="value"
MetaData
paramsToUrlParams.. def paramsToUrlParams(params : List[(String, String)])
Take a list of name/value parse and turn them into a URL query string [details]
param
params - the name/value pairs
return
- a valid query string
String
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toHashMap.. def toHashMap[A, B](in : Map[A, B])
Transform a general Map to a nutable HashMap
HashMap[A, B]
toString.. def toString String AnyRef
urlDecode.. def urlDecode(in : String)
URL decode the string [details]
This is a pass-through to Java's URL decode with UTF-8
String
urlEncode.. def urlEncode(in : String)
URL encode the string [details]
This is a pass-through to Java's URL encode with UTF-8
String
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.