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()
    Getter for content type.
    java.io.File getFile()
    Getter for file.

    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 - File object to be wrapped
      contentType - content type of file
    • FileWrapper

      public FileWrapper​(java.io.File file)
      Initialization constructor.
      Parameters:
      file - File object to be wrapped
  • Method Details

    • getFile

      public java.io.File getFile()
      Getter for file.
      Returns:
      File instance
    • getContentType

      public java.lang.String getContentType()
      Getter for content type.
      Returns:
      content type of the file