Class Attachment
java.lang.Object
org.htmlunit.attachment.Attachment
An attachment represents a page received from the server which contains a
Content-Disposition=attachment header.- Author:
- Bruce Chapman, Sudhan Moghe, Daniel Gredler, Ronald Brill
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPage()Returns the attached page.Returns the attachment's filename, as suggested by theContent-Dispositionheader, ornullif no filename was suggested.
-
Constructor Details
-
Attachment
Creates a new attachment for the specified page.- Parameters:
page- the attached page
-
-
Method Details
-
getPage
-
getSuggestedFilename
Returns the attachment's filename, as suggested by theContent-Dispositionheader, ornullif no filename was suggested.- Returns:
- the attachment's suggested filename, or
nullif none was suggested
-