Packages

trait HttpHelpers extends AnyRef

Self Type
HttpHelpers with ListHelpers with StringHelpers
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpHelpers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def appendFuncToURL(url: String, funcStr: String): String

    Given a URL and a Lift function String, append the function even if the URL has query params and a #

  5. def appendParams(url: String, params: Seq[(String, String)]): String

    Append parameters to a URL

    Append parameters to a URL

    url

    the url to append the params to

    params

    the parameters (name/value) to append to the URL

    returns

    the url with the parameters appended

  6. def appendQueryParameters(url: String, params: List[(String, String)]): String

    Given a list of query parameters, append them to the URL taking into account # and if there are any other query parameters

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def couldBeHtml(in: Map[String, String]): Boolean

    Given a map of HTTP properties, return true if the "Content-type" value in the map is either "text/html" or "application/xhtml+xml"

    Given a map of HTTP properties, return true if the "Content-type" value in the map is either "text/html" or "application/xhtml+xml"

    in

    Map which may contain a key named Content-Type

    returns

    true if there is a pair ("Content-Type", "text/html") or ("Content-Type", "application/xhtml+xml")

  10. def deepFindKids(in: NodeSeq, prefix: String, label: String): NodeSeq
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def evalElemWithId(f: (String, Elem) ⇒ NodeSeq)(ns: NodeSeq): NodeSeq

    Within a NodeSeq, find the first elem and run it through the function.

    Within a NodeSeq, find the first elem and run it through the function. Return the resulting NodeSeq

  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def findElems(nodes: NodeSeq)(f: (Elem) ⇒ Boolean): NodeSeq

    Find the elements of the specified NodeSeq that match the specified predicate and concatenate them into a resulting NodeSeq.

    Find the elements of the specified NodeSeq that match the specified predicate and concatenate them into a resulting NodeSeq.

    nodes

    - the NodeSeq to search for elements matching the predicate

    f

    - the predicate to match elements with

    returns

    the NodeSeq resulting from concatenation of the matched elements.

  16. def findInElems[T](nodes: NodeSeq)(f: (Elem) ⇒ Iterable[T]): List[T]

    Map the specified function over the elements of the specified NodeSeq and return the concatenated result.

    Map the specified function over the elements of the specified NodeSeq and return the concatenated result. This is essentially a container-type-transforming flatMap operation.

  17. def findKids(in: NodeSeq, prefix: String, label: String): NodeSeq
  18. def findOrAddId(in: Elem): (Elem, String)

    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

    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

    in

    the element to test & add 'id' to

    returns

    the new element and the id

  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  21. def insureField(toInsure: List[(String, String)], headers: List[(String, String)]): List[(String, String)]

    Ensure that all the appropriate fields are in the header.

  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. val knownSuffixes: Set[String]

    The list of known suffixes used to split the URI into path parts and suffixes.

  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def nextFuncName(seed: Long): String

    Get a guaranteed unique field name (16 or 17 letters and numbers, starting with a letter)

  26. def nextFuncName: String

    Get a guaranteed unique field name (16 or 17 letters and numbers, starting with a letter)

  27. def nextNum: Long

    Get a monotonically increasing number that's guaranteed to be unique for the current session

  28. def noHtmlTag(in: NodeSeq): Boolean

    Return true if the xml doesn't contain an <html> tag

  29. final def notify(): Unit
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  31. implicit def pairToUnprefixed(in: (String, Any)): MetaData

    Transform a pair (name: String, value: Any) to an unprefixed XML attribute name="value"

  32. def paramsToUrlParams(params: List[(String, String)]): String

    Take a list of name/value parse and turn them into a URL query string

    Take a list of name/value parse and turn them into a URL query string

    params

    the name/value pairs

    returns

    a valid query string

  33. def splitAtHash(str: String)(f: (String) ⇒ String): String

    Split a String at the Hash sign, run the function on the non-# side and then append the hash side

  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. def toHashMap[A, B](in: Map[A, B]): HashMap[A, B]

    Transform a general Map to a nutable HashMap

  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. def urlDecode(in: String): String

    URL decode the string.

    URL decode the string.

    This is a pass-through to Java's URL decode with UTF-8

  38. def urlEncode(in: String): String

    URL encode the string.

    URL encode the string.

    This is a pass-through to Java's URL encode with UTF-8

  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped