Package | Description |
---|---|
org.htmlunit |
Framework classes (contains the
WebClient
class which is the main entry point). |
org.htmlunit.attachment |
Attachment-related classes.
|
Modifier and Type | Method and Description |
---|---|
AttachmentHandler |
WebClient.getAttachmentHandler()
Returns the current attachment handler.
|
Modifier and Type | Method and Description |
---|---|
void |
WebClient.setAttachmentHandler(AttachmentHandler handler)
Sets the attachment handler.
|
Modifier and Type | Class and 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. |
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.