Package com.xceptance.xlt.api.htmlunit
Class LightWeightPage
- java.lang.Object
-
- com.xceptance.xlt.api.htmlunit.LightWeightPage
-
public class LightWeightPage extends java.lang.ObjectA 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.CharsetgetCharset()Returns the content character set.java.lang.StringgetContent()Returns the page content.java.lang.StringgetContentCharset()Returns the content character set.intgetHttpResponseCode()Returns the status code of the web response.java.lang.StringgetTimerName()Returns the timer name.WebResponsegetWebResponse()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
-
-