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 Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getFileName()` Returns the name of the file to open
    `boolean` | `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

Copyright © 2011–2023 aiticon GmbH. All rights reserved.