public static class ScrapingResponse.SynchronizedBuilder extends ScrapingResponse.Builder
Constructor and Description |
---|
SynchronizedBuilder() |
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)
setError
in class ScrapingResponse.Builder
public ScrapingResponse.Builder setStatusCode(int statusCode)
setStatusCode
in class ScrapingResponse.Builder
public ScrapingResponse.Builder setErrorOnRequest(boolean errorOnRequest)
setErrorOnRequest
in class ScrapingResponse.Builder
public ScrapingResponse.Builder setFinalUrl(@NotNull java.lang.String finalUrl)
setFinalUrl
in class ScrapingResponse.Builder
public ScrapingResponse.Builder setStatusLine(@NotNull java.lang.String statusLine)
setStatusLine
in class ScrapingResponse.Builder
public ScrapingResponse.Builder setBody(@NotNull java.lang.String body)
setBody
in class ScrapingResponse.Builder
public ScrapingResponse.Builder setCharacterEncoding(@NotNull java.lang.String characterEncoding)
setCharacterEncoding
in class ScrapingResponse.Builder
public ScrapingResponse.Builder setRawResponse(@NotNull byte[] rawResponse)
setRawResponse
in class ScrapingResponse.Builder
public ScrapingResponse.Builder setRawResponse(@NotNull java.io.InputStream inputStream)
setRawResponse
in class ScrapingResponse.Builder
public ScrapingResponse.Builder addHeader(@NotNull java.lang.String name, @NotNull java.lang.String value)
addHeader
in class ScrapingResponse.Builder
public ScrapingResponse.Builder addRedirectUrl(@NotNull java.lang.String redirectUrl)
addRedirectUrl
in class ScrapingResponse.Builder
public ScrapingResponse build()
build
in class ScrapingResponse.Builder