public interface LoadUrlParams
Modifier and Type | Interface and Description |
---|---|
static class |
LoadUrlParams.Builder
A builder of
LoadUrlParams . |
Modifier and Type | Method and Description |
---|---|
default java.util.List<HttpHeader> |
extraHeaders()
Returns an immutable list of the extra HTTP headers that will be sent to the resource or an
empty list if there were no extra HTTP headers.
|
static LoadUrlParams.Builder |
newBuilder(java.lang.String url)
Creates a new
LoadUrlParams builder. |
default java.util.Optional<UploadData> |
uploadData()
Returns the upload data that will be sent to the resource or an empty
Optional if
there is no upload data. |
default java.lang.String |
url()
Returns a string that represents the URL of the resource to load.
|
static LoadUrlParams.Builder newBuilder(java.lang.String url)
LoadUrlParams
builder.url
- the URL of the resource to loadLoadUrlParams.Builder
instancejava.lang.IllegalArgumentException
- when url
is empty or blankdefault java.lang.String url()
default java.util.Optional<UploadData> uploadData()
Optional
if
there is no upload data.default java.util.List<HttpHeader> extraHeaders()