public class CollectingAttachmentHandler extends Object implements AttachmentHandler
AttachmentHandler implementation which creates an Attachment for
each attached page, collecting all created attachments into a list.| Constructor and Description |
|---|
CollectingAttachmentHandler()
Creates a new instance.
|
CollectingAttachmentHandler(List<Attachment> list)
Creates a new instance which collects attachments into the specified list.
|
| Modifier and Type | Method and Description |
|---|---|
List<Attachment> |
getCollectedAttachments()
Returns the list of attachments collected by this attachment handler.
|
void |
handleAttachment(Page page,
String attachmentFilename)
Handles the specified attached page.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleAttachment, isAttachmentpublic CollectingAttachmentHandler()
public CollectingAttachmentHandler(List<Attachment> list)
list - the list to store attachments inpublic void handleAttachment(Page page, String attachmentFilename)
AttachmentHandler.handleAttachment(WebResponse, String)
has returned false for the response.handleAttachment in interface AttachmentHandlerpage - an attached page, which doesn't get loaded inlineattachmentFilename - the filename to use for the attachment or null if unspecifiedpublic List<Attachment> getCollectedAttachments()
Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.