public static class ScrapingResponse.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ScrapingResponse.Builder |
addHeader(java.lang.String name,
java.lang.String value) |
ScrapingResponse.Builder |
addRedirectUrl(java.lang.String redirectUrl) |
ScrapingResponse |
build() |
ScrapingResponse.Builder |
setBody(java.lang.String body) |
ScrapingResponse.Builder |
setCharacterEncoding(java.lang.String characterEncoding) |
ScrapingResponse.Builder |
setError(RequestError error) |
ScrapingResponse.Builder |
setErrorOnRequest(boolean errorOnRequest) |
ScrapingResponse.Builder |
setFinalUrl(java.lang.String finalUrl) |
ScrapingResponse.Builder |
setRawResponse(byte[] rawResponse) |
ScrapingResponse.Builder |
setRawResponse(java.io.InputStream inputStream) |
ScrapingResponse.Builder |
setStatusCode(int statusCode) |
ScrapingResponse.Builder |
setStatusLine(java.lang.String statusLine) |
public ScrapingResponse.Builder setError(@Nullable RequestError error)
public ScrapingResponse.Builder setStatusCode(int statusCode)
public ScrapingResponse.Builder setErrorOnRequest(boolean errorOnRequest)
public ScrapingResponse.Builder setFinalUrl(@NotNull java.lang.String finalUrl)
public ScrapingResponse.Builder setStatusLine(@NotNull java.lang.String statusLine)
public ScrapingResponse.Builder setBody(@NotNull java.lang.String body)
public ScrapingResponse.Builder setCharacterEncoding(@NotNull java.lang.String characterEncoding)
public ScrapingResponse.Builder setRawResponse(@NotNull byte[] rawResponse)
public ScrapingResponse.Builder setRawResponse(@NotNull java.io.InputStream inputStream)
public ScrapingResponse.Builder addHeader(@NotNull java.lang.String name, @NotNull java.lang.String value)
public ScrapingResponse.Builder addRedirectUrl(@NotNull java.lang.String redirectUrl)
public ScrapingResponse build()