public static final class UrlRequestJob.Options.Builder
extends java.lang.Object
UrlRequestJob.Options
builder.
Builders are created by invoking UrlRequestJob.Options.newBuilder(com.teamdev.jxbrowser.net.UrlRequest.Id, com.teamdev.jxbrowser.net.HttpStatus)
. Each of the setter methods modifies
the state of the builder and returns the same instance. Builders are not thread-safe and
should not be used concurrently from multiple threads without external synchronization.
Modifier and Type | Method and Description |
---|---|
UrlRequestJob.Options.Builder |
addHttpHeader(HttpHeader httpHeader)
Adds the HTTP header to the list of the HTTP headers.
|
UrlRequestJob.Options |
build()
Returns a new
UrlRequestJob.Options instance built from the current state of
this builder. |
public UrlRequestJob.Options.Builder addHttpHeader(HttpHeader httpHeader)
httpHeader
- the new HttpHeader
public UrlRequestJob.Options build()
UrlRequestJob.Options
instance built from the current state of
this builder.UrlRequestJob.Options
instance