|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gargoylesoftware.htmlunit.attachment.CollectingAttachmentHandler
public class CollectingAttachmentHandler
An AttachmentHandler implementation which creates an Attachment for
each attached page, collecting all created attachments into a list.
| Constructor Summary | |
|---|---|
CollectingAttachmentHandler()
Creates a new instance. |
|
CollectingAttachmentHandler(List<Attachment> list)
Creates a new instance which collects attachments into the specified list. |
|
| Method Summary | |
|---|---|
List<Attachment> |
getCollectedAttachments()
Returns the list of attachments collected by this attachment handler. |
void |
handleAttachment(Page page)
Handles the specified attached page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectingAttachmentHandler()
public CollectingAttachmentHandler(List<Attachment> list)
list - the list to store attachments in| Method Detail |
|---|
public void handleAttachment(Page page)
handleAttachment in interface AttachmentHandlerpage - an attached page, which doesn't get loaded inlinepublic List<Attachment> getCollectedAttachments()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||