# Uses of Interface
org.htmlunit.attachment.AttachmentHandler

Packages that use AttachmentHandler
Package
Description
org.htmlunit
Framework classes (contains the `WebClient` class which is the main entry point).
org.htmlunit.attachment
Attachment-related classes.

- ## Uses of AttachmentHandler in org.htmlunit

  Methods in org.htmlunit that return AttachmentHandler
  Modifier and Type
  Method
  Description
  `AttachmentHandler`
  WebClient.`getAttachmentHandler()`
  Returns the current attachment handler.
  Methods in org.htmlunit with parameters of type AttachmentHandler
  Modifier and Type
  Method
  Description
  `void`
  WebClient.`setAttachmentHandler(AttachmentHandler handler)`
  Sets the attachment handler.

- ## Uses of AttachmentHandler in org.htmlunit.attachment

  Classes in org.htmlunit.attachment that implement AttachmentHandler
  Modifier and Type
  Class
  Description
  `class`
  `CollectingAttachmentHandler`
  An `AttachmentHandler` implementation which creates an `Attachment` for each attached page, collecting all created attachments into a list.
  `class`
  `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.