public class

FormUploadToken

extends Object
java.lang.Object
   ↳ com.google.gdata.data.youtube.FormUploadToken

Class Overview

Answer to a 'get upload token' request.

Summary

Fields
private final String token
private final String url
Public Constructors
FormUploadToken(String url, String token)
Creates a form-upload token.
Public Methods
String getToken()
Returns a token to include in the form upload.
String getUrl()
Returns the url to which the form upload should be sent.
static FormUploadToken parse(InputStream input)
Parse a form-upload token from its XML definition.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private final String token

private final String url

Public Constructors

public FormUploadToken (String url, String token)

Creates a form-upload token.

Parameters
url The url to which the upload should be sent
token Token data to include in the upload

Public Methods

public String getToken ()

Returns a token to include in the form upload.

public String getUrl ()

Returns the url to which the form upload should be sent.

Returns
  • a url that accepts POST of type multipart/form-data.

public static FormUploadToken parse (InputStream input)

Parse a form-upload token from its XML definition.

Parameters
input InputStream of server response
Throws
IOException
ParseException