org.apache.http.entity.mime.content
Class AbstractContentBody
java.lang.Object
org.apache.james.mime4j.message.SingleBody
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContentBody
public AbstractContentBody(String mimeType)
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.