public class StringWebResponse extends WebResponseImpl
Constructor and Description |
---|
StringWebResponse(String content)
Create an instance.
|
StringWebResponse(String content,
String charset)
Create an instance.
|
StringWebResponse(String content,
String charset,
URL originatingURL)
Create an instance associated with an originating URL
|
StringWebResponse(String content,
URL originatingURL)
Create an instance associated with an originating URL
|
getContentAsStream, getContentAsString, getContentCharSet, getContentType, getLoadTimeInMilliSeconds, getRequestMethod, getResponseBody, getResponseHeaders, getResponseHeaderValue, getStatusCode, getStatusMessage, getUrl
public StringWebResponse(String content)
content
- The content to return.public StringWebResponse(String content, String charset)
content
- The content to return.charset
- The charset used to convert the content.public StringWebResponse(String content, URL originatingURL)
content
- The content to return.originatingURL
- The url that this should be associated withpublic StringWebResponse(String content, String charset, URL originatingURL)
content
- The content to return.charset
- The charset used to convert the content.originatingURL
- The url that this should be associated withCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.