org.apache.geronimo.mail.handlers
Class MessageHandler

java.lang.Object
  extended by org.apache.geronimo.mail.handlers.MessageHandler
All Implemented Interfaces:
DataContentHandler

public class MessageHandler
extends Object
implements DataContentHandler


Constructor Summary
MessageHandler()
           
 
Method Summary
 Object getContent(DataSource datasource)
          Method getContent
protected  ActivationDataFlavor getDF()
          Method getDF
 Object getTransferData(DataFlavor dataflavor, DataSource datasource)
          Method getTransferData
 DataFlavor[] getTransferDataFlavors()
          Method getTransferDataFlavors
 void writeTo(Object object, String s, OutputStream outputstream)
          Method writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageHandler

public MessageHandler()
Method Detail

getDF

protected ActivationDataFlavor getDF()
Method getDF

Returns:
dataflavor

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Method getTransferDataFlavors

Specified by:
getTransferDataFlavors in interface DataContentHandler
Returns:
dataflavors

getTransferData

public Object getTransferData(DataFlavor dataflavor,
                              DataSource datasource)
                       throws IOException
Method getTransferData

Specified by:
getTransferData in interface DataContentHandler
Parameters:
dataflavor -
datasource -
Returns:
Throws:
IOException

getContent

public Object getContent(DataSource datasource)
                  throws IOException
Method getContent

Specified by:
getContent in interface DataContentHandler
Parameters:
datasource -
Returns:
Throws:
IOException

writeTo

public void writeTo(Object object,
                    String s,
                    OutputStream outputstream)
             throws IOException
Method writeTo

Specified by:
writeTo in interface DataContentHandler
Parameters:
object -
s -
outputstream -
Throws:
IOException


Copyright © 2006 Apache Software Foundation. All Rights Reserved.