net.liftweb.util.HttpHelpers

trait HttpHelpers

trait HttpHelpers

 extends ScalaObject




Companion: HttpHelpers

Source: HttpHelpers.scala(26)

Direct Known Subclasses

Helpers,

 Fields

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
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]
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
longPoll def longPoll[T](seq : Long, timeout : TimeSpan, func : PartialFunction[Any, T])(implicit m : Manifest[T]) Box[T]
ne final def ne(arg0 : Object) Boolean AnyRef
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 Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
Copyright (c) 2007-2009 Lift Team. All Rights Reserved.