Package org.appng.api
Interface AttachmentWebservice
-
- All Superinterfaces:
Webservice
public interface AttachmentWebservice extends Webservice
Enhancement of aWebservice
which is used to provide a file as an attachment. ItisAttachment()
returnstrue
, the response-header 'Content-Disposition' is being set. Otherwise the client will try to open the file inline.- Author:
- Matthias Müller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getFileName()
Returns the name of the file to openboolean
isAttachment()
Tells the client whether to treat the file as an attachment-
Methods inherited from interface org.appng.api.Webservice
getContentType, getHeaders, getStatus, processRequest
-
-
-
-
Method Detail
-
getFileName
String getFileName()
Returns the name of the file to open- Returns:
- the name of the file
-
isAttachment
boolean isAttachment()
Tells the client whether to treat the file as an attachment- Returns:
true
if the file should be treated as an attachment
-
-