Class PortalAttachmentItem

java.lang.Object
com.webmethods.caf.faces.data.attachments.AttachmentItem
com.webmethods.caf.faces.data.attachments.PortalAttachmentItem
All Implemented Interfaces:
IAttachmentItem, Serializable

public class PortalAttachmentItem extends AttachmentItem
Implementation of com.webmethods.caf.faces.data.attachments.IAttachmentsItem interface that exposes a file stored in MWS as an attachment
See Also:
  • Constructor Details

    • PortalAttachmentItem

      public PortalAttachmentItem()
      Default Constructor
    • PortalAttachmentItem

      public PortalAttachmentItem(String id, String fileName, String contentType, long contentLength, String downloadLink)
      Constructor
      Parameters:
      id - Some unique identifier for the item within it's container. Each item in an attachment provider must have a unique id. The format of the id is up to the implementor. In the simple case, the id could be the same as the fileName.
      fileName - The name of the attachment item.
      contentType - The MIME type of the file content. http://en.wikipedia.org/wiki/Internet_media_type
      contentLength - The length of the file (number of bytes).
      downloadLink - The URL for downloading the file to a browser. The URL can be absolute (i.e. http://mysite/att/myfile.txt) or relative to some path in the webapp (i.e. /myappcontext/mycustomdownloadservlet/myfile.txt).
  • Method Details