Class DownloadedFile


  • @ParametersAreNonnullByDefault
    public class DownloadedFile
    extends java.lang.Object
    • Constructor Detail

      • DownloadedFile

        public DownloadedFile​(java.io.File file,
                              java.util.Map<java.lang.String,​java.lang.String> headers)
        Parameters:
        file - the downloaded file
        headers - map of http headers. NB! Map keys (header names) are LOWER CASE!
    • Method Detail

      • getFile

        @CheckReturnValue
        @Nonnull
        public java.io.File getFile()
      • hasContentDispositionHeader

        @CheckReturnValue
        public boolean hasContentDispositionHeader()
      • getContentType

        @Nullable
        public java.lang.String getContentType()
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object