org.apache.http.entity.mime.content
Class AbstractContentBody

java.lang.Object
  extended by org.apache.james.mime4j.message.SingleBody
      extended by org.apache.http.entity.mime.content.AbstractContentBody
All Implemented Interfaces:
ContentBody, ContentDescriptor, Body, Disposable
Direct Known Subclasses:
FileBody, InputStreamBody, StringBody

@NotThreadSafe
public abstract class AbstractContentBody
extends SingleBody
implements ContentBody

Since:
4.0

Constructor Summary
AbstractContentBody(String mimeType)
           
 
Method Summary
 void dispose()
           
 Map<String,String> getContentTypeParameters()
           
 String getMediaType()
           
 String getMimeType()
           
 Entity getParent()
           
 String getSubType()
           
 void setParent(Entity parent)
           
 
Methods inherited from class org.apache.james.mime4j.message.SingleBody
copy, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.entity.mime.content.ContentBody
getFilename
 
Methods inherited from interface org.apache.james.mime4j.descriptor.ContentDescriptor
getCharset, getContentLength, getTransferEncoding
 

Constructor Detail

AbstractContentBody

public AbstractContentBody(String mimeType)
Method Detail

getParent

public Entity getParent()
Specified by:
getParent in interface Body
Overrides:
getParent in class SingleBody

setParent

public void setParent(Entity parent)
Specified by:
setParent in interface Body
Overrides:
setParent in class SingleBody

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface ContentDescriptor

getMediaType

public String getMediaType()
Specified by:
getMediaType in interface ContentDescriptor

getSubType

public String getSubType()
Specified by:
getSubType in interface ContentDescriptor

getContentTypeParameters

public Map<String,String> getContentTypeParameters()
Specified by:
getContentTypeParameters in interface ContentDescriptor

dispose

public void dispose()
Specified by:
dispose in interface Disposable
Overrides:
dispose in class SingleBody


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