|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.WebResponseImpl
com.gargoylesoftware.htmlunit.StringWebResponse
public class StringWebResponse
A simple WebResponse created from a string. Content is assumed to be of type text/html.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary |
|---|
| Methods inherited from class com.gargoylesoftware.htmlunit.WebResponseImpl |
|---|
getContentAsStream, getContentAsString, getContentCharSet, getContentType, getLoadTimeInMilliSeconds, getRequestMethod, getResponseBody, getResponseHeaders, getResponseHeaderValue, getStatusCode, getStatusMessage, getUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 with
public 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 with
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||