org.specs2.spring.web

XhtmlWebObjectBody

class XhtmlWebObjectBody extends WebObjectBody with Requestable

Response body that assumes that the body is the XHTML of the returned page. The supported selectors in the {{<<}}, {{>>}} and {{>>!}} operators are

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. XhtmlWebObjectBody
  2. Requestable
  3. WebObjectBody
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new XhtmlWebObjectBody(body: String, params: Map[String, List[String]])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def <<(selector: String, value: String): XhtmlWebObjectBody

    Sets the value of the input element identified by {{selector}} to the value {{value}}

    Sets the value of the input element identified by {{selector}} to the value {{value}}

    selector

    the selector that identifies the element to set

    value

    the new value for the element

    returns

    XhtmlWebObjectBody instance with the element set

  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. def >>(selector: String): Some[String]

    Computes the value of the element identified by {{selector}}.

    Computes the value of the element identified by {{selector}}. The syntax of the {{selector}} is

    • #id selects element whose id matches the given {id}
    • .id selects element whose class matches the given {id}
    • :id selects element whose name matches the given {id}
    • [element]@attribute[=value] selects the {{element}} (if not empty, else all elements) that includes the specified {{attribute}} whose value is {{value}} (if not empty, else any value)
    • /xpath selects element in the XPath
    selector

    the selector that identifies the element to get.

    returns

    optionally, the value of the element

  8. def >>!(selector: String): String

    Computes the value of the element identified by {{selector}}

    Computes the value of the element identified by {{selector}}

    selector

    the selector that identifies the element to get

    returns

    the value of the element, fails if the element does not exist

    See also

    {{>>(selector: String)}}

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. val body: String

  11. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def form(selector: String): XhtmlWebObjectBody

    Selects a form using the given {{selector}} and returns a new {{XhtmlWebObjectBody}} containing just the selected form.

    Selects a form using the given {{selector}} and returns a new {{XhtmlWebObjectBody}} containing just the selected form.

    selector

    the selector that identifies the form

    returns

    XhtmlWebObjectBody instance with just the selected form

  16. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. val params: Map[String, List[String]]

  23. def request(request: MockHttpServletRequest): MockHttpServletRequest

    Implementations must provide a way to apply their bodies to the given {{MockHttpServletRequest}}

    Implementations must provide a way to apply their bodies to the given {{MockHttpServletRequest}}

    request

    the HTTP request to be modified

    Definition Classes
    XhtmlWebObjectBodyRequestable
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Requestable

Inherited from WebObjectBody

Inherited from AnyRef

Inherited from Any