Package org.bedework.calfacade.mail
Class FileAttachment
java.lang.Object
org.bedework.calfacade.mail.FileAttachment
- All Implemented Interfaces:
Serializable,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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FileAttachmentfromString(String val) Return an object based on the value which must be of the form: generated by toString.static voidTry itvoidsetDataPath(String val) voidsetOriginalName(String val) toString()Return a value of the form: FileAttachment[dataPath originalName] where originalName and dataPath are encoded using URLEncoder.
-
Constructor Details
-
FileAttachment
public FileAttachment() -
FileAttachment
- Parameters:
dataPath-originalName-
-
-
Method Details
-
setDataPath
- Parameters:
val-
-
getDataPath
- Returns:
- String
-
setOriginalName
- Parameters:
val-
-
getOriginalName
- Returns:
- original name
-
fromString
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
Return a value of the form: FileAttachment[dataPath originalName] where originalName and dataPath are encoded using URLEncoder. -
equals
-
main
Try it- Parameters:
args-
-