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 constructor
    FileWrapper​(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()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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