public class

UploadRequestImpl

extends BoxRequestImpl
implements UploadRequest
java.lang.Object
   ↳ cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.functions.BoxRequestImpl
     ↳ cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.functions.UploadRequestImpl

Summary

Fields
private boolean asFile true means will upload Java File object rather than pure bytes array.
private String authToken auth token.
private Map dataMap map key is file name, value could be either Java File object or bytes array.
private String folderId folder id.
[Expand]
Inherited Fields
From class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.functions.BoxRequestImpl
Public Constructors
UploadRequestImpl()
Public Methods
String getActionName()
get action name.
String getAuthToken()
Map getDataMap()
String getFolderId()
boolean isAsFile()
void setAsFile(boolean asFile)
void setAuthToken(String authToken)
void setDataMap(Map dataMap)
void setFolderId(String folderId)
[Expand]
Inherited Methods
From class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.functions.BoxRequestImpl
From class java.lang.Object
From interface cn.com.believer.songyuanframework.openapi.storage.box.functions.BoxRequest
From interface cn.com.believer.songyuanframework.openapi.storage.box.functions.UploadRequest

Fields

private boolean asFile

true means will upload Java File object rather than pure bytes array.

private String authToken

auth token.

private Map dataMap

map key is file name, value could be either Java File object or bytes array.

private String folderId

folder id.

Public Constructors

public UploadRequestImpl ()

Public Methods

public String getActionName ()

get action name.

Returns
  • action name

public String getAuthToken ()

Returns
  • the authToken

public Map getDataMap ()

Returns
  • the dataMap

public String getFolderId ()

Returns
  • the folderId

public boolean isAsFile ()

Returns
  • the asFile

public void setAsFile (boolean asFile)

Parameters
asFile The asFile to set

public void setAuthToken (String authToken)

Parameters
authToken The authToken to set

public void setDataMap (Map dataMap)

Parameters
dataMap The dataMap to set

public void setFolderId (String folderId)

Parameters
folderId The folderId to set