Class FileAttachment

java.lang.Object
org.bedework.calfacade.mail.FileAttachment
All Implemented Interfaces:
Serializable, Attachment

public class FileAttachment extends Object implements Attachment
This represents an attachments as a path to a file containing the content and the original filename.
Author:
Mike Douglass douglm@bedework.edu
See Also:
  • Constructor Details

    • FileAttachment

      public FileAttachment()
    • FileAttachment

      public FileAttachment(String dataPath, String originalName)
      Parameters:
      dataPath -
      originalName -
  • Method Details

    • setDataPath

      public void setDataPath(String val)
      Parameters:
      val -
    • getDataPath

      public String getDataPath()
      Returns:
      String
    • setOriginalName

      public void setOriginalName(String val)
      Parameters:
      val -
    • getOriginalName

      public String getOriginalName()
      Returns:
      original name
    • fromString

      public static FileAttachment fromString(String val)
      Return an object based on the value which must be of the form: generated by toString.
      Parameters:
      val - String representation of object.
      Returns:
      FileAttachment object.
    • toString

      public String toString()
      Return a value of the form: FileAttachment[dataPath originalName] where originalName and dataPath are encoded using URLEncoder.
      Overrides:
      toString in class Object
      Returns:
      String representation of object.
    • equals

      public boolean equals(Object val)
      Overrides:
      equals in class Object
    • main

      public static void main(String[] args)
      Try it
      Parameters:
      args -