public class StringWebResponse extends WebResponse
| Constructor and Description |
|---|
StringWebResponse(String content,
Charset 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFromJavascript()
Returns the fromJavascript property.
|
void |
setFromJavascript(boolean fromJavascript)
Sets the fromJavascript_ property.
|
cleanUp, defaultCharsetUtf8, getContentAsStream, getContentAsString, getContentAsString, getContentAsString, getContentCharset, getContentCharsetOrNull, getContentLength, getContentType, getLoadTime, getResponseHeaders, getResponseHeaderValue, getStatusCode, getStatusMessage, getWebRequestpublic StringWebResponse(String content, URL originatingURL)
content - the content to returnoriginatingURL - the URL that this should be associated withpublic StringWebResponse(String content, Charset charset, URL originatingURL)
content - the content to returncharset - the charset used to convert the contentoriginatingURL - the URL that this should be associated withpublic boolean isFromJavascript()
public void setFromJavascript(boolean fromJavascript)
fromJavascript - the new fromJavascriptCopyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.