public class

DownloadRequestImpl

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

Summary

Fields
private boolean asFile if true, will download as a File object, if false then download as bytes array.
private String authToken auth token.
private String fileId file id.
private File inFile if asFile is true, this parameter will specify a File object which the content will write in.
[Expand]
Inherited Fields
From class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.functions.BoxRequestImpl
Public Constructors
DownloadRequestImpl()
Public Methods
String getActionName()
get action name.
String getAuthToken()
String getFileId()
File getInFile()
boolean isAsFile()
void setAsFile(boolean asFile)
void setAuthToken(String authToken)
void setFileId(String fileId)
void setInFile(File inFile)
[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.DownloadRequest

Fields

private boolean asFile

if true, will download as a File object, if false then download as bytes array.

private String authToken

auth token.

private String fileId

file id.

private File inFile

if asFile is true, this parameter will specify a File object which the content will write in.

Public Constructors

public DownloadRequestImpl ()

Public Methods

public String getActionName ()

get action name.

Returns
  • action name

public String getAuthToken ()

Returns
  • the authToken

public String getFileId ()

Returns
  • the fileId

public File getInFile ()

Returns
  • the inFile

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 setFileId (String fileId)

Parameters
fileId The fileId to set

public void setInFile (File inFile)

Parameters
inFile The inFile to set