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, waitgetFilename, writeTogetCharset, getContentLength, getTransferEncodingpublic AbstractContentBody(String mimeType)
public String getMimeType()
ContentDescriptorgetMimeType in interface ContentDescriptorContentDescriptor.getMediaType(),
ContentDescriptor.getSubType()public String getMediaType()
ContentDescriptorTEXT, IMAGE, MULTIPARTgetMediaType in interface ContentDescriptorTEXT)ContentDescriptor.getMimeType()public String getSubType()
ContentDescriptorgetSubType in interface ContentDescriptorPLAIN)ContentDescriptor.getMimeType()Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.