public class ScreenRecordingUploadOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ScreenRecordingUploadOptions.RequestMethod |
Constructor and Description |
---|
ScreenRecordingUploadOptions() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
build()
Builds a map, which is ready to be passed to the subordinated
Appium API.
|
static ScreenRecordingUploadOptions |
uploadOptions() |
ScreenRecordingUploadOptions |
withAuthCredentials(java.lang.String user,
java.lang.String pass)
Sets the credentials for remote ftp/http authentication (if needed).
|
ScreenRecordingUploadOptions |
withFileFieldName(java.lang.String fileFieldName)
Sets the form field name containing the binary payload in multipart/form-data
requests.
|
ScreenRecordingUploadOptions |
withFormFields(java.util.Map<java.lang.String,java.lang.Object> formFields)
Sets additional form fields in multipart/form-data requests.
|
ScreenRecordingUploadOptions |
withHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Sets additional headers in multipart/form-data requests.
|
ScreenRecordingUploadOptions |
withHttpMethod(ScreenRecordingUploadOptions.RequestMethod method)
Sets the method name for http(s) upload.
|
ScreenRecordingUploadOptions |
withRemotePath(java.lang.String remotePath)
The path to the remote location, where the resulting video should be uploaded.
|
public static ScreenRecordingUploadOptions uploadOptions()
public ScreenRecordingUploadOptions withRemotePath(java.lang.String remotePath)
remotePath
- The path to a writable remote location.public ScreenRecordingUploadOptions withAuthCredentials(java.lang.String user, java.lang.String pass)
user
- The name of the user for the remote authentication.pass
- The password for the remote authentication.public ScreenRecordingUploadOptions withHttpMethod(ScreenRecordingUploadOptions.RequestMethod method)
method
- The HTTP method name.public ScreenRecordingUploadOptions withFileFieldName(java.lang.String fileFieldName)
fileFieldName
- The name of the form field containing the binary payload.
"file" by default.public ScreenRecordingUploadOptions withFormFields(java.util.Map<java.lang.String,java.lang.Object> formFields)
formFields
- form fields mapping. If any entry has the same key as
`fileFieldName` then it is going to be ignored.public ScreenRecordingUploadOptions withHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
headers
- headers mapping.public java.util.Map<java.lang.String,java.lang.Object> build()