org.apache.james.util.mail.handlers
Class message_disposition_notification

java.lang.Object
  extended by org.apache.james.util.mail.handlers.AbstractDataContentHandler
      extended by org.apache.james.util.mail.handlers.message_disposition_notification
All Implemented Interfaces:
javax.activation.DataContentHandler

public class message_disposition_notification
extends AbstractDataContentHandler

Data Content Handler for...

MIME type name
message
MIME subtype name
disposition-notification


Constructor Summary
message_disposition_notification()
          Default Constructor.
 
Method Summary
protected  java.lang.Object computeContent(javax.activation.DataSource aDataSource)
          Compute the content from aDataSource.
protected  javax.activation.ActivationDataFlavor computeDataFlavor()
          Compute an ActivationDataFlavor.
protected  java.lang.String getCharacterSet(java.lang.String aType)
           
 void writeTo(java.lang.Object aPart, java.lang.String aMimeType, java.io.OutputStream aStream)
           
 
Methods inherited from class org.apache.james.util.mail.handlers.AbstractDataContentHandler
getContent, getDataFlavor, getTransferData, getTransferDataFlavors, setDataFlavor, updateDataFlavor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

message_disposition_notification

public message_disposition_notification()
Default Constructor.

Method Detail

computeDataFlavor

protected javax.activation.ActivationDataFlavor computeDataFlavor()
Description copied from class: AbstractDataContentHandler
Compute an ActivationDataFlavor.

Specified by:
computeDataFlavor in class AbstractDataContentHandler
Returns:
A new ActivationDataFlavor
See Also:
AbstractDataContentHandler.computeDataFlavor()

computeContent

protected java.lang.Object computeContent(javax.activation.DataSource aDataSource)
                                   throws javax.mail.MessagingException
Description copied from class: AbstractDataContentHandler
Compute the content from aDataSource.

Specified by:
computeContent in class AbstractDataContentHandler
Returns:
new Content built from the DataSource
Throws:
javax.mail.MessagingException
See Also:
AbstractDataContentHandler.computeContent(javax.activation.DataSource)

writeTo

public void writeTo(java.lang.Object aPart,
                    java.lang.String aMimeType,
                    java.io.OutputStream aStream)
             throws java.io.IOException
Throws:
java.io.IOException
See Also:
DataContentHandler.writeTo(java.lang.Object, java.lang.String, java.io.OutputStream)

getCharacterSet

protected java.lang.String getCharacterSet(java.lang.String aType)


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.