|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.entity.mime.content.AbstractContentBody
public abstract class AbstractContentBody
| Constructor Summary | |
|---|---|
AbstractContentBody(ContentType contentType)
|
|
AbstractContentBody(String mimeType)
Deprecated. (4.3) use AbstractContentBody(ContentType) |
|
| Method Summary | |
|---|---|
String |
getCharset()
The body descriptors character set, defaulted appropriately for the MIME type. |
ContentType |
getContentType()
|
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. |
| 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, writeTo |
| Methods inherited from interface org.apache.http.entity.mime.content.ContentDescriptor |
|---|
getContentLength, getTransferEncoding |
| Constructor Detail |
|---|
public AbstractContentBody(ContentType contentType)
@Deprecated public AbstractContentBody(String mimeType)
AbstractContentBody(ContentType)
| Method Detail |
|---|
public ContentType getContentType()
public String getMimeType()
ContentDescriptor
getMimeType in interface ContentDescriptorContentDescriptor.getMediaType(),
ContentDescriptor.getSubType()public String getMediaType()
ContentDescriptorTEXT, IMAGE, MULTIPART
getMediaType in interface ContentDescriptorTEXT)ContentDescriptor.getMimeType()public String getSubType()
ContentDescriptor
getSubType in interface ContentDescriptorPLAIN)ContentDescriptor.getMimeType()public String getCharset()
ContentDescriptorThe body descriptors character set, defaulted appropriately for the MIME type.
For TEXT types, this will be defaulted to us-ascii.
For other types, when the charset parameter is missing this property will be null.
getCharset in interface ContentDescriptorTEXT types, when unset will
be set to default us-ascii. For other types, when unset,
null will be returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||