|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.WebResponse
com.gargoylesoftware.htmlunit.StringWebResponse
public class StringWebResponse
A simple WebResponse created from a string. Content is assumed to be of type text/html.
| Constructor Summary | |
|---|---|
StringWebResponse(String content,
String charset,
URL originatingURL)
Creates an instance associated with the specified originating URL. |
|
StringWebResponse(String content,
URL originatingURL)
Creates an instance associated with the specified originating URL. |
|
| Method Summary | |
|---|---|
boolean |
isFromJavascript()
Returns the fromJavascript property. |
void |
setFromJavascript(boolean fromJavascript)
Sets the fromJavascript_ property. |
| Methods inherited from class com.gargoylesoftware.htmlunit.WebResponse |
|---|
cleanUp, getContentAsStream, getContentAsString, getContentAsString, getContentCharset, getContentCharsetOrNull, getContentType, getLoadTime, getResponseHeaders, getResponseHeaderValue, getStatusCode, getStatusMessage, getWebRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringWebResponse(String content,
URL originatingURL)
content - the content to returnoriginatingURL - the URL that this should be associated with
public StringWebResponse(String content,
String charset,
URL originatingURL)
content - the content to returncharset - the charset used to convert the contentoriginatingURL - the URL that this should be associated with| Method Detail |
|---|
public boolean isFromJavascript()
public void setFromJavascript(boolean fromJavascript)
fromJavascript - the new fromJavascript
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||