Interface DynamicAttachmentProvider

  • public interface DynamicAttachmentProvider
    Provides the data for an attachment. Please note that there will be a strong reference retained for the provider for each Attachment it provides, so do try to keep the object light. Also, reuse objects if possible.

    The Provider needs to be thread-safe.

    • Method Detail

      • getAttachmentData getAttachmentData​(Context context,
                                              Attachment att)
                                       throws ProviderException,
        Returns a stream of data for this attachment. The stream will be closed by AttachmentServlet.
        context - A Wiki Context
        att - The Attachment for which the data should be received.
        InputStream for the data.
        ProviderException - If something goes wrong internally - If something goes wrong when reading the data