public class StringWebResponse extends WebResponse
text/html
.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, getBlockReason, getContentAsStream, getContentAsStreamWithBomIfApplicable, getContentAsString, getContentAsString, getContentCharset, getContentCharsetOrNull, getContentLength, getContentType, getHeaderContentCharset, getLoadTime, getResponseHeaders, getResponseHeaderValue, getStatusCode, getStatusMessage, getWebRequest, isSuccess, isSuccessOrUseProxy, isSuccessOrUseProxyOrNotModified, markAsBlocked, wasBlocked, wasContentCharsetTentative
public 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–2024 Gargoyle Software Inc.. All rights reserved.