|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.attachment.Attachment
public class Attachment
An attachment represents a page received from the server which contains a
Content-Disposition=attachment
header.
Constructor Summary | |
---|---|
Attachment(Page page)
Creates a new attachment for the specified page. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attachment(Page page)
page
- the attached pageMethod Detail |
---|
public Page getPage()
public String getSuggestedFilename()
public static boolean isAttachment(WebResponse response)
response
- the response to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |