org.apache.james.mime4j.message
Class BodyPart

java.lang.Object
  extended by org.apache.james.mime4j.message.AbstractEntity
      extended by org.apache.james.mime4j.message.BodyPart
All Implemented Interfaces:
Disposable, Entity

public class BodyPart
extends AbstractEntity

A MIME body part (as defined in RFC 2045).


Constructor Summary
BodyPart()
          Creates a new empty BodyPart.
 
Method Summary
protected  java.lang.String calcCharset(ContentTypeField contentType)
           
protected  java.lang.String calcMimeType(ContentTypeField child, ContentTypeField parent)
           
protected  java.lang.String calcTransferEncoding(ContentTransferEncodingField f)
           
protected  ContentDispositionField newContentDisposition(java.lang.String dispositionType, java.util.Map<java.lang.String,java.lang.String> parameters)
           
protected  ContentDispositionField newContentDisposition(java.lang.String dispositionType, java.lang.String filename, long size, java.util.Date creationDate, java.util.Date modificationDate, java.util.Date readDate)
           
protected  ContentTransferEncodingField newContentTransferEncoding(java.lang.String contentTransferEncoding)
           
protected  ContentTypeField newContentType(java.lang.String mimeType, java.util.Map<java.lang.String,java.lang.String> parameters)
           
protected  java.lang.String newUniqueBoundary()
           
 
Methods inherited from class org.apache.james.mime4j.message.AbstractEntity
dispose, getBody, getCharset, getContentTransferEncoding, getDispositionType, getFilename, getHeader, getMimeType, getParent, isMimeType, isMultipart, removeBody, setBody, setBody, setBody, setContentDisposition, setContentDisposition, setContentDisposition, setContentDisposition, setContentTransferEncoding, setFilename, setHeader, setMessage, setMultipart, setMultipart, setParent, setText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BodyPart

public BodyPart()
Creates a new empty BodyPart.

Method Detail

newUniqueBoundary

protected java.lang.String newUniqueBoundary()
Specified by:
newUniqueBoundary in class AbstractEntity

newContentDisposition

protected ContentDispositionField newContentDisposition(java.lang.String dispositionType,
                                                        java.lang.String filename,
                                                        long size,
                                                        java.util.Date creationDate,
                                                        java.util.Date modificationDate,
                                                        java.util.Date readDate)
Specified by:
newContentDisposition in class AbstractEntity

newContentDisposition

protected ContentDispositionField newContentDisposition(java.lang.String dispositionType,
                                                        java.util.Map<java.lang.String,java.lang.String> parameters)
Specified by:
newContentDisposition in class AbstractEntity

newContentType

protected ContentTypeField newContentType(java.lang.String mimeType,
                                          java.util.Map<java.lang.String,java.lang.String> parameters)
Specified by:
newContentType in class AbstractEntity

newContentTransferEncoding

protected ContentTransferEncodingField newContentTransferEncoding(java.lang.String contentTransferEncoding)
Specified by:
newContentTransferEncoding in class AbstractEntity

calcTransferEncoding

protected java.lang.String calcTransferEncoding(ContentTransferEncodingField f)
Specified by:
calcTransferEncoding in class AbstractEntity

calcMimeType

protected java.lang.String calcMimeType(ContentTypeField child,
                                        ContentTypeField parent)
Specified by:
calcMimeType in class AbstractEntity

calcCharset

protected java.lang.String calcCharset(ContentTypeField contentType)
Specified by:
calcCharset in class AbstractEntity


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.