Package com.teamdev.jxbrowser.net
Class UrlRequestJob.Options.Builder
java.lang.Object
com.teamdev.jxbrowser.net.UrlRequestJob.Options.Builder
- Enclosing interface:
- UrlRequestJob.Options
A
UrlRequestJob.Options
builder.
Builders are created by invoking UrlRequestJob.Options.newBuilder(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.
-
Method Summary
Modifier and TypeMethodDescriptionaddHttpHeader
(HttpHeader httpHeader) Adds the HTTP header to the list of the HTTP headers.build()
Returns a newUrlRequestJob.Options
instance built from the current state of this builder.
-
Method Details
-
addHttpHeader
Adds the HTTP header to the list of the HTTP headers.- Parameters:
httpHeader
- the newHttpHeader
-
build
Returns a newUrlRequestJob.Options
instance built from the current state of this builder.- Returns:
- a new
UrlRequestJob.Options
instance
-