Package com.xceptance.xlt.api.htmlunit

# Class LightWeightPage

java.lang.Object
com.xceptance.xlt.api.htmlunit.LightWeightPage

public class LightWeightPage extends Object
A simple page object for light-weight operations.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LightWeightPage(WebResponse webResponse, String timerName)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Charset`
  `getCharset()`
  Returns the content character set.
  `String`
  `getContent()`
  Returns the page content.
  `String`
  `getContentCharset()`
  Returns the content character set.
  `int`
  `getHttpResponseCode()`
  Returns the status code of the web response.
  `String`
  `getTimerName()`
  Returns the timer name.
  `WebResponse`
  `getWebResponse()`
  Returns the web response.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LightWeightPage

    public LightWeightPage(WebResponse webResponse, String timerName)
    Constructor.
    Parameters:
      `webResponse` - the web response

- ## Method Details

  - ### getContent

    public String getContent()
    Returns the page content.
    Returns:
      the content

  - ### getHttpResponseCode

    public int getHttpResponseCode()
    Returns the status code of the web response.
    Returns:
      status code of response

  - ### getWebResponse

    public WebResponse getWebResponse()
    Returns the web response.
    Returns:
      web response

  - ### getTimerName

    public String getTimerName()
    Returns the timer name.
    Returns:
      timer name

  - ### getContentCharset

    public String getContentCharset()
    Returns the content character set.
    Returns:
      content character set

  - ### getCharset

    public Charset getCharset()
    Returns the content character set.
    Returns:
      content character set