|
|||||
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(java.lang.String content)
Create an instance. |
|
StringWebResponse(java.lang.String content,
java.lang.String charset)
Create an instance. |
|
StringWebResponse(java.lang.String content,
java.lang.String charset,
java.net.URL originatingURL)
Create an instance associated with an originating URL |
|
StringWebResponse(java.lang.String content,
java.net.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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringWebResponse(java.lang.String content)
content
- The content to return.public StringWebResponse(java.lang.String content, java.lang.String charset)
content
- The content to return.charset
- The charset used to convert the content.public StringWebResponse(java.lang.String content, java.lang.String charset, java.net.URL originatingURL)
content
- The content to return.charset
- The charset used to convert the content.originatingURL
- The url that this should be associated withpublic StringWebResponse(java.lang.String content, java.net.URL originatingURL)
content
- The content to return.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 |