public class FormUploadToken
extends java.lang.Object
| Constructor and Description |
|---|
FormUploadToken(java.lang.String url,
java.lang.String token)
Creates a form-upload token.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getToken()
Returns a token to include in the form upload.
|
java.lang.String |
getUrl()
Returns the url to which the form upload should be sent.
|
static FormUploadToken |
parse(java.io.InputStream input)
Parse a form-upload token from its XML definition.
|
public FormUploadToken(java.lang.String url,
java.lang.String token)
url - the url to which the upload should be senttoken - token data to include in the uploadpublic java.lang.String getUrl()
public java.lang.String getToken()
token - token data to include in the multipart/form-data
upload under the name 'token'.public static FormUploadToken parse(java.io.InputStream input) throws ParseException, java.io.IOException
input - InputStream of server responseParseExceptionjava.io.IOException