public class Attachment extends Object
Content-Disposition=attachment
header.Constructor and Description |
---|
Attachment(Page page)
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 boolean |
isAttachment(WebResponse response)
Returns
true if the specified response represents an attachment. |
public Attachment(Page page)
page
- the attached pagepublic Page getPage()
public String getSuggestedFilename()
null
if no filename was suggested.null
if none was suggestedpublic static boolean isAttachment(WebResponse response)
true
if the specified response represents an attachment.response
- the response to checktrue
if the specified response represents an attachment, false
otherwiseCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.