public abstract class AbstractContentBody extends Object implements ContentBody
Constructor and Description |
---|
AbstractContentBody(String mimeType) |
Modifier and Type | Method and Description |
---|---|
String |
getMediaType()
Gets the defaulted MIME media type for this content.
|
String |
getMimeType()
Returns the body descriptors MIME type.
|
String |
getSubType()
Gets the defaulted MIME sub type for this content.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFilename, writeTo
getCharset, getContentLength, getTransferEncoding
public AbstractContentBody(String mimeType)
public String getMimeType()
ContentDescriptor
getMimeType
in interface ContentDescriptor
ContentDescriptor.getMediaType()
,
ContentDescriptor.getSubType()
public String getMediaType()
ContentDescriptor
TEXT
, IMAGE
, MULTIPART
getMediaType
in interface ContentDescriptor
TEXT
)ContentDescriptor.getMimeType()
public String getSubType()
ContentDescriptor
getSubType
in interface ContentDescriptor
PLAIN
)ContentDescriptor.getMimeType()
Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.