Package com.xceptance.xlt.api.htmlunit
Class LightWeightPage
- java.lang.Object
-
- com.xceptance.xlt.api.htmlunit.LightWeightPage
-
public class LightWeightPage extends java.lang.Object
A simple page object for light-weight operations.
-
-
Constructor Summary
Constructors Constructor Description LightWeightPage(WebResponse webResponse, java.lang.String timerName)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.charset.Charset
getCharset()
Returns the content character set.java.lang.String
getContent()
Returns the page content.java.lang.String
getContentCharset()
Returns the content character set.int
getHttpResponseCode()
Returns the status code of the web response.java.lang.String
getTimerName()
Returns the timer name.WebResponse
getWebResponse()
Returns the web response.
-
-
-
Constructor Detail
-
LightWeightPage
public LightWeightPage(WebResponse webResponse, java.lang.String timerName)
Constructor.- Parameters:
webResponse
- the web response
-
-
Method Detail
-
getContent
public java.lang.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 java.lang.String getTimerName()
Returns the timer name.- Returns:
- timer name
-
getContentCharset
public java.lang.String getContentCharset()
Returns the content character set.- Returns:
- content character set
-
getCharset
public java.nio.charset.Charset getCharset()
Returns the content character set.- Returns:
- content character set
-
-