Package org.htmlunit.attachment
Class Attachment
- java.lang.Object
-
- org.htmlunit.attachment.Attachment
-
public class Attachment extends java.lang.Object
An attachment represents a page received from the server which contains aContent-Disposition=attachment
header.
-
-
Constructor Summary
Constructors Constructor Description Attachment(Page page)
Creates a new attachment for the specified page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page
getPage()
Returns the attached page.java.lang.String
getSuggestedFilename()
Returns the attachment's filename, as suggested by theContent-Disposition
header, ornull
if no filename was suggested.
-
-
-
Constructor Detail
-
Attachment
public Attachment(Page page)
Creates a new attachment for the specified page.- Parameters:
page
- the attached page
-
-
Method Detail
-
getPage
public Page getPage()
Returns the attached page.- Returns:
- the attached page
-
getSuggestedFilename
public java.lang.String 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
-
-