public class Attachment extends Object
Content-Disposition=attachment header.| Constructor and Description |
|---|
Attachment(Page page)
Creates a new attachment for the specified page.
|
Attachment(Page page,
String attachmentFilename)
Creates a new attachment for the specified page.
|
| Modifier and Type | Method and Description |
|---|---|
Page |
getPage()
Returns the attached page.
|
String |
getSuggestedFilename()
Returns the attachment's filename, as suggested by the
Content-Disposition
header, or null if no filename was suggested. |
static String |
getSuggestedFilename(String contentDispositionHeader)
Returns the attachment's filename, as suggested by the
Content-Disposition
header, or null if no filename was suggested. |
public Attachment(Page page)
page - the attached pagepublic Page getPage()
public String getSuggestedFilename()
Content-Disposition
header, or null if no filename was suggested.null if none was suggestedpublic static String getSuggestedFilename(String contentDispositionHeader)
Content-Disposition
header, or null if no filename was suggested.contentDispositionHeader - the Content-Disposition headernull if none was suggestedCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.