public static final class ImportExport.VideoUploadService extends Object
The VideoUploadTicket Webservice is used in the Import-/Export-API to obtain a ticket to upload a video and to transfer the video itself.
Modifier and Type | Method and Description |
---|---|
static String |
doVideoUpload(AbstractClient client,
InputStream videoInput,
String videoFileName,
long videoFileSize)
Upload a video.
|
static VideoUploadTicket |
get(AbstractClient client)
Calls the GET method of the VideoUploadTicket Webservice.
|
public static String doVideoUpload(AbstractClient client, InputStream videoInput, String videoFileName, long videoFileSize) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This helper method obtains an upload ticket and sends the video file to the destination, that is specified in the upload ticket.
client
- AbstractClient
, that is used to communicate with the WebservicevideoInput
- content of the video file to transfervideoFileName
- name of the video file to transfervideoFileSize
- size of the video file to transfer (in bytes)IOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messagepublic static VideoUploadTicket get(AbstractClient client) throws IOException, oauth.signpost.exception.OAuthException, JAXBException, RequestFailedException
This method retrieves a ticket from the Webservice, that is required to upload a new video file.
client
- AbstractClient
, that is used to communicate with the WebserviceIOException
- if communication with the Webservice failedoauth.signpost.exception.OAuthException
- if authorization failedJAXBException
- if XML reading / writing failedRequestFailedException
- if the Webservice did not respond with a success messageCopyright © 2014 OpenEstate. All rights reserved.