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()
public static boolean isAttachment(WebResponse response)
response
- the response to checkCopyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.