public class StringWebResponse extends WebResponseImpl
Constructor and Description |
---|
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.
|
getContentAsBytes, getContentAsStream, getContentAsString, getContentAsString, getContentCharset, getContentCharSet, getContentCharsetOrNull, getContentType, getLoadTime, getRequestMethod, getRequestSettings, getRequestUrl, getResponseHeaders, getResponseHeaderValue, getStatusCode, getStatusMessage, getUrl
public StringWebResponse(String content, URL originatingURL)
content
- the content to returnoriginatingURL
- the URL that this should be associated withpublic 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 withCopyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.