Package com.bandwidth.utilities
Class FileWrapper
java.lang.Object
com.bandwidth.utilities.FileWrapper
public class FileWrapper
extends java.lang.Object
Class to wrap file and contentType to be sent as part of a HTTP request.
-
Constructor Summary
Constructors Constructor Description FileWrapper(java.io.File file)
Initialization constructorFileWrapper(java.io.File file, java.lang.String contentType)
Initialization constructor -
Method Summary
Modifier and Type Method Description java.lang.String
getContentType()
java.io.File
getFile()
-
Constructor Details
-
FileWrapper
public FileWrapper(java.io.File file, java.lang.String contentType)Initialization constructor- Parameters:
file
-contentType
-
-
FileWrapper
public FileWrapper(java.io.File file)Initialization constructor- Parameters:
file
-
-
-
Method Details
-
getFile
public java.io.File getFile()- Returns:
- File instance
-
getContentType
public java.lang.String getContentType()- Returns:
- content type of the file
-