Package com.avoka.tm.vo
Class RestCFG.FileParam
java.lang.Object
com.avoka.tm.vo.RestCFG.FileParam
- Enclosing class:
RestCFG
Provides a multi-part FileParam.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return the file data.Return the file data file name.getName()
Get the request parameter name.void
setFileData
(String fileData) Set the file data for adding to the file parameter in a multi-part request.void
setFileName
(String fileName) Set the file data file name.void
Set the request parameter name.
-
Constructor Details
-
FileParam
public FileParam()
-
-
Method Details
-
getFileData
public byte[] getFileData()Return the file data.- Returns:
- the file data to add to file parameter for a multi-part request.
-
setFileData
Set the file data for adding to the file parameter in a multi-part request.- Parameters:
fileData
- the Base64 String of file data
-
getFileName
Return the file data file name.- Returns:
- the file data file name
-
setFileName
Set the file data file name.- Parameters:
fileName
- the file data file name
-
setName
Set the request parameter name.- Parameters:
name
- the request parameter name
-
getName
Get the request parameter name.- Returns:
- the request parameter name
-