org.apache.myfaces.trinidaddemo.email
Class ShowMessageBackingBean

java.lang.Object
  extended by org.apache.myfaces.trinidaddemo.email.ShowMessageBackingBean

public class ShowMessageBackingBean
extends Object

Backing bean for the "show message" page. Provides support for downloading attachments, and hides the fact that the "message" comes in pageFlowScope from the actual page content.


Constructor Summary
ShowMessageBackingBean()
           
 
Method Summary
 String downloadAttachment()
           
 javax.mail.Part getAttachmentToDownload()
           
 MessageData getMessage()
           
 void setAttachmentToDownload(javax.mail.Part attachment)
           
 void setMessage(MessageData message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowMessageBackingBean

public ShowMessageBackingBean()
Method Detail

getMessage

public MessageData getMessage()

setAttachmentToDownload

public void setAttachmentToDownload(javax.mail.Part attachment)

getAttachmentToDownload

public javax.mail.Part getAttachmentToDownload()

setMessage

public void setMessage(MessageData message)

downloadAttachment

public String downloadAttachment()
                          throws IOException,
                                 javax.mail.MessagingException
Throws:
IOException
javax.mail.MessagingException


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.