Package org.appng.api

Interface AttachmentWebservice

  • All Superinterfaces:
    Webservice

    public interface AttachmentWebservice
    extends Webservice
    Enhancement of a Webservice which is used to provide a file as an attachment. It isAttachment() returns true, the response-header 'Content-Disposition' is being set. Otherwise the client will try to open the file inline.
    Author:
    Matthias Müller
    • 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