Class AttachmentFile

  • All Implemented Interfaces:
    java.io.Serializable


    public class AttachmentFile
    extends java.lang.Object
    implements java.io.Serializable
    Model class representing a file to be uploaded to Zendesk Support as an attachment to a request comment. This class is a convenience, a holder for the parameters required by UploadProvider#uploadAttachment(String, File, String, ZendeskCallback).
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      AttachmentFile(java.lang.String fileName, java.lang.String mimeType, java.io.File file)
      Construct a new instance of an AttachmentFile with the provided file name, MIME type, and file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.io.File getFile() 
      java.lang.String getFileName() 
      java.lang.String getMimeType() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttachmentFile

        public AttachmentFile(java.lang.String fileName,
                              java.lang.String mimeType,
                              java.io.File file)
        Construct a new instance of an AttachmentFile with the provided file name, MIME type, and file. The arguments are not checked for nullability or content. Their values can be retrieved using the corresponding getters.
        Parameters:
        fileName - the text to be used as the name of the file when uploading it.
        mimeType - the String representation of the MIME type of the file to be used when uploading it.
        file - the File to be uploaded.
    • Method Detail

      • getFileName

        public java.lang.String getFileName()
        Returns:
        the fileName passed in the constructor.
      • getMimeType

        public java.lang.String getMimeType()
        Returns:
        the mimeType passed in the constructor.
      • getFile

        public java.io.File getFile()
        Returns:
        the File passed in the constructor.