com.gargoylesoftware.htmlunit
Class StringWebResponse
java.lang.Object
com.gargoylesoftware.htmlunit.WebResponse
com.gargoylesoftware.htmlunit.StringWebResponse
- All Implemented Interfaces:
- Serializable
public class StringWebResponse
- extends WebResponse
A simple WebResponse created from a string. Content is assumed to be of type text/html.
- Version:
- $Revision: 5834 $
- Author:
- Mike Bowler, Marc Guillemot, Brad Clarke, Ahmed Ashour
- See Also:
- Serialized Form
Methods inherited from class com.gargoylesoftware.htmlunit.WebResponse |
getContentAsBytes, getContentAsStream, getContentAsString, getContentAsString, getContentCharset, getContentCharsetOrNull, getContentType, getLoadTime, getRequestSettings, getRequestUrl, getResponseHeaders, getResponseHeaderValue, getStatusCode, getStatusMessage, getWebRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringWebResponse
public StringWebResponse(String content,
URL originatingURL)
- Creates an instance associated with the specified originating URL.
- Parameters:
content
- the content to returnoriginatingURL
- the URL that this should be associated with
StringWebResponse
public StringWebResponse(String content,
String charset,
URL originatingURL)
- Creates an instance associated with the specified originating URL.
- Parameters:
content
- the content to returncharset
- the charset used to convert the contentoriginatingURL
- the URL that this should be associated with
Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.