Package com.mindee.input
Class URLInputSource.Builder
- java.lang.Object
-
- com.mindee.input.URLInputSource.Builder
-
- Enclosing class:
- URLInputSource
public static class URLInputSource.Builder extends Object
Builder class for an URLInputSource.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLInputSource
build()
URLInputSource.Builder
withCredentials(String username, String password)
URLInputSource.Builder
withLocalFilename(String filename)
URLInputSource.Builder
withToken(String token)
-
-
-
Constructor Detail
-
Builder
public Builder(String url)
- Parameters:
url
- Remote URL resource.
-
-
Method Detail
-
withToken
public URLInputSource.Builder withToken(String token)
- Parameters:
token
- Token for remote access requiring an authentication Token.- Returns:
- An instance of the builder.
-
withCredentials
public URLInputSource.Builder withCredentials(String username, String password)
- Parameters:
username
- Username for remote authentication.password
- Password for remote authentication.- Returns:
- An instance of the builder.
-
withLocalFilename
public URLInputSource.Builder withLocalFilename(String filename)
- Parameters:
filename
- Filename to give to the file.- Returns:
- An instance of the builder.
-
build
public URLInputSource build()
- Returns:
- A valid
URLInputSource
object.
-
-