Package org.htmlunit.attachment
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPage()
Returns the attached page.Returns the attachment's filename, as suggested by theContent-Disposition
header, ornull
if no filename was suggested.
-
Field Details
-
page_
The attached page.
-
-
Constructor Details
-
Attachment
Creates a new attachment for the specified page.- Parameters:
page
- the attached page
-
-
Method Details
-
getPage
Returns the attached page.- Returns:
- the attached page
-
getSuggestedFilename
Returns the attachment's filename, as suggested by theContent-Disposition
header, ornull
if no filename was suggested.- Returns:
- the attachment's suggested filename, or
null
if none was suggested
-