public static final class LoadHtmlParams.Builder
extends java.lang.Object
LoadHtmlParams
.
Builders are created by invoking LoadHtmlParams.newBuilder(String)
. 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 |
---|---|
LoadHtmlParams.Builder |
baseUrl(java.lang.String baseUrl)
Sets the URL that will be used to resolve links with a relative path in the HTML
document.
|
LoadHtmlParams |
build()
Returns a new
LoadDataParams instance built from the current state of this
builder. |
LoadHtmlParams.Builder |
shouldReplaceNavigationEntry(boolean shouldReplaceNavigationEntry)
Specifies whether the data will be loaded as a normal navigation and the current history
item should be replaced.
|
public LoadHtmlParams.Builder baseUrl(java.lang.String baseUrl)
baseUrl
- the base URLjava.lang.IllegalArgumentException
- when baseUrl
is empty or blankpublic LoadHtmlParams.Builder shouldReplaceNavigationEntry(boolean shouldReplaceNavigationEntry)
shouldReplaceNavigationEntry
- the flag valuepublic LoadHtmlParams build()
LoadDataParams
instance built from the current state of this
builder.LoadDataParams
instance