Class ScreenRecordingUploadOptions
java.lang.Object
io.appium.java_client.screenrecording.ScreenRecordingUploadOptions
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a map, which is ready to be passed to the subordinated Appium API.static ScreenRecordingUploadOptionswithAuthCredentials(String user, String pass) Sets the credentials for remote ftp/http authentication (if needed).withFileFieldName(String fileFieldName) Sets the form field name containing the binary payload in multipart/form-data requests.withFormFields(Map<String, Object> formFields) Sets additional form fields in multipart/form-data requests.withHeaders(Map<String, String> headers) Sets additional headers in multipart/form-data requests.Sets the method name for http(s) upload.withRemotePath(String remotePath) The path to the remote location, where the resulting video should be uploaded.
-
Constructor Details
-
ScreenRecordingUploadOptions
public ScreenRecordingUploadOptions()
-
-
Method Details
-
uploadOptions
-
withRemotePath
The path to the remote location, where the resulting video should be uploaded.- Parameters:
remotePath- The path to a writable remote location.- Returns:
- self instance for chaining.
-
withAuthCredentials
Sets the credentials for remote ftp/http authentication (if needed). This option only has an effect if remotePath is provided.- Parameters:
user- The name of the user for the remote authentication.pass- The password for the remote authentication.- Returns:
- self instance for chaining.
-
withHttpMethod
public ScreenRecordingUploadOptions withHttpMethod(ScreenRecordingUploadOptions.RequestMethod method) Sets the method name for http(s) upload. PUT is used by default. This option only has an effect if remotePath is provided.- Parameters:
method- The HTTP method name.- Returns:
- self instance for chaining.
-
withFileFieldName
Sets the form field name containing the binary payload in multipart/form-data requests.- Parameters:
fileFieldName- The name of the form field containing the binary payload. "file" by default.- Returns:
- self instance for chaining.
- Since:
- Appium 1.18.0
-
withFormFields
Sets additional form fields in multipart/form-data requests.- Parameters:
formFields- form fields mapping. If any entry has the same key as `fileFieldName` then it is going to be ignored.- Returns:
- self instance for chaining.
- Since:
- Appium 1.18.0
-
withHeaders
Sets additional headers in multipart/form-data requests.- Parameters:
headers- headers mapping.- Returns:
- self instance for chaining.
- Since:
- Appium 1.18.0
-
build
Builds a map, which is ready to be passed to the subordinated Appium API.- Returns:
- arguments mapping.
-