org.apache.http.entity.mime
Class FormBodyPart

java.lang.Object
  extended by org.apache.james.mime4j.message.Entity
      extended by org.apache.james.mime4j.message.BodyPart
          extended by org.apache.http.entity.mime.FormBodyPart
All Implemented Interfaces:
org.apache.james.mime4j.message.Disposable

public class FormBodyPart
extends org.apache.james.mime4j.message.BodyPart

An extension of the mime4j standard BodyPart class that automatically populates the header with standard fields based on the content description of the enclosed body.

Author:
Oleg Kalnichevski

Constructor Summary
FormBodyPart(java.lang.String name, ContentBody body)
           
 
Method Summary
protected  void generateContentDisp(ContentBody body)
           
protected  void generateContentType(org.apache.james.mime4j.descriptor.ContentDescriptor desc)
           
protected  void generateTransferEncoding(org.apache.james.mime4j.descriptor.ContentDescriptor desc)
           
 java.lang.String getName()
           
 
Methods inherited from class org.apache.james.mime4j.message.Entity
dispose, getBody, getCharset, getContentTransferEncoding, getHeader, getMimeType, getParent, isMimeType, isMultipart, setBody, setHeader, setParent, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormBodyPart

public FormBodyPart(java.lang.String name,
                    ContentBody body)
Method Detail

getName

public java.lang.String getName()

generateContentDisp

protected void generateContentDisp(ContentBody body)

generateContentType

protected void generateContentType(org.apache.james.mime4j.descriptor.ContentDescriptor desc)

generateTransferEncoding

protected void generateTransferEncoding(org.apache.james.mime4j.descriptor.ContentDescriptor desc)


Copyright © 1999-2008 Apache Software Foundation. All Rights Reserved.