Class AbstractFileRequest

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractFileRequest​(java.io.File file, org.apache.http.entity.ContentType contentType)
      Creates a new AbstractFileRequest instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      org.apache.http.entity.ContentType getContentType()
      For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType statics
      java.io.File getFile()  
      int hashCode()  
      void setContentType​(org.apache.http.entity.ContentType contentType)
      For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType statics
      void setFile​(java.io.File file)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractFileRequest

        public AbstractFileRequest​(java.io.File file,
                                   org.apache.http.entity.ContentType contentType)
        Creates a new AbstractFileRequest instance.
        Parameters:
        file -
        contentType - For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType statics
    • Method Detail

      • getFile

        public java.io.File getFile()
      • getContentType

        public org.apache.http.entity.ContentType getContentType()
        For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType statics
      • setFile

        public void setFile​(java.io.File file)
      • setContentType

        public void setContentType​(org.apache.http.entity.ContentType contentType)
        For PDF we need to create manually ContentType.create("application/pdf"), for others you can use ContentType statics
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object