Class RestCFG.FileParam

  • Enclosing class:
    RestCFG

    public static class RestCFG.FileParam
    extends Object
    Provides a multi-part FileParam.
    • Constructor Detail

      • FileParam

        public FileParam()
    • Method Detail

      • getFileData

        public byte[] getFileData()
        Return the file data.
        Returns:
        the file data to add to file parameter for a multi-part request.
      • setFileData

        public void setFileData​(String fileData)
        Set the file data for adding to the file parameter in a multi-part request.
        Parameters:
        fileData - the Base64 String of file data
      • getFileName

        public String getFileName()
        Return the file data file name.
        Returns:
        the file data file name
      • setFileName

        public void setFileName​(String fileName)
        Set the file data file name.
        Parameters:
        fileName - the file data file name
      • setName

        public void setName​(String name)
        Set the request parameter name.
        Parameters:
        name - the request parameter name
      • getName

        public String getName()
        Get the request parameter name.
        Returns:
        the request parameter name