|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mailboxmanager.torque.MimeDescriptorImpl
public class MimeDescriptorImpl
| Constructor Summary | |
|---|---|
MimeDescriptorImpl(long bodyOctets,
java.lang.String contentDescription,
java.lang.String contentId,
long lines,
java.lang.String subType,
java.lang.String type,
java.lang.String transferEncoding,
java.util.Collection headers,
java.util.Collection contentTypeParameters,
java.util.List languages,
java.lang.String disposition,
java.util.Map dispositionParams,
MessageResult.MimeDescriptor embeddedMessage,
java.util.Collection parts,
java.lang.String location,
java.lang.String md5)
|
|
| Method Summary | |
|---|---|
static MimeDescriptorImpl |
build(java.io.InputStream stream)
|
java.util.Iterator |
contentTypeParameters()
Gets MIME body parameters parsed from Content-Type. |
MessageResult.MimeDescriptor |
embeddedMessage()
Gets embedded message. |
long |
getBodyOctets()
The number of octets contained in the body of this part. |
java.lang.String |
getContentDescription()
Gets MIME Content-Description header value. |
java.lang.String |
getContentID()
Gets the MIME Content-ID header value. |
java.lang.String |
getContentLocation()
Gets MIME Content-Location header value. |
java.lang.String |
getContentMD5()
Gets MIME Content-MD5 header value. |
java.lang.String |
getDisposition()
Gets MIME Content-Disposition. |
java.util.Map |
getDispositionParams()
Gets MIME Content-Disposition parameters. |
java.util.List |
getLanguages()
Gets the languages, From the MIME Content-Language
header value. |
long |
getLines()
Gets the number of lines of text in a part of type TEXT
when transfer encoded. |
java.lang.String |
getMimeSubType()
Gets the MIME content subtype. |
java.lang.String |
getMimeType()
Gets the top level MIME content media type. |
java.lang.String |
getTransferContentEncoding()
Gets the MIME content transfer encoding. |
java.util.Iterator |
headers()
Gets headers for the message. |
java.util.Iterator |
parts()
Gets parts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MimeDescriptorImpl(long bodyOctets,
java.lang.String contentDescription,
java.lang.String contentId,
long lines,
java.lang.String subType,
java.lang.String type,
java.lang.String transferEncoding,
java.util.Collection headers,
java.util.Collection contentTypeParameters,
java.util.List languages,
java.lang.String disposition,
java.util.Map dispositionParams,
MessageResult.MimeDescriptor embeddedMessage,
java.util.Collection parts,
java.lang.String location,
java.lang.String md5)
| Method Detail |
|---|
public static MimeDescriptorImpl build(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Iterator contentTypeParameters()
MessageResult.MimeDescriptorContent-Type.
contentTypeParameters in interface MessageResult.MimeDescriptorHeader Iterator, not nullpublic MessageResult.MimeDescriptor embeddedMessage()
MessageResult.MimeDescriptor
embeddedMessage in interface MessageResult.MimeDescriptorMimeDescriptor when top level MIME type is
message, null otherwisepublic long getBodyOctets()
MessageResult.MimeDescriptor
getBodyOctets in interface MessageResult.MimeDescriptorpublic java.lang.String getContentDescription()
MessageResult.MimeDescriptorContent-Description header value.
getContentDescription in interface MessageResult.MimeDescriptorContent-Description, possibly nullpublic java.lang.String getContentID()
MessageResult.MimeDescriptorContent-ID header value.
getContentID in interface MessageResult.MimeDescriptorContent-ID, possibly nullpublic long getLines()
MessageResult.MimeDescriptorTEXT
when transfer encoded.
getLines in interface MessageResult.MimeDescriptorCRLF count when a TEXT type,
otherwise -1public java.lang.String getMimeSubType()
MessageResult.MimeDescriptor
getMimeSubType in interface MessageResult.MimeDescriptorpublic java.lang.String getMimeType()
MessageResult.MimeDescriptor
getMimeType in interface MessageResult.MimeDescriptorpublic java.lang.String getTransferContentEncoding()
MessageResult.MimeDescriptor
getTransferContentEncoding in interface MessageResult.MimeDescriptorContent-Transfer-Encoding, possibly nullpublic java.util.Iterator headers()
Headers
headers in interface Headersheaders in interface MessageResult.MimeDescriptorHeader Iterator, or null if
MessageResult.FetchGroup.HEADERS was not fetchedpublic java.util.Iterator parts()
MessageResult.MimeDescriptor
parts in interface MessageResult.MimeDescriptorMimeDescriptor Iterator when a
composite top level MIME media type, null otherwisepublic java.util.List getLanguages()
MessageResult.MimeDescriptorContent-Language
header value.
getLanguages in interface MessageResult.MimeDescriptorList of String namespublic java.lang.String getDisposition()
MessageResult.MimeDescriptorContent-Disposition.
getDisposition in interface MessageResult.MimeDescriptorContent-Disposition, or null if no
disposition header existspublic java.util.Map getDispositionParams()
MessageResult.MimeDescriptorContent-Disposition parameters.
getDispositionParams in interface MessageResult.MimeDescriptorContent-Disposition values indexed by namespublic java.lang.String getContentLocation()
MessageResult.MimeDescriptorContent-Location header value.
getContentLocation in interface MessageResult.MimeDescriptorContent-Location, possibly nullpublic java.lang.String getContentMD5()
MessageResult.MimeDescriptorContent-MD5 header value.
getContentMD5 in interface MessageResult.MimeDescriptorContent-MD5, possibly null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||