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:
Disposable

@NotThreadSafe
public class FormBodyPart
extends 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.

Since:
4.0

Constructor Summary
FormBodyPart(String name, ContentBody body)
           
 
Method Summary
protected  void generateContentDisp(ContentBody body)
           
protected  void generateContentType(ContentDescriptor desc)
           
protected  void generateTransferEncoding(ContentDescriptor desc)
           
 String getName()
           
 
Methods inherited from class org.apache.james.mime4j.message.Entity
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

FormBodyPart

public FormBodyPart(String name,
                    ContentBody body)
Method Detail

getName

public String getName()

generateContentDisp

protected void generateContentDisp(ContentBody body)

generateContentType

protected void generateContentType(ContentDescriptor desc)

generateTransferEncoding

protected void generateTransferEncoding(ContentDescriptor desc)


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