# Package org.htmlunit.attachment

package org.htmlunit.attachment
Attachment-related classes.

- Related Packages
  Package
  Description
  org.htmlunit
  Framework classes (contains the `WebClient` class which is the main entry point).
  org.htmlunit.html
  Classes specific to HTML pages, particularly the `HtmlPage` which represents an HTML document and provides access to its content.
  org.htmlunit.util
  Miscellaneous utilities.
  org.htmlunit.xml
  Classes specific to XML pages.
- Class
  Description
  Attachment
  An attachment represents a page received from the server which contains a `Content-Disposition=attachment` header.
  AttachmentHandler
  A handler for attachments, which represent pages received from the server which contain `Content-Disposition=attachment` headers.
  CollectingAttachmentHandler
  An `AttachmentHandler` implementation which creates an `Attachment` for each attached page, collecting all created attachments into a list.
  DownloadingAttachmentHandler
  Implementation of an `AttachmentHandler` 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.