|
||||||||||
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.IOException
public java.util.Iterator contentTypeParameters()
MessageResult.MimeDescriptor
Content-Type
.
contentTypeParameters
in interface MessageResult.MimeDescriptor
Header
Iterator
, not nullpublic MessageResult.MimeDescriptor embeddedMessage()
MessageResult.MimeDescriptor
embeddedMessage
in interface MessageResult.MimeDescriptor
MimeDescriptor
when top level MIME type is
message
, null otherwisepublic long getBodyOctets()
MessageResult.MimeDescriptor
getBodyOctets
in interface MessageResult.MimeDescriptor
public java.lang.String getContentDescription()
MessageResult.MimeDescriptor
Content-Description
header value.
getContentDescription
in interface MessageResult.MimeDescriptor
Content-Description
, possibly nullpublic java.lang.String getContentID()
MessageResult.MimeDescriptor
Content-ID
header value.
getContentID
in interface MessageResult.MimeDescriptor
Content-ID
, possibly nullpublic long getLines()
MessageResult.MimeDescriptor
TEXT
when transfer encoded.
getLines
in interface MessageResult.MimeDescriptor
CRLF
count when a TEXT
type,
otherwise -1public java.lang.String getMimeSubType()
MessageResult.MimeDescriptor
getMimeSubType
in interface MessageResult.MimeDescriptor
public java.lang.String getMimeType()
MessageResult.MimeDescriptor
getMimeType
in interface MessageResult.MimeDescriptor
public java.lang.String getTransferContentEncoding()
MessageResult.MimeDescriptor
getTransferContentEncoding
in interface MessageResult.MimeDescriptor
Content-Transfer-Encoding
, possibly nullpublic java.util.Iterator headers()
Headers
headers
in interface Headers
headers
in interface MessageResult.MimeDescriptor
Header
Iterator
, or null if
MessageResult.FetchGroup.HEADERS
was not fetchedpublic java.util.Iterator parts()
MessageResult.MimeDescriptor
parts
in interface MessageResult.MimeDescriptor
MimeDescriptor
Iterator
when a
composite top level MIME media type, null otherwisepublic java.util.List getLanguages()
MessageResult.MimeDescriptor
Content-Language
header value.
getLanguages
in interface MessageResult.MimeDescriptor
List
of String
namespublic java.lang.String getDisposition()
MessageResult.MimeDescriptor
Content-Disposition
.
getDisposition
in interface MessageResult.MimeDescriptor
Content-Disposition
, or null if no
disposition header existspublic java.util.Map getDispositionParams()
MessageResult.MimeDescriptor
Content-Disposition
parameters.
getDispositionParams
in interface MessageResult.MimeDescriptor
Content-Disposition
values indexed by namespublic java.lang.String getContentLocation()
MessageResult.MimeDescriptor
Content-Location
header value.
getContentLocation
in interface MessageResult.MimeDescriptor
Content-Location
, possibly nullpublic java.lang.String getContentMD5()
MessageResult.MimeDescriptor
Content-MD5
header value.
getContentMD5
in interface MessageResult.MimeDescriptor
Content-MD5
, possibly null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |