public class VResponse extends Object implements Response, Unwrappable
Modifier and Type | Field and Description |
---|---|
static Charset |
DEFAULT_CHARSET |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
Returns the base form of the url used in this request
|
byte[] |
getContent()
Returns raw content of the response
|
org.apache.http.entity.ContentType |
getContentType()
Returns the content type of the content fetched
|
org.apache.http.Header[] |
getHeaders()
Returns the headers that were used to trigger this response
|
String |
getHtml()
Returns the html in string format
|
String |
getHtml(Charset charset)
Returns the html in string format
|
Response |
getInner()
Returns the unwrapped version of this request
|
org.jsoup.nodes.Document |
getJsoup()
Returns a Jsoup document of this response
|
org.jsoup.nodes.Document |
getJsoup(Charset charset)
Returns a Jsoup document of this response
|
org.apache.http.HttpHost |
getProxy()
Returns the proxy that was used to trigger this response
|
String |
getResolvedHtml()
Returns the html in string format with all relative
urls resolved to absolute urls
|
String |
getResolvedHtml(Charset charset)
Returns the html in string format with all relative
urls resolved to absolute urls
|
int |
getStatusCode()
Returns status code of the response
|
Validator |
getValidator()
Returns the instance of validator used to validate this response
|
public static final Charset DEFAULT_CHARSET
public VResponse(Response response)
public int getStatusCode()
Response
getStatusCode
in interface Response
public byte[] getContent()
Response
getContent
in interface Response
public org.apache.http.entity.ContentType getContentType()
Response
This is provided by the server or guessed by the server or an amalgamation of both
getContentType
in interface Response
public org.apache.http.Header[] getHeaders()
Response
getHeaders
in interface Response
public String getBaseUrl()
Response
getBaseUrl
in interface Response
public org.apache.http.HttpHost getProxy()
Response
public Validator getValidator()
Response
getValidator
in interface Response
public String getResolvedHtml()
public String getResolvedHtml(Charset charset)
charset
- use specified charset for this html documentpublic String getHtml()
public String getHtml(Charset charset)
charset
- use specified charset for this html documentpublic org.jsoup.nodes.Document getJsoup()
public org.jsoup.nodes.Document getJsoup(Charset charset)
charset
- use specified charset for this html documentpublic Response getInner()
Unwrappable
getInner
in interface Unwrappable
Copyright © 2018. All rights reserved.