Package org.htmlunit.attachment
package org.htmlunit.attachment
Attachment-related classes.
-
ClassDescriptionAn attachment represents a page received from the server which contains a
Content-Disposition=attachment
header.A handler for attachments, which represent pages received from the server which containContent-Disposition=attachment
headers.AnAttachmentHandler
implementation which creates anAttachment
for each attached page, collecting all created attachments into a list.Implementation of anAttachmentHandler
that mimics how browsers handle attachments, specifically download file into a default folder when attachment response is detected infer filename from octet stream response and use that when saving file if a file already exists, append number to it.